USE=static exposed automagic dependency on libreiserfscore.a.
The change adds USE=reiserfs and makes dependency and configuration
explicit.
While at it tweaked live ebuild (added 'm4' directory to autoconf).
Reported-by: Attila Tóth
Closes: https://bugs.gentoo.org/632092
Package-Manager: Portage-2.3.11, Repoman-2.3.3
LICENSE="GPL-2"
SLOT="0/${libbtrfs_soname}"
-IUSE="+convert static static-libs"
+IUSE="+convert reiserfs static static-libs"
RESTRICT=test # tries to mount repared filesystems
convert? (
sys-fs/e2fsprogs:0=
sys-libs/e2fsprogs-libs:0=
+ reiserfs? (
+ sys-fs/reiserfsprogs
+ )
)
"
DEPEND="${RDEPEND}
convert? (
sys-fs/e2fsprogs:0[static-libs(+)]
sys-libs/e2fsprogs-libs:0[static-libs(+)]
+ reiserfs? (
+ sys-fs/reiserfsprogs[static-libs(+)]
+ )
)
)
"
src_prepare() {
default
if [[ ${PV} == 9999 ]]; then
- eautoreconf
+ AT_M4DIR=m4 eautoreconf
mkdir config || die
local automakedir="$(autotools_run_tool --at-output automake --print-libdir)"
[[ -e ${automakedir} ]] || die "Could not locate automake directory"
--bindir="${EPREFIX}"/sbin
$(use_enable convert)
$(use_enable elibc_glibc backtrace)
+ # No whitespace due to 'ext2,reiserfs' being invalid
+ # for configure. TODO: Why it's not valid?
+ --with-convert=ext2$(usex reiserfs 'reiserfs' '')
)
econf "${myeconfargs[@]}"
}
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
LICENSE="GPL-2"
SLOT="0/${libbtrfs_soname}"
-IUSE="+convert static static-libs"
+IUSE="+convert reiserfs static static-libs"
RESTRICT=test # tries to mount repared filesystems
convert? (
sys-fs/e2fsprogs:0=
sys-libs/e2fsprogs-libs:0=
+ reiserfs? (
+ sys-fs/reiserfsprogs
+ )
)
"
DEPEND="${RDEPEND}
convert? (
sys-fs/e2fsprogs:0[static-libs(+)]
sys-libs/e2fsprogs-libs:0[static-libs(+)]
+ reiserfs? (
+ sys-fs/reiserfsprogs[static-libs(+)]
+ )
)
)
"
src_prepare() {
default
if [[ ${PV} == 9999 ]]; then
- eautoreconf
+ AT_M4DIR=m4 eautoreconf
mkdir config || die
local automakedir="$(autotools_run_tool --at-output automake --print-libdir)"
[[ -e ${automakedir} ]] || die "Could not locate automake directory"
--bindir="${EPREFIX}"/sbin
$(use_enable convert)
$(use_enable elibc_glibc backtrace)
+ # No whitespace due to 'ext2,reiserfs' being invalid
+ # for configure. TODO: Why it's not valid?
+ --with-convert=ext2$(usex reiserfs 'reiserfs' '')
)
econf "${myeconfargs[@]}"
}
</maintainer>
<use>
<flag name="convert">Build ext2 conversion utility (btrfs-convert)</flag>
- <flag name="static">Build static binaries in addition to the dynamic ones</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>
</pkgmetadata>