Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 580362 | Differences between
and this patch

Collapse All | Expand All

(-)pax-20160306.ebuild.old (-3 / +9 lines)
Lines 2-10 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id$
3
# $Id$
4
4
5
EAPI="5"
5
EAPI="6"
6
6
7
inherit unpacker toolchain-funcs
7
inherit unpacker toolchain-funcs flag-o-matic
8
8
9
DESCRIPTION="pax (Portable Archive eXchange) is the POSIX standard archive tool"
9
DESCRIPTION="pax (Portable Archive eXchange) is the POSIX standard archive tool"
10
HOMEPAGE="https://www.mirbsd.org/pax.htm"
10
HOMEPAGE="https://www.mirbsd.org/pax.htm"
Lines 15-29 Link Here
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
16
IUSE=""
16
IUSE=""
17
17
18
RDEPEND="dev-libs/libbsd"
18
RDEPEND="dev-libs/libbsd
19
	elibc_musl? ( sys-libs/fts-standalone )"
19
DEPEND="${RDEPEND}
20
DEPEND="${RDEPEND}
20
	$(unpacker_src_uri_depends)"
21
	$(unpacker_src_uri_depends)"
21
22
22
S=${WORKDIR}/${PN}
23
S=${WORKDIR}/${PN}
23
24
25
PATCHES=( "${FILESDIR}/${P}-glibc-to-linux.patch" )
26
24
src_prepare() {
27
src_prepare() {
25
	# Newer C libraries omit this include from sys/types.h.
28
	# Newer C libraries omit this include from sys/types.h.
26
	sed -i '1i#include <sys/sysmacros.h>' extern.h || die
29
	sed -i '1i#include <sys/sysmacros.h>' extern.h || die
30
	default
27
}
31
}
28
32
29
src_configure() {
33
src_configure() {
Lines 31-36 Link Here
31
}
35
}
32
36
33
src_compile() {
37
src_compile() {
38
    use elibc_musl && append-ldflags "-lfts"
39
34
	# We can't rely on LFS flags as it uses the fts.h interface which lacks 64-bit support.
40
	# We can't rely on LFS flags as it uses the fts.h interface which lacks 64-bit support.
35
	set -- \
41
	set -- \
36
		${CC} ${CPPFLAGS} ${CFLAGS} \
42
		${CC} ${CPPFLAGS} ${CFLAGS} \

Return to bug 580362