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