setools: fix compilation with python 3.9
authorRosen Penev <redacted>
Thu, 29 Oct 2020 03:44:47 +0000 (20:44 -0700)
committerRosen Penev <redacted>
Thu, 29 Oct 2020 05:37:43 +0000 (22:37 -0700)
Don't warn on deprecated declarations.

Rename warning patch. It's specific to foritfy-headers.

Signed-off-by: Rosen Penev <redacted>
utils/setools/Makefile
utils/setools/patches/010-no-format.patch [moved from utils/setools/patches/010-fewer-warnings.patch with 100% similarity]
utils/setools/patches/020-no-deprecated.patch [new file with mode: 0644]

index ba38e4f78f03ea4f1f467a226de70ce56ccf59f0..bc7bed8a3fa2db0cbf082c9ebca28c4157135430 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=setools
 PKG_VERSION:=4.3.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://github.com/SELinuxProject/setools/releases/download/4.3.0
diff --git a/utils/setools/patches/020-no-deprecated.patch b/utils/setools/patches/020-no-deprecated.patch
new file mode 100644 (file)
index 0000000..5059bed
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/setup.py
++++ b/setup.py
+@@ -126,6 +126,7 @@ ext_py_mods = [Extension('setools.policyrep', ['setools/policyrep.pyx'],
+                                              '-Wno-unreachable-code',
+                                              '-Wno-implicit-fallthrough',
+                                              '-Wno-cast-function-type',
++                                             '-Wno-deprecated-declarations',
+                                              '-fno-exceptions'])]
+ installed_data = [('share/man/man1', glob.glob("man/*.1"))]
git clone https://git.99rst.org/PROJECT