package/selinux-python: bump to version 3.0
authorMatt Weber <matthew.weber@rockwellcollins.com>
Wed, 15 Apr 2020 12:59:21 +0000 (07:59 -0500)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 17 Apr 2020 20:47:20 +0000 (22:47 +0200)
This is now Python 3.x only.

Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/selinux-python/Config.in
package/selinux-python/selinux-python.hash
package/selinux-python/selinux-python.mk

index 5b6cbc80e37ade56c0ca5b896e2a594c5f1134bf..1a610b29f037e90cc21823ccd3262dc825b714b5 100644 (file)
@@ -4,7 +4,7 @@ config BR2_PACKAGE_SELINUX_PYTHON
        depends on BR2_USE_WCHAR
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on !BR2_STATIC_LIBS
-       select BR2_PACKAGE_PYTHON3 if !BR2_PACKAGE_PYTHON
+       select BR2_PACKAGE_PYTHON3
        help
          A set of SELinux tools written in python that help with
          managing a system with SELinux enabled. If no packages are
index 8cbac3701676cf0de3f12518e1024e77a302d328..8fb72423e8506d27bbe56831d6953180adefd41c 100644 (file)
@@ -1,5 +1,5 @@
 # https://github.com/SELinuxProject/selinux/wiki/Releases
-sha256 3650b5393b0d1790cac66db00e34f059aa91c23cfe3c2559676594e295d75fde selinux-python-2.9.tar.gz
+sha256 43c08fa881ccc64251d396b1ac6c56b354bf98421b4ec937d54a8db190135494 selinux-python-3.0.tar.gz
 
 # Hash for license file
 sha256 204d8eff92f95aac4df6c8122bc1505f468f3a901e5a4cc08940e0ede1938994 COPYING
index 978bee7c88c2c1d1aa0ca27e31b0fedbd4ee9f34..d6c32317868faf0043b13f40f53b56c3419ed042 100644 (file)
@@ -4,25 +4,17 @@
 #
 ################################################################################
 
-SELINUX_PYTHON_VERSION = 2.9
-SELINUX_PYTHON_SITE = https://github.com/SELinuxProject/selinux/releases/download/20190315
+SELINUX_PYTHON_VERSION = 3.0
+SELINUX_PYTHON_SITE = https://github.com/SELinuxProject/selinux/releases/download/20191204
 SELINUX_PYTHON_LICENSE = GPL-2.0
 SELINUX_PYTHON_LICENSE_FILES = COPYING
+SELINUX_PYTHON_DEPENDENCIES = python3
 
 SELINUX_PYTHON_MAKE_OPTS += \
        $(TARGET_CONFIGURE_OPTS) \
        ARCH="$(BR2_ARCH)" \
-       LIBDIR="$(STAGING_DIR)/usr/lib"
-
-ifeq ($(BR2_PACKAGE_PYTHON3),y)
-SELINUX_PYTHON_DEPENDENCIES += python3
-SELINUX_PYTHON_MAKE_OPTS += \
+       LIBDIR="$(STAGING_DIR)/usr/lib" \
        PYTHONLIBDIR="usr/lib/python$(PYTHON3_VERSION_MAJOR)"
-else
-SELINUX_PYTHON_DEPENDENCIES += python
-SELINUX_PYTHON_MAKE_OPTS += \
-       PYTHONLIBDIR="usr/lib/python$(PYTHON_VERSION_MAJOR)"
-endif
 
 ifeq ($(BR2_PACKAGE_SELINUX_PYTHON_AUDIT2ALLOW),y)
 SELINUX_PYTHON_DEPENDENCIES += checkpolicy