sys-freebsd/freebsd-sources: Fix the issue that can not build bmake.
authorYuta Satoh <nigoro.dev@gmail.com>
Thu, 16 Jun 2016 10:29:51 +0000 (19:29 +0900)
committerYuta Satoh <nigoro.dev@gmail.com>
Thu, 16 Jun 2016 10:29:51 +0000 (19:29 +0900)
sys-freebsd/freebsd-sources/files/freebsd-ubin-10.3-bmake-workaround.patch [new file with mode: 0644]
sys-freebsd/freebsd-sources/freebsd-sources-10.3-r3.ebuild

diff --git a/sys-freebsd/freebsd-sources/files/freebsd-ubin-10.3-bmake-workaround.patch b/sys-freebsd/freebsd-sources/files/freebsd-ubin-10.3-bmake-workaround.patch
new file mode 100644 (file)
index 0000000..c0ca444
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/usr.bin/bmake/Makefile b/usr.bin/bmake/Makefile
+index 6c6d8c2..22fec7a 100644
+--- a/usr.bin/bmake/Makefile
++++ b/usr.bin/bmake/Makefile
+@@ -5,7 +5,7 @@
+ .sinclude "Makefile.inc"
+-SRCTOP?= ${.CURDIR:H:H}
++SRCTOP= ${.CURDIR:H:H}
+ # look here first for config.h
+ CFLAGS+= -I${.CURDIR}
index 65202d3b55c1c5d1753fe80c5cdfa4a8274a5deb..8c16793d9488f1eb6b7c0130b072755fefb4c4bc 100644 (file)
@@ -71,6 +71,10 @@ pkg_setup() {
 src_prepare() {
        local conf="${S}/$(tc-arch-kernel)/conf/${KERN_BUILD}"
 
+       cd "${WORKDIR}" || die
+       epatch "${FILESDIR}/freebsd-ubin-10.3-bmake-workaround.patch"
+       cd "${S}" || die
+
        # This replaces the gentoover patch, it doesn't need reapply every time.
        sed -i -e 's:^REVISION=.*:REVISION="'${PVR}'":' \
                -e 's:^BRANCH=.*:BRANCH="Gentoo":' \