setools: fix compilation with python 3.9
Don't warn on deprecated declarations. Rename warning patch. It's specific to foritfy-headers. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
2e297d29c0
commit
21f19a4cab
|
@ -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
|
||||
|
|
|
@ -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"))]
|
Loading…
Reference in New Issue