commit:     a8de88dab3a6f39398762aa2e71c165e7bd9521b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  1 14:33:48 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Mar  1 15:09:39 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8de88da

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(-)

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 e28f2420c1f..6e8b27343dc 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
 

Reply via email to