mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
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:
@@ -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
|
||||
|
||||
10
utils/setools/patches/020-no-deprecated.patch
Normal file
10
utils/setools/patches/020-no-deprecated.patch
Normal file
@@ -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"))]
|
||||
Reference in New Issue
Block a user