From 1d3df562b781c7c9f9c54e65f2ac5972d2a0b022 Mon Sep 17 00:00:00 2001 From: Wenzong Fan Date: Mon, 4 Sep 2017 22:59:49 -0700 Subject: selinux-python: add package 2.7 (20170804) Move packages to python/*: - policycoreutils/semanage -> python/semanage - policycoreutils/audit2allow -> python/audit2allow - policycoreutils/sepolgen-ifgen -> python/audit2allow/sepolgen-ifgen - policycoreutils/sepolicy -> python/sepolicy - policycoreutils/scripts/chcat -> python/chcat - sepolgen -> python/sepolgen * Move and rebase patches: - policycoreutils-fix-TypeError-for-seobject.py.patch - policycoreutils-fix-sepolicy-install-path.patch - policycoreutils-process-ValueError-for-sepolicy-seobject.patch * Cleanup policycoreutils.inc and policycoreutils_2.7.bb Signed-off-by: Wenzong Fan Update policycoreutils_git.bb Signed-off-by: Mark Hatle --- .../selinux-python/fix-sepolicy-install-path.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 recipes-security/selinux/selinux-python/fix-sepolicy-install-path.patch (limited to 'recipes-security/selinux/selinux-python/fix-sepolicy-install-path.patch') diff --git a/recipes-security/selinux/selinux-python/fix-sepolicy-install-path.patch b/recipes-security/selinux/selinux-python/fix-sepolicy-install-path.patch new file mode 100644 index 0000000..617908a --- /dev/null +++ b/recipes-security/selinux/selinux-python/fix-sepolicy-install-path.patch @@ -0,0 +1,33 @@ +Subject: [PATCH] policycoreutils: fix install path for new pymodule sepolicy + +Signed-off-by: Xin Ouyang +Signed-off-by: Wenzong Fan +--- + sepolicy/Makefile | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/sepolicy/Makefile b/sepolicy/Makefile +index 2b8716c..70f4bdd 100644 +--- a/sepolicy/Makefile ++++ b/sepolicy/Makefile +@@ -12,6 +12,8 @@ BASHCOMPLETIONDIR ?= $(DESTDIR)/usr/share/bash-completion/completions + SHAREDIR ?= $(PREFIX)/share/sandbox + override CFLAGS = -I$(PREFIX)/include -DPACKAGE="policycoreutils" -Wall -Werror -Wextra -W -DSHARED -shared + ++PYLIBVER ?= $(shell python -c 'import sys;print "python%d.%d" % sys.version_info[0:2]') ++ + BASHCOMPLETIONS=sepolicy-bash-completion.sh + + all: python-build +@@ -30,7 +32,7 @@ test: + @python test_sepolicy.py -v + + install: +- $(PYTHON) setup.py install `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` ++ $(PYTHON) setup.py install --install-lib $(LIBDIR)/$(PYLIBVER)/site-packages + [ -d $(BINDIR) ] || mkdir -p $(BINDIR) + install -m 755 sepolicy.py $(BINDIR)/sepolicy + (cd $(BINDIR); ln -sf sepolicy sepolgen) +-- +1.7.9.5 + -- cgit v1.2.3-54-g00ecf