Blame SOURCES/0007-libselinux-Do-not-use-SWIG_CFLAGS-when-Python-bindin.patch

ccae17
From 6ec8116ee64a25a0c5eb543f0b12ed25f1348c45 Mon Sep 17 00:00:00 2001
ccae17
From: Petr Lautrbach <plautrba@redhat.com>
ccae17
Date: Thu, 27 Jun 2019 11:17:13 +0200
ccae17
Subject: [PATCH] libselinux: Do not use SWIG_CFLAGS when Python bindings are
ccae17
 built
ccae17
ccae17
Fixes:
ccae17
https://rpmdiff.engineering.redhat.com/run/410372/7/
ccae17
ccae17
Detecting usr/lib64/python3.6/site-packages/selinux/audit2why.cpython-36m-x86_64-linux-gnu.so with not-hardened warnings '
ccae17
Hardened: audit2why.cpython-36m-x86_64-linux-gnu.so: FAIL: Gaps were detected in the annobin coverage.  Run with -v to list.
ccae17
' on x86_64
ccae17
ccae17
Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
ccae17
---
ccae17
 libselinux/src/Makefile | 5 +----
ccae17
 1 file changed, 1 insertion(+), 4 deletions(-)
ccae17
ccae17
diff --git a/libselinux/src/Makefile b/libselinux/src/Makefile
ccae17
index 826c830c..f64f23a8 100644
ccae17
--- a/libselinux/src/Makefile
ccae17
+++ b/libselinux/src/Makefile
ccae17
@@ -104,9 +104,6 @@ FTS_LDLIBS ?=
ccae17
 
ccae17
 override CFLAGS += -I../include -D_GNU_SOURCE $(DISABLE_FLAGS) $(PCRE_CFLAGS)
ccae17
 
ccae17
-SWIG_CFLAGS += -Wno-error -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-parameter \
ccae17
-		-Wno-shadow -Wno-uninitialized -Wno-missing-prototypes -Wno-missing-declarations
ccae17
-
ccae17
 RANLIB ?= ranlib
ccae17
 
ccae17
 ARCH := $(patsubst i%86,i386,$(shell uname -m))
ccae17
@@ -130,7 +127,7 @@ SWIGRUBY = swig -Wall -ruby -o $(SWIGRUBYCOUT) -outdir ./ $(DISABLE_FLAGS)
ccae17
 all: $(LIBA) $(LIBSO) $(LIBPC)
ccae17
 
ccae17
 pywrap: all selinuxswig_python_exception.i
ccae17
-	CFLAGS="$(SWIG_CFLAGS)" $(PYTHON) setup.py build_ext -I $(DESTDIR)$(INCLUDEDIR) -L $(DESTDIR)$(LIBDIR)
ccae17
+	$(PYTHON) setup.py build_ext -I $(DESTDIR)$(INCLUDEDIR) -L $(DESTDIR)$(LIBDIR)
ccae17
 
ccae17
 rubywrap: all $(SWIGRUBYSO)
ccae17
 
ccae17
-- 
ccae17
2.21.0
ccae17