apparmor: fix python packaging issue

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@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Armin Kuster
2017-05-23 18:13:57 -07:00
committed by Armin Kuster
parent 4f2a08e3fa
commit 89683b4fee
+2 -2
View File
@@ -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)}"