Skip to content

Commit 68dac14

Browse files
committed
dev-libs/xxhash,sys-fs/erofs-utils: Add from Gentoo
These packages are needed for building erofs sysexts using systemd-repart. It's from Gentoo commit 13f9c8d7911e07616d3bb17edd553c9f41d758da
1 parent 5b58d27 commit 68dac14

File tree

10 files changed

+181
-0
lines changed

10 files changed

+181
-0
lines changed

.github/workflows/portage-stable-packages-list

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ dev-libs/tree-sitter
290290
dev-libs/tree-sitter-bash
291291
dev-libs/userspace-rcu
292292
dev-libs/xmlsec
293+
dev-libs/xxhash
293294
dev-libs/yajl
294295

295296
dev-perl/Parse-Yapp
@@ -666,6 +667,7 @@ sys-fs/btrfs-progs
666667
sys-fs/cryptsetup
667668
sys-fs/dosfstools
668669
sys-fs/e2fsprogs
670+
sys-fs/erofs-utils
669671
sys-fs/fuse
670672
sys-fs/fuse-common
671673
sys-fs/fuse-overlayfs

sdk_container/src/third_party/coreos-overlay/coreos-devel/sdk-depends/sdk-depends-0.0.1.ebuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ DEPEND="
4646
sys-firmware/edk2-bin
4747
sys-fs/btrfs-progs
4848
sys-fs/cryptsetup
49+
sys-fs/erofs-utils
4950
dev-perl/Parse-Yapp
5051
dev-util/pkgcheck
5152
"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# Temporarily put the SDK version ahead for sd-json support in Dracut.
22
=sys-apps/systemd-257.5 ~amd64 ~arm64
3+
4+
=sys-fs/erofs-utils-1.8.4 ~amd64 ~arm64
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
DIST xxhash-0.8.2.tar.gz 1141188 BLAKE2B 735408256240760778fa516e01bed428f04837eb4e059c512e924f13e4a96db6cacbbefb04dea65a37b0f25b52cf13c4927a6e7870dc8c0d45b1b955d4ba3da1 SHA512 3e3eef21432fe88bc4dd9940ccad0308fdea3537b06fa5ac0e74c1bde53413dff29c8b3fc617a8a42b9ce88fcf213311d338a31b1ce73b3729342c9e68f06c78
2+
DIST xxhash-0.8.3.tar.gz 1147630 BLAKE2B 75923c7c5df3490062791fa02ccddfb7281b3646e2b3e4b4a0c0d611c339e07c8d9cb656777fd0fcec9cda484f7b33edf080116bb011f70d6b8299cda63afa4e SHA512 8b5c8b9aad4e869f28310b12cc314037feda81d92f26c23eaecdb35dc65042ca2e65f2e9606033e62a31bcc737a9a950500ffcbdb8677d6ab20e820ea14f2b79
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="person">
5+
<email>[email protected]</email>
6+
<name>Guilherme Amadio</name>
7+
</maintainer>
8+
<upstream>
9+
<remote-id type="github">Cyan4973/xxHash</remote-id>
10+
<bugs-to>https://github.com/Cyan4973/xxHash/issues</bugs-to>
11+
</upstream>
12+
</pkgmetadata>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Copyright 1999-2023 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
inherit multilib-minimal toolchain-funcs
7+
8+
DESCRIPTION="Extremely fast non-cryptographic hash algorithm"
9+
HOMEPAGE="https://xxhash.com/"
10+
SRC_URI="https://github.com/Cyan4973/xxHash/archive/v${PV}.tar.gz -> ${P}.tar.gz"
11+
S=${WORKDIR}/xxHash-${PV}
12+
13+
LICENSE="BSD-2 GPL-2+"
14+
# https://abi-laboratory.pro/tracker/timeline/xxhash
15+
SLOT="0"
16+
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
17+
18+
src_prepare() {
19+
default
20+
21+
multilib_copy_sources
22+
}
23+
24+
multilib_src_compile() {
25+
emake AR="$(tc-getAR)" CC="$(tc-getCC)"
26+
}
27+
28+
multilib_src_test() {
29+
emake CC="$(tc-getCC)" check
30+
}
31+
32+
multilib_src_install() {
33+
local emakeargs=(
34+
DESTDIR="${D}"
35+
PREFIX="${EPREFIX}"/usr
36+
LIBDIR="${EPREFIX}"/usr/$(get_libdir)
37+
)
38+
39+
emake "${emakeargs[@]}" install
40+
einstalldocs
41+
42+
rm "${ED}"/usr/$(get_libdir)/libxxhash.a || die
43+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright 1999-2025 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
inherit multilib-minimal toolchain-funcs
7+
8+
DESCRIPTION="Extremely fast non-cryptographic hash algorithm"
9+
HOMEPAGE="https://xxhash.com/"
10+
SRC_URI="https://github.com/Cyan4973/xxHash/archive/v${PV}.tar.gz -> ${P}.tar.gz"
11+
S=${WORKDIR}/xxHash-${PV}
12+
13+
LICENSE="BSD-2 GPL-2+"
14+
SLOT="0"
15+
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
16+
17+
src_prepare() {
18+
default
19+
20+
multilib_copy_sources
21+
}
22+
23+
multilib_src_compile() {
24+
emake AR="$(tc-getAR)" CC="$(tc-getCC)"
25+
}
26+
27+
multilib_src_test() {
28+
emake CC="$(tc-getCC)" check
29+
}
30+
31+
multilib_src_install() {
32+
local emakeargs=(
33+
DESTDIR="${D}"
34+
PREFIX="${EPREFIX}"/usr
35+
LIBDIR="${EPREFIX}"/usr/$(get_libdir)
36+
)
37+
38+
emake "${emakeargs[@]}" install
39+
einstalldocs
40+
41+
rm "${ED}"/usr/$(get_libdir)/libxxhash.a || die
42+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DIST erofs-utils-1.8.4.tar.gz 187276 BLAKE2B da0d80abbfd9b2d547c30bad7647165a3500f20e5de0b5db4c54efb27ec895fd069be983193b06d35728f5a8e1490e6cd255207c76135d8978d86e1512430755 SHA512 c941b0a2ab6c650a9aa4c9cadeb277ebc87007dc51354ff013c7cb763e6e8c9d44ed9e4791730ed05088faaba8c612198b924e70f5e52019382cfdf6d2e6b677
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Copyright 2021-2025 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
inherit autotools
7+
8+
DESCRIPTION="Userspace tools for EROFS"
9+
HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git"
10+
11+
SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/${PN}.git/snapshot/${P}.tar.gz"
12+
13+
LICENSE="GPL-2+"
14+
SLOT="0"
15+
KEYWORDS="~amd64 ~arm64 ~loong"
16+
17+
IUSE="fuse libdeflate +lz4 +lzma selinux static-libs +threads +uuid +zlib +zstd"
18+
19+
RDEPEND="
20+
dev-libs/xxhash:0=
21+
fuse? ( sys-fs/fuse:0 )
22+
lz4? ( app-arch/lz4:0= )
23+
lzma? ( >=app-arch/xz-utils-5.4.0:0= )
24+
selinux? ( sys-libs/libselinux:0= )
25+
uuid? ( sys-apps/util-linux )
26+
zlib? (
27+
libdeflate? ( app-arch/libdeflate:0= )
28+
!libdeflate? ( sys-libs/zlib:0= )
29+
)
30+
zstd? ( app-arch/zstd:0= )
31+
"
32+
DEPEND="${RDEPEND}"
33+
BDEPEND="virtual/pkgconfig"
34+
35+
PATCHES=(
36+
)
37+
38+
src_prepare() {
39+
default
40+
eautoreconf
41+
}
42+
43+
src_configure() {
44+
local myeconfargs=(
45+
--disable-werror
46+
$(use_enable fuse)
47+
$(use_with libdeflate)
48+
$(use_enable lz4)
49+
$(use_enable lzma)
50+
$(use_with selinux)
51+
$(use_enable static-libs static-fuse)
52+
$(use_enable threads multithreading)
53+
$(use_with uuid)
54+
$(use_with zlib)
55+
$(use_with zstd libzstd)
56+
--without-qpl # not packaged
57+
# do not use bundled xxhash; also upstream says "expected to be
58+
# faster than the internal one"
59+
--with-xxhash
60+
)
61+
62+
econf "${myeconfargs[@]}"
63+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="person">
5+
<email>[email protected]</email>
6+
<name>WANG Xuerui</name>
7+
</maintainer>
8+
<use>
9+
<flag name="fuse">Builds erofsfuse (requires <pkg>sys-fs/fuse</pkg>).</flag>
10+
<flag name="libdeflate">Use <pkg>app-arch/libdeflate</pkg> rather than <pkg>sys-libs/zlib</pkg> for handling deflate compression.</flag>
11+
<flag name="uuid">Enables UUID support via <pkg>sys-apps/util-linux</pkg>.</flag>
12+
</use>
13+
</pkgmetadata>

0 commit comments

Comments
 (0)