summaryrefslogtreecommitdiff
path: root/lang/python/python3-libselinux/patches
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-06-08 15:34:09 +0800
committerJeffery To <jeffery.to@gmail.com>2023-06-19 15:47:09 +0800
commita205483547ca835d98d5da1284e8a77c88eb5f97 (patch)
tree730537d3a21179758452e71e9870ea744c1c4e0d /lang/python/python3-libselinux/patches
parent6938f58a4528c6b3d314808fd2ec6da2a2dff77c (diff)
python3-libselinux: Update to 3.5, rename source/target package
* Rename: * Source package from python3-libselinux to python-selinux * Target package from python3-libselinux to python3-selinux * Update dependents with new target package name * Remove patches: * 010-setup-py-custom-cc.patch: LDSHARED is already set as part of $(PYTHON3_VARS) * 020-Make-use-of-variables-when-defining-libdir-and-inclu.patch: This package doesn't install the libselinux.pc file * Update package title and dependencies * Remove Build/InstallDev (files not used by any other package) * Use Py3Package to build Python bytecode and source packages Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python3-libselinux/patches')
-rw-r--r--lang/python/python3-libselinux/patches/010-setup-py-custom-cc.patch11
-rw-r--r--lang/python/python3-libselinux/patches/020-Make-use-of-variables-when-defining-libdir-and-inclu.patch21
2 files changed, 0 insertions, 32 deletions
diff --git a/lang/python/python3-libselinux/patches/010-setup-py-custom-cc.patch b/lang/python/python3-libselinux/patches/010-setup-py-custom-cc.patch
deleted file mode 100644
index 8fe816588..000000000
--- a/lang/python/python3-libselinux/patches/010-setup-py-custom-cc.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/src/Makefile
-+++ b/src/Makefile
-@@ -139,7 +139,7 @@ SWIGRUBY = swig -Wall -ruby -o $(SWIGRUB
- all: $(LIBA) $(LIBSO) $(LIBPC)
-
- pywrap: all selinuxswig_python_exception.i
-- CFLAGS="$(CFLAGS) $(SWIG_CFLAGS)" $(PYTHON) setup.py build_ext
-+ LDSHARED="$(CC) -shared" CFLAGS="$(CFLAGS) $(SWIG_CFLAGS)" $(PYTHON) setup.py build_ext
-
- rubywrap: all $(SWIGRUBYSO)
-
diff --git a/lang/python/python3-libselinux/patches/020-Make-use-of-variables-when-defining-libdir-and-inclu.patch b/lang/python/python3-libselinux/patches/020-Make-use-of-variables-when-defining-libdir-and-inclu.patch
deleted file mode 100644
index c900ff143..000000000
--- a/lang/python/python3-libselinux/patches/020-Make-use-of-variables-when-defining-libdir-and-inclu.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-Pkg-config definitions commonly make use of ${exec_prefix} and ${prefix}
-when defining libdir and includedir, respectively. OpenWrt, for example,
-relies on this when it adjusts things for cross compiling.
-
-Signed-off-by: W. Michael Petullo <mike@flyn.org>
----
- src/libselinux.pc.in | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
---- a/src/libselinux.pc.in
-+++ b/src/libselinux.pc.in
-@@ -1,7 +1,7 @@
- prefix=@prefix@
- exec_prefix=${prefix}
--libdir=@libdir@
--includedir=@includedir@
-+libdir=${exec_prefix}/lib
-+includedir=${prefix}/include
-
- Name: libselinux
- Description: SELinux utility library