diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2020-04-14 15:41:47 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2020-04-15 14:58:16 -0400 |
commit | 65086a9972bf345a72c5c1f40dfb3209e1059ccf (patch) | |
tree | c35f5873e718ba26da7d5017ec853b3dba6bf247 /recipes-security/selinux/libselinux/0001-Makefile-fix-python-modules-install-path-for-multili.patch | |
parent | a1db7a9925d781450595641692b44cb5353155cc (diff) | |
download | meta-selinux-65086a9972bf345a72c5c1f40dfb3209e1059ccf.tar.gz |
libselinux-python: upgrade to 3.0 (20191204)
* Inherit python3native as the libselinux uses python distutils to install
selinux python bindings now.
* Add a patch to fix python modules install path for multilib.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'recipes-security/selinux/libselinux/0001-Makefile-fix-python-modules-install-path-for-multili.patch')
-rw-r--r-- | recipes-security/selinux/libselinux/0001-Makefile-fix-python-modules-install-path-for-multili.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes-security/selinux/libselinux/0001-Makefile-fix-python-modules-install-path-for-multili.patch b/recipes-security/selinux/libselinux/0001-Makefile-fix-python-modules-install-path-for-multili.patch new file mode 100644 index 0000000..f0fee23 --- /dev/null +++ b/recipes-security/selinux/libselinux/0001-Makefile-fix-python-modules-install-path-for-multili.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 930514c1b93335ccf6d70adf46ca7e3f8183603d Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Mon, 13 Apr 2020 12:44:23 +0800 | ||
4 | Subject: [PATCH] Makefile: fix python modules install path for multilib | ||
5 | |||
6 | Upstream-Status: Inappropriate [embedded specific] | ||
7 | |||
8 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
9 | --- | ||
10 | src/Makefile | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/src/Makefile b/src/Makefile | ||
14 | index b0ce2c8..a384a10 100644 | ||
15 | --- a/src/Makefile | ||
16 | +++ b/src/Makefile | ||
17 | @@ -173,7 +173,7 @@ install: all | ||
18 | ln -sf --relative $(DESTDIR)$(SHLIBDIR)/$(LIBSO) $(DESTDIR)$(LIBDIR)/$(TARGET) | ||
19 | |||
20 | install-pywrap: pywrap | ||
21 | - $(PYTHON) setup.py install --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` | ||
22 | + $(PYTHON) setup.py install --prefix=$(PREFIX) --root=$(DESTDIR) --install-lib=$(PYTHONLIBDIR) | ||
23 | install -m 644 $(SWIGPYOUT) $(DESTDIR)$(PYTHONLIBDIR)/selinux/__init__.py | ||
24 | ln -sf --relative $(DESTDIR)$(PYTHONLIBDIR)/selinux/_selinux$(PYCEXT) $(DESTDIR)$(PYTHONLIBDIR)/_selinux$(PYCEXT) | ||
25 | |||
26 | -- | ||
27 | 2.7.4 | ||
28 | |||