mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
criu: Correct the installation directory for python modules
Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
parent
9b0c0178ba
commit
90c1046b58
|
@ -21,6 +21,7 @@ SRC_URI = "git://github.com/xemul/criu.git;protocol=git \
|
||||||
file://0001-criu-Fix-toolchain-hardcode.patch \
|
file://0001-criu-Fix-toolchain-hardcode.patch \
|
||||||
file://0002-criu-Skip-documentation-install.patch \
|
file://0002-criu-Skip-documentation-install.patch \
|
||||||
file://0001-criu-Change-libraries-install-directory.patch \
|
file://0001-criu-Change-libraries-install-directory.patch \
|
||||||
|
file://0001-criu-Correct-the-installation-directory-for-python-m.patch \
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'selinux', '', 'file://disable-selinux.patch', d)} \
|
${@bb.utils.contains('PACKAGECONFIG', 'selinux', '', 'file://disable-selinux.patch', d)} \
|
||||||
file://lib-Makefile-overwrite-install-lib-to-allow-multiarc.patch \
|
file://lib-Makefile-overwrite-install-lib-to-allow-multiarc.patch \
|
||||||
"
|
"
|
||||||
|
@ -43,6 +44,7 @@ EXTRA_OEMAKE_aarch64 += "ARCH=arm64 WERROR=0"
|
||||||
|
|
||||||
EXTRA_OEMAKE_append += "SBINDIR=${sbindir} LIBDIR=${libdir} INCLUDEDIR=${includedir} PIEGEN=no"
|
EXTRA_OEMAKE_append += "SBINDIR=${sbindir} LIBDIR=${libdir} INCLUDEDIR=${includedir} PIEGEN=no"
|
||||||
EXTRA_OEMAKE_append += "LOGROTATEDIR=${sysconfdir} SYSTEMDUNITDIR=${systemd_unitdir}"
|
EXTRA_OEMAKE_append += "LOGROTATEDIR=${sysconfdir} SYSTEMDUNITDIR=${systemd_unitdir}"
|
||||||
|
EXTRA_OEMAKE_append += "PYTHON_SITEPACKAGES_DIR=${PYTHON_SITEPACKAGES_DIR}"
|
||||||
|
|
||||||
CFLAGS += "-D__USE_GNU -D_GNU_SOURCE "
|
CFLAGS += "-D__USE_GNU -D_GNU_SOURCE "
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
From 29865b7e9288a60aca151df323ee89c0952e8158 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jianchuan Wang <jianchuan.wang@windriver.com>
|
||||||
|
Date: Thu, 3 Nov 2016 01:33:57 -0400
|
||||||
|
Subject: [PATCH] criu: Correct the installation directory for python module
|
||||||
|
distributions
|
||||||
|
|
||||||
|
Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
|
||||||
|
---
|
||||||
|
lib/Makefile | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/Makefile b/lib/Makefile
|
||||||
|
index f1c0821..c3003a5 100644
|
||||||
|
--- a/lib/Makefile
|
||||||
|
+++ b/lib/Makefile
|
||||||
|
@@ -55,8 +55,8 @@ install: lib-c lib-py ../crit/crit c/criu.pc.in
|
||||||
|
$(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) --record $(CRIT_SETUP_FILES)
|
||||||
|
+ $(E) " INSTALL " crit
|
||||||
|
+ $(Q) python ../scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX) --install-lib=$(PYTHON_SITEPACKAGES_DIR) --record $(CRIT_SETUP_FILES)
|
||||||
|
.PHONY: install
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
--
|
||||||
|
2.8.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user