From a8de88dab3a6f39398762aa2e71c165e7bd9521b Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 1 Mar 2018 15:33:48 +0100 Subject: sys-freebsd/freebsd-lib: Apply sys header fix only for USE=build The 'sys' directory is not extracted with USE=-build, so apply the patch only when there's something to patch. Not that I have any clue how this is going to work at all with USE=-build. --- sys-freebsd/freebsd-lib/freebsd-lib-11.1-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-freebsd') diff --git a/sys-freebsd/freebsd-lib/freebsd-lib-11.1-r1.ebuild b/sys-freebsd/freebsd-lib/freebsd-lib-11.1-r1.ebuild index e28f2420c1f1..6e8b27343dc9 100644 --- a/sys-freebsd/freebsd-lib/freebsd-lib-11.1-r1.ebuild +++ b/sys-freebsd/freebsd-lib/freebsd-lib-11.1-r1.ebuild @@ -174,7 +174,6 @@ src_prepare() { # patches "${WORKDIR}/include" cd "${WORKDIR}" epatch "${FILESDIR}/${PN}-includes.patch" - epatch "${FILESDIR}/${PN}-11.1-elf-nhdr.patch" # Don't install the hesiod man page or header rm "${WORKDIR}"/include/hesiod.h || die @@ -221,6 +220,7 @@ src_prepare() { # This patch has to be applied on ${WORKDIR}/sys, so we do it here since it # shouldn't be a symlink to /usr/src/sys (which should be already patched) epatch "${FILESDIR}"/freebsd-sources-9.0-sysctluint.patch + epatch "${FILESDIR}/${PN}-11.1-elf-nhdr.patch" return 0 fi -- cgit v1.2.3-65-gdbad