[yocto] [meta-security][PATCH] apparmor: fix python packaging issue

Armin Kuster akuster808 at gmail.com
Mon May 29 14:15:19 PDT 2017


From: Armin Kuster <akuster at mvista.com>

WARNING: apparmor-2.11.0-r0 do_package: QA Issue: apparmor: Files/directories were installed but not shipped in any package:
  /usr/lib/python2.7
  /usr/lib/python2.7/site-packages
  /usr/lib/python2.7/site-packages/apparmor-2.11.0-py2.7.egg-info
  /usr/lib/python2.7/site-packages/apparmor
  /usr/lib/python2.7/site-packages/apparmor/regex.py

use python2 instead of python3

Signed-off-by: Armin Kuster <akuster at mvista.com>
---
 recipes-security/AppArmor/apparmor_2.11.0.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-security/AppArmor/apparmor_2.11.0.bb b/recipes-security/AppArmor/apparmor_2.11.0.bb
index 8ad2d25..591a673 100644
--- a/recipes-security/AppArmor/apparmor_2.11.0.bb
+++ b/recipes-security/AppArmor/apparmor_2.11.0.bb
@@ -27,14 +27,14 @@ SRC_URI[sha256sum] = "b1c489ea11e7771b8e6b181532cafbf9ebe6603e3cb00e2558f21b7a5b
 
 PARALLEL_MAKE = ""
 
-inherit pkgconfig autotools-brokensep update-rc.d python3-dir perlnative ptest
+inherit pkgconfig autotools-brokensep update-rc.d python-dir perlnative ptest
 inherit ${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager','systemd','systemd','', d)}
 
 S = "${WORKDIR}/apparmor-${PV}"
 
 PACKAGECONFIG ?="man"
 PACKAGECONFIG[man] = "--enable-man-pages, --disable-man-pages"
-PACKAGECONFIG[python3] = "--with-python, --without-python, python3 swig-native"
+PACKAGECONFIG[python] = "--with-python, --without-python, python swig-native"
 PACKAGECONFIG[perl] = "--with-perl, --without-perl, perl perl-native"
 
 PAMLIB="${@bb.utils.contains('DISTRO_FEATURES', 'pam', '1', '0', d)}"
-- 
2.7.4




More information about the yocto mailing list