summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-03-15 16:01:08 +0100
committerAlexis Ballier <aballier@gentoo.org>2016-03-15 16:12:55 +0100
commit5fcb6dedbe1b7a139ff1951f9964baaebb2ba3ef (patch)
treef2ad69ab076553689244e94b23508eeab72c3fae /sys-process/criu/files
parentdev-ruby/coderay: amd64 stable wrt bug #576630 (diff)
downloadgentoo-5fcb6dedbe1b7a139ff1951f9964baaebb2ba3ef.tar.gz
gentoo-5fcb6dedbe1b7a139ff1951f9964baaebb2ba3ef.tar.bz2
gentoo-5fcb6dedbe1b7a139ff1951f9964baaebb2ba3ef.zip
sys-process/criu: Add python useflag and fix build with LDFLAGS not matching default.
Adapt makefile patch to use RAW_LDFLAGS for ld which we feed from ebuild. Patch makefile to allow disabling python and make it optional with proper deps, bug #576716. Package-Manager: portage-2.2.28 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'sys-process/criu/files')
-rw-r--r--sys-process/criu/files/2.0/criu-2.0-makefile.patch58
1 files changed, 46 insertions, 12 deletions
diff --git a/sys-process/criu/files/2.0/criu-2.0-makefile.patch b/sys-process/criu/files/2.0/criu-2.0-makefile.patch
index 4c7d67fcf002..b9c9cb4d83b3 100644
--- a/sys-process/criu/files/2.0/criu-2.0-makefile.patch
+++ b/sys-process/criu/files/2.0/criu-2.0-makefile.patch
@@ -1,7 +1,7 @@
-diff --git a/Makefile.install b/Makefile.install
-index 6fcf25e..0d12ff9 100644
---- a/Makefile.install
-+++ b/Makefile.install
+Index: criu-2.0/Makefile.install
+===================================================================
+--- criu-2.0.orig/Makefile.install
++++ criu-2.0/Makefile.install
@@ -5,13 +5,12 @@ PREFIX ?= /usr/local
SBINDIR ?= $(PREFIX)/sbin
MANDIR ?= $(PREFIX)/share/man
@@ -18,17 +18,51 @@ index 6fcf25e..0d12ff9 100644
ifneq "$(DEB_HOST_MULTIARCH)" ""
LIBDIR ?= $(PREFIX)/lib/$(DEB_HOST_MULTIARCH)
else
-diff --git a/scripts/nmk/scripts/build.mk b/scripts/nmk/scripts/build.mk
-index 10a5d44..6b20569 100644
---- a/scripts/nmk/scripts/build.mk
-+++ b/scripts/nmk/scripts/build.mk
-@@ -43,7 +43,9 @@ builtin-name := $(strip $(builtin-name))
+Index: criu-2.0/scripts/nmk/scripts/build.mk
+===================================================================
+--- criu-2.0.orig/scripts/nmk/scripts/build.mk
++++ criu-2.0/scripts/nmk/scripts/build.mk
+@@ -43,7 +43,7 @@ builtin-name := $(strip $(builtin-name))
#
# Link flags.
-+ld_filter_flags = -Wl,-O1 -Wl,--as-needed
- ld_flags := $(strip $(LDFLAGS) $(ldflags-y))
-+ld_flags := $(filter-out $(ld_filter_flags),$(ld_flags))
+-ld_flags := $(strip $(LDFLAGS) $(ldflags-y))
++ld_flags := $(strip $(RAW_LDFLAGS) $(ldflags-y))
#
# Prepare targets.
+Index: criu-2.0/lib/Makefile
+===================================================================
+--- criu-2.0.orig/lib/Makefile
++++ criu-2.0/lib/Makefile
+@@ -20,10 +20,12 @@ PHONY += lib-c
+
+ #
+ # Python bindings.
++ifeq ($(PYCRIU),yes)
+ lib-py:
+ $(call msg-gen, $@)
+ $(Q) $(MAKE) -C py all
+ PHONY += lib-py
++endif
+
+ clean:
+ $(call msg-clean, lib-c)
+@@ -37,7 +39,7 @@ all: $(PHONY)
+ @true
+ PHONY += all
+
+-install: lib-c lib-py ../crit/crit c/criu.pc.in
++install: lib-c ../crit/crit c/criu.pc.in
+ $(E) " INSTALL " $(CRIU_SO)
+ $(Q) mkdir -p $(DESTDIR)$(LIBDIR)
+ $(Q) install -m 755 c/$(CRIU_SO) $(DESTDIR)$(LIBDIR)/$(CRIU_SO).$(CRIU_SO_VERSION_MAJOR).$(CRIU_SO_VERSION_MINOR)
+@@ -49,8 +51,6 @@ install: lib-c lib-py ../crit/crit c/cri
+ $(Q) mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
+ $(Q) sed -e 's,@version@,$(CRIU_VERSION),' -e 's,@libdir@,$(LIBDIR),' -e 's,@includedir@,$(dir $(INCLUDEDIR)),' c/criu.pc.in > c/criu.pc
+ $(Q) install -m 644 c/criu.pc $(DESTDIR)$(LIBDIR)/pkgconfig
+- $(E) " INSTALL " crit
+- $(Q) python ../scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX)
+ .PHONY: install
+
+ .PHONY: $(PHONY) clean