[packages/setools] - don't treat warning as errors, this code is not up to gcc 9 standards - rel 3

baggins baggins at pld-linux.org
Sun Nov 3 14:18:37 CET 2019


commit e904bba12588160c5c34a9bce0c8ac704de185ce
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Nov 3 14:16:38 2019 +0100

    - don't treat warning as errors, this code is not up to gcc 9 standards
    - rel 3

 no-Werror.patch | 11 +++++++++++
 setools.spec    |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/setools.spec b/setools.spec
index 369cbc8..78e0414 100644
--- a/setools.spec
+++ b/setools.spec
@@ -2,11 +2,12 @@ Summary:	Policy analysis tools for SELinux
 Summary(pl.UTF-8):	Narzędzia do analizy polityk SELinuksa
 Name:		setools
 Version:	4.2.2
-Release:	2
+Release:	3
 License:	GPL v2+ (tools), LGPL v2.1+ (libraries)
 Group:		Applications/System
 Source0:	https://github.com/SELinuxProject/setools/releases/download/%{version}/%{name}-%{version}.tar.bz2
 # Source0-md5:	f78fb10ec1fe189dfd27204549854cfa
+Patch0:		no-Werror.patch
 URL:		https://github.com/TresysTechnology/setools4/wiki
 BuildRequires:	bison
 BuildRequires:	flex
@@ -141,6 +142,7 @@ Moduły graficznego interfejsu użytkownika SETools dla Pythona 3.
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1
 
 %build
 export SEPOL=%{_libdir}/libsepol.a
diff --git a/no-Werror.patch b/no-Werror.patch
new file mode 100644
index 0000000..6cbb64f
--- /dev/null
+++ b/no-Werror.patch
@@ -0,0 +1,11 @@
+--- setools/setup.py~	2019-06-15 21:32:13.000000000 +0200
++++ setools/setup.py	2019-11-03 14:14:26.909825841 +0100
+@@ -105,7 +105,7 @@
+                          libraries=['selinux', 'sepol'],
+                          library_dirs=lib_dirs,
+                          define_macros=macros,
+-                         extra_compile_args=['-Werror', '-Wextra',
++                         extra_compile_args=['-Wextra',
+                                              '-Waggregate-return',
+                                              '-Wfloat-equal',
+                                              '-Wformat', '-Wformat=2',
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/setools.git/commitdiff/e904bba12588160c5c34a9bce0c8ac704de185ce



More information about the pld-cvs-commit mailing list