sys-process/criu: fix build
authorMatthias Maier <tamiko@gentoo.org>
Mon, 29 Jul 2019 02:41:45 +0000 (21:41 -0500)
committerMatthias Maier <tamiko@gentoo.org>
Mon, 29 Jul 2019 02:43:12 +0000 (21:43 -0500)
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
sys-process/criu/criu-3.12.ebuild
sys-process/criu/files/criu-3.12-automagic-libbsd.patch [new file with mode: 0644]

index 09d8af6c2b81c4a9298d2216d79b7b7bd4f74ffa..9001e1cf7519eda32914f77fbbc1a021221672b4 100644 (file)
@@ -46,8 +46,7 @@ RESTRICT="test"
 PATCHES=(
        "${FILESDIR}"/2.2/${PN}-2.2-flags.patch
        "${FILESDIR}"/2.3/${PN}-2.3-no-git.patch
-       "${FILESDIR}"/${PN}-2.8-automagic-libbsd.patch
-       "${FILESDIR}"/2.0/${PN}-2.0-sysroot.patch
+       "${FILESDIR}"/${PN}-3.12-automagic-libbsd.patch
 )
 
 criu_arch() {
diff --git a/sys-process/criu/files/criu-3.12-automagic-libbsd.patch b/sys-process/criu/files/criu-3.12-automagic-libbsd.patch
new file mode 100644 (file)
index 0000000..7794f82
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/Makefile.config b/Makefile.config
+index a853705..27bb91f 100644
+--- a/Makefile.config
++++ b/Makefile.config
+@@ -2,7 +2,7 @@ include $(__nmk_dir)utils.mk
+ include $(__nmk_dir)msg.mk
+ include scripts/feature-tests.mak
+-ifeq ($(call try-cc,$(FEATURE_TEST_LIBBSD_DEV),-lbsd),true)
++ifeq ($(SETPROCTITLE)$(call try-cc,$(FEATURE_TEST_LIBBSD_DEV),-lbsd),yestrue)
+         LIBS_FEATURES += -lbsd
+         FEATURE_DEFINES       += -DCONFIG_HAS_LIBBSD
+ else