mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
The patch addition is safe for glibc, since all additions are behind "#if !defined(__GLIBC__)". The patches are from void-linux. On musl it also requires sys-libs/obstack-standalone, and manual add of "-lobstack" to linking (needed by debugreiserfs). Also noted that we are missing sys-fs/e2fsprogs in R/DEP, for which I've revbumped. Closes: https://bugs.gentoo.org/832972 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
63 lines
1.4 KiB
Bash
63 lines
1.4 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit autotools flag-o-matic usr-ldscript
|
|
|
|
DESCRIPTION="Reiserfs Utilities"
|
|
HOMEPAGE="https://www.kernel.org/pub/linux/utils/fs/reiserfs/"
|
|
SRC_URI="https://www.kernel.org/pub/linux/utils/fs/reiserfs/${P}.tar.xz
|
|
https://www.kernel.org/pub/linux/kernel/people/jeffm/${PN}/v${PV}/${P}.tar.xz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv -sparc x86 ~amd64-linux ~x86-linux"
|
|
IUSE="static-libs"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${PN}-3.6.25-no_acl.patch"
|
|
"${FILESDIR}/${PN}-3.6.27-loff_t.patch"
|
|
"${FILESDIR}/${PN}-3.6.27-musl.patch"
|
|
)
|
|
|
|
RDEPEND="
|
|
sys-apps/util-linux
|
|
sys-fs/e2fsprogs
|
|
elibc_musl? ( sys-libs/obstack-standalone )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
append-flags -std=gnu89 #427300
|
|
use elibc_musl && append-ldflags -lobstack
|
|
|
|
local myeconfargs=(
|
|
--bindir="${EPREFIX}/bin"
|
|
--libdir="${EPREFIX}/$(get_libdir)"
|
|
--sbindir="${EPREFIX}/sbin"
|
|
$(use_enable static-libs static)
|
|
)
|
|
|
|
econf "${myeconfargs[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
dodir /usr/$(get_libdir)
|
|
mv "${ED}"/$(get_libdir)/pkgconfig "${ED}"/usr/$(get_libdir) || die
|
|
|
|
if use static-libs ; then
|
|
mv "${ED}"/$(get_libdir)/*a "${ED}"/usr/$(get_libdir) || die
|
|
gen_usr_ldscript libreiserfscore.so
|
|
else
|
|
find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
|
|
fi
|
|
}
|