diff options
author | Jeroen Roovers <jer@gentoo.org> | 2017-12-07 07:43:39 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2017-12-07 07:45:33 +0100 |
commit | ac94bbdfb348d04f8e1499288e589939d6766de4 (patch) | |
tree | 58dd9e26ed55f26042f374158675ffe23ded072c /app-arch/pax | |
parent | net-libs/nodejs: Add live ebuild. (diff) | |
download | gentoo-ac94bbdfb348d04f8e1499288e589939d6766de4.tar.gz gentoo-ac94bbdfb348d04f8e1499288e589939d6766de4.tar.bz2 gentoo-ac94bbdfb348d04f8e1499288e589939d6766de4.zip |
app-arch/pax: Version bump.
Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'app-arch/pax')
-rw-r--r-- | app-arch/pax/Manifest | 1 | ||||
-rw-r--r-- | app-arch/pax/files/pax-20160306-glibc-to-linux.patch | 4 | ||||
-rw-r--r-- | app-arch/pax/pax-20161104.ebuild | 63 |
3 files changed, 66 insertions, 2 deletions
diff --git a/app-arch/pax/Manifest b/app-arch/pax/Manifest index 7c01e81a31c0..f57780793f93 100644 --- a/app-arch/pax/Manifest +++ b/app-arch/pax/Manifest @@ -1,2 +1,3 @@ DIST pax-3.4-12.fc16.src.rpm 171016 BLAKE2B 94332a7cd24613c4488c1f00de3bcebeba9a82bc948b3cf83274c5a8d3efb5f687f1363376c40e5dc17a001a2f8c677b49d219a9530ece1710d2f7ddd60a9f44 SHA512 78704cd1b66288acdaa8fdf4ca0a97c12b1e843e024be4d3fac88a6b42049928c6bfe69a72a58a00a9bf755c23e1e8e0b7d30bc72ba08a83830495dd5f6d9be1 DIST paxmirabilis-20160306.cpio.gz 147448 BLAKE2B b2a9bcfbb6d2007b8a4162b8d010c2a34f7ebc8595a8c20f6b8e973d85421a7f21f24d90b3d0228e5c9921b69dec1ef0ddcd4ee540f95072237255ecf309016d SHA512 65c9613f235d973f23d829d87b93963f4b21beca4d7158abb8243f7f0ba8eb883544bbd0c16bde82f0e55ab2fbf33e3dfb155a50c0f5be3bf6d88eaf95e1037f +DIST paxmirabilis-20161104.cpio.gz 148061 BLAKE2B 997a126d3048488e1a4e49ff9753de2ebdbe75b7daedbea8c95ab5f1902d4768d4b12b13fa684cb2a7c2fe8470ab60e19ea3f9430429a6a4e6e1d57993130fd4 SHA512 42ec8365a5efb9ffb9d383cece39ffaac85c1c8d69856ec557a5567cf0d28d98a0f2d4b7fed53572366eba12c71111cc80b591d51c6a19a3e6437efb62af33ce diff --git a/app-arch/pax/files/pax-20160306-glibc-to-linux.patch b/app-arch/pax/files/pax-20160306-glibc-to-linux.patch index f864729cc4fe..eec6624eedc2 100644 --- a/app-arch/pax/files/pax-20160306-glibc-to-linux.patch +++ b/app-arch/pax/files/pax-20160306-glibc-to-linux.patch @@ -1,5 +1,5 @@ ---- pax/cache.c.old 2016-03-06 08:12:52.000000000 -0600 -+++ pax/cache.c 2016-04-17 13:01:26.461307830 -0500 +--- a/cache.c ++++ b/cache.c @@ -195,7 +195,7 @@ * No entry for this uid, we will add it */ diff --git a/app-arch/pax/pax-20161104.ebuild b/app-arch/pax/pax-20161104.ebuild new file mode 100644 index 000000000000..da9f50e30b24 --- /dev/null +++ b/app-arch/pax/pax-20161104.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +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" +SRC_URI="https://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-${PV}.cpio.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + +RDEPEND=" + dev-libs/libbsd + elibc_musl? ( sys-libs/fts-standalone ) +" +DEPEND=" + ${RDEPEND} + $(unpacker_src_uri_depends) +" +PATCHES=( + "${FILESDIR}/${PN}-20160306-glibc-to-linux.patch" +) +S=${WORKDIR}/${PN} + +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() { + tc-export CC PKG_CONFIG +} + +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} \ + -DPAX_SAFE_PATH=\"/bin:/usr/bin\" \ + -DHAVE_STRLCPY -DHAVE_VIS -DHAVE_STRMODE \ + -DLONG_OFF_T -DHAVE_LINKAT \ + $(${PKG_CONFIG} --cflags libbsd-overlay) \ + -Wall ${LDFLAGS} *.c -o ${PN} \ + $(${PKG_CONFIG} --libs libbsd-overlay) + echo "$@" + "$@" || die +} + +src_install() { + dobin ${PN} + doman ${PN}.1 + + dosym pax /usr/bin/paxcpio + newman cpio.1 paxcpio.1 + + dosym pax /usr/bin/paxtar + newman tar.1 paxtar.1 +} |