Skip to contentSkip to conversation

libsemanage: fix libsepol.pc failed sanity test

PATCH New Robert Yang 1 participant 1 message Feb 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsemanage: fix libsepol.pc failed sanity test

ERROR: libsemanage-2.4-r0 do_populate_sysroot: QA Issue: libselinux.pc failed sanity test (tmpdir) in path /path/to/sysroot-destdir//usr/lib/pkgconfig [pkgconfig]

---
 ...-Makefile-fix-includedir-in-libselinux.pc.patch |   28 ++++++++++++++++++++
 recipes-security/selinux/libsemanage_2.4.bb        |    1 +
 recipes-security/selinux/libsemanage_git.bb        |    1 +
 3 files changed, 30 insertions(+)
 create mode 100644 recipes-security/selinux/libsemanage/0001-src-Makefile-fix-includedir-in-libselinux.pc.patch
recipes-security/selinux/libsemanage/0001-src-Makefile-fix-includedir-in-libselinux.pc.patch new file +28 -0
new file mode 100644
index 0000000..72b97df
@@ -0,0 +1,28 @@
+From 63d2c02a4dfa5ccd5d62a9f80b6a50cbb9946fbb Mon Sep 17 00:00:00 2001
+From: Robert Yang <[email protected]>
+Date: Thu, 18 Feb 2016 02:39:16 +0000
+Subject: [PATCH] src/Makefile: fix includedir in libselinux.pc
+
+Upstream-Status: Pending
+
+Signed-off-by: Robert Yang <[email protected]>
+---
+ src/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 1920029..06d291d 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -115,7 +115,7 @@ $(LIBSO): $(LOBJS)
+ 	ln -sf $@ $(TARGET) 
+ 
+ $(LIBPC): $(LIBPC).in ../VERSION
+-	sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@
++	sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:${prefix}/include:' < $< > $@
+ 
+ selinuxswig_python_exception.i: ../include/selinux/selinux.h
+ 	bash exception.sh > $@ 
+-- 
+2.5.0
+
recipes-security/selinux/libsemanage_2.4.bb +1 -0
index 2e0dfd5..4306675 100644
@@ -14,5 +14,6 @@ SRC_URI += "\
 	file://libsemanage-define-FD_CLOEXEC-as-necessary.patch;striplevel=2 \
 	file://libsemanage-allow-to-disable-audit-support.patch \
 	file://libsemanage-disable-expand-check-on-policy-load.patch \
+	file://0001-src-Makefile-fix-includedir-in-libselinux.pc.patch \
 	"
 FILES_${PN} += "/usr/libexec"
recipes-security/selinux/libsemanage_git.bb +1 -0
index 9106904..eaef3ab 100644
@@ -13,4 +13,5 @@ SRC_URI += "\
 	file://libsemanage-drop-Wno-unused-but-set-variable.patch \
 	file://libsemanage-define-FD_CLOEXEC-as-necessary.patch;striplevel=2 \
 	file://libsemanage-allow-to-disable-audit-support.patch \
+	file://0001-src-Makefile-fix-includedir-in-libselinux.pc.patch \
 	"
Signature · 1 line
1.7.9.5