sys-process/criu: inject SYSROOT into the makefiles for libnl3 cflags so that target...
authorAlexis Ballier <aballier@gentoo.org>
Tue, 15 Mar 2016 15:12:42 +0000 (16:12 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 15 Mar 2016 15:12:55 +0000 (16:12 +0100)
Package-Manager: portage-2.2.28
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
sys-process/criu/criu-2.0.ebuild
sys-process/criu/files/2.0/criu-2.0-sysroot.patch [new file with mode: 0644]

index c1c17f8b4b5508ed9ee82d6a98c37ec89111b93f..b8c219841a70283c1208bb4e387c07d6c85bbd78 100644 (file)
@@ -39,6 +39,7 @@ src_prepare() {
        epatch "${FILESDIR}"/${PV}/${P}-flags.patch
        epatch "${FILESDIR}"/${PV}/${P}-makefile.patch
        epatch "${FILESDIR}"/${PV}/${P}-automagic-libbsd.patch
+       epatch "${FILESDIR}"/${PV}/${P}-sysroot.patch
 }
 
 criu_arch() {
diff --git a/sys-process/criu/files/2.0/criu-2.0-sysroot.patch b/sys-process/criu/files/2.0/criu-2.0-sysroot.patch
new file mode 100644 (file)
index 0000000..333c564
--- /dev/null
@@ -0,0 +1,15 @@
+Using host headers when cross compiling is not a great idea.
+
+Index: criu-2.0/criu/Makefile
+===================================================================
+--- criu-2.0.orig/criu/Makefile
++++ criu-2.0/criu/Makefile
+@@ -51,7 +51,7 @@ ccflags-y            += -iquote $(SRC_DIR)/criu/pi
+ ccflags-y             += -iquote $(SRC_DIR)/criu/$(ARCH_DIR)
+ ccflags-y             += -iquote $(SRC_DIR)/criu/$(ARCH_DIR)/include
+ ccflags-y             += -iquote $(SRC_DIR)/
+-ccflags-y             += -I/usr/include/libnl3
++ccflags-y             += -I${SYSROOT}/usr/include/libnl3
+ export ccflags-y