package/policycoreutils: drop host-python(3) dependency for host-policycoreutils
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 22 Sep 2019 09:06:18 +0000 (11:06 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 22 Sep 2019 18:04:53 +0000 (20:04 +0200)
Since SELinux 2.7, the python tools that used to be in policycoreutils
have been moved into a separate package, called "python" in upstream
SELinux, and "selinux-python" in Buildroot. Therefore, we can drop the
host-python(3) dependency from host-policycoreutils.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/policycoreutils/policycoreutils.mk

index b117aa6902fabcc4c45866b6f96dfb505bf0911c..4f7176777ca9041bfd9ec83a0682a05b555bb2b8 100644 (file)
@@ -73,22 +73,10 @@ HOST_POLICYCOREUTILS_MAKE_OPTS = \
        $(HOST_CONFIGURE_OPTS) \
        CFLAGS="$(HOST_CFLAGS) -U_FILE_OFFSET_BITS" \
        CPPFLAGS="$(HOST_CPPFLAGS) -U_FILE_OFFSET_BITS" \
-       PYTHON="$(HOST_DIR)/bin/python" \
-       PYTHON_INSTALL_ARGS="$(HOST_PKG_PYTHON_DISTUTILS_INSTALL_OPTS)" \
        ARCH="$(HOSTARCH)" \
        DESTDIR=$(HOST_DIR) \
        PREFIX=$(HOST_DIR)
 
-ifeq ($(BR2_PACKAGE_PYTHON3),y)
-HOST_POLICYCOREUTILS_DEPENDENCIES += host-python3
-HOST_POLICYCOREUTILS_MAKE_OPTS += \
-       PYLIBVER="python$(PYTHON3_VERSION_MAJOR)"
-else
-HOST_POLICYCOREUTILS_DEPENDENCIES += host-python
-HOST_POLICYCOREUTILS_MAKE_OPTS += \
-       PYLIBVER="python$(PYTHON_VERSION_MAJOR)"
-endif
-
 # Note: We are only building the programs required by the refpolicy build
 HOST_POLICYCOREUTILS_MAKE_DIRS = \
        load_policy newrole run_init \