Skip to content

Commit

Permalink
sys-process/criu: fix build
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Matthias Maier <[email protected]>
  • Loading branch information
tamiko committed Jul 29, 2019
1 parent 5c4251f commit a513ac7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 1 addition & 2 deletions sys-process/criu/criu-3.12.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
13 changes: 13 additions & 0 deletions sys-process/criu/files/criu-3.12-automagic-libbsd.patch
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a513ac7

Please sign in to comment.