diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-04-17 19:27:28 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-04-17 19:28:32 -0400 |
commit | 578bd618a703044adb1cfc4f8bd1d114572848c6 (patch) | |
tree | c82f20a962df766c3e85f8e590ba9d4db05f0f16 /app-arch/pax/pax-20160306.ebuild | |
parent | games-arcade/performous: version bump (diff) | |
download | gentoo-578bd618a703044adb1cfc4f8bd1d114572848c6.tar.gz gentoo-578bd618a703044adb1cfc4f8bd1d114572848c6.tar.bz2 gentoo-578bd618a703044adb1cfc4f8bd1d114572848c6.zip |
app-arch/pax: add musl support, bug #580362
Package-Manager: portage-2.2.26
Diffstat (limited to 'app-arch/pax/pax-20160306.ebuild')
-rw-r--r-- | app-arch/pax/pax-20160306.ebuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app-arch/pax/pax-20160306.ebuild b/app-arch/pax/pax-20160306.ebuild index 1cfdaa455475..86a44b8cbdfe 100644 --- a/app-arch/pax/pax-20160306.ebuild +++ b/app-arch/pax/pax-20160306.ebuild @@ -4,7 +4,7 @@ EAPI="5" -inherit unpacker toolchain-funcs +inherit unpacker toolchain-funcs flag-o-matic DESCRIPTION="pax (Portable Archive eXchange) is the POSIX standard archive tool" HOMEPAGE="https://www.mirbsd.org/pax.htm" @@ -15,15 +15,19 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" IUSE="" -RDEPEND="dev-libs/libbsd" +RDEPEND="dev-libs/libbsd + elibc_musl? ( sys-libs/fts-standalone )" DEPEND="${RDEPEND} $(unpacker_src_uri_depends)" S=${WORKDIR}/${PN} +PATCHES=( "${FILESDIR}/${P}-glibc-to-linux.patch" ) + src_prepare() { # Newer C libraries omit this include from sys/types.h. sed -i '1i#include <sys/sysmacros.h>' extern.h || die + default } src_configure() { @@ -31,6 +35,8 @@ src_configure() { } src_compile() { + use elibc_musl && append-ldflags "-lfts" + # We can't rely on LFS flags as it uses the fts.h interface which lacks 64-bit support. set -- \ ${CC} ${CPPFLAGS} ${CFLAGS} \ |