sys-fs/btrfs-progs: add experimental USE flag

Add experimental USE flag to btrfs-progs, which sets the
--enable-experimental configure option and installs btrfs-corrupt-block,
which is otherwise ignored. Both of these changes are required for
xfstests to function correctly.

Closes: https://bugs.gentoo.org/937458
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Closes: https://github.com/gentoo/gentoo/pull/37918
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Mark Harmstone
2024-08-08 11:56:34 +01:00
committed by Sam James
parent 7200aecb3d
commit a429b97094
2 changed files with 8 additions and 2 deletions
+7 -2
View File
@@ -35,7 +35,7 @@ HOMEPAGE="https://btrfs.readthedocs.io/en/latest/"
LICENSE="GPL-2"
SLOT="0/0" # libbtrfs soname
IUSE="+convert +man reiserfs static static-libs udev +zstd"
IUSE="+convert +man experimental reiserfs static static-libs udev +zstd"
# Could support it with just !systemd => eudev, see mdadm, but let's
# see if someone asks for it first.
REQUIRED_USE="static? ( !udev )"
@@ -131,7 +131,7 @@ src_configure() {
--bindir="${EPREFIX}"/sbin
--enable-lzo
--disable-experimental
$(use_enable experimental)
--disable-python
$(use_enable convert)
$(use_enable man documentation)
@@ -171,6 +171,11 @@ src_install() {
emake V=1 DESTDIR="${D}" install "${makeargs[@]}"
if use experimental; then
exeinto /sbin
doexe btrfs-corrupt-block
fi
newbashcomp btrfs-completion btrfs
}
+1
View File
@@ -7,6 +7,7 @@
</maintainer>
<use>
<flag name="convert">Build ext2 conversion utility (btrfs-convert)</flag>
<flag name="experimental">Enable unstable and experimental features and install btrfs-corrupt-block, as needed by xfstests</flag>
<flag name="reiserfs">Enable reiserfs support in btrfs-convert tool.</flag>
<flag name="static">Build static binaries in addition to the dynamic ones</flag>
</use>