ERROR: libselinux-2.4-r0 do_populate_sysroot: QA Issue: libselinux.pc failed sanity test (tmpdir) in path /path/to/sysroot-destdir//usr/lib/pkgconfig [pkgconfig]
Signed-off-by: Robert Yang <liezhi.y...@windriver.com> --- ...-Makefile-fix-includedir-in-libselinux.pc.patch | 28 ++++++++++++++++++++ recipes-security/selinux/libselinux_2.4.bb | 1 + recipes-security/selinux/libselinux_git.bb | 1 + 3 files changed, 30 insertions(+) create mode 100644 recipes-security/selinux/libselinux/0001-src-Makefile-fix-includedir-in-libselinux.pc.patch diff --git a/recipes-security/selinux/libselinux/0001-src-Makefile-fix-includedir-in-libselinux.pc.patch b/recipes-security/selinux/libselinux/0001-src-Makefile-fix-includedir-in-libselinux.pc.patch new file mode 100644 index 0000000..72b97df --- /dev/null +++ b/recipes-security/selinux/libselinux/0001-src-Makefile-fix-includedir-in-libselinux.pc.patch @@ -0,0 +1,28 @@ +From 63d2c02a4dfa5ccd5d62a9f80b6a50cbb9946fbb Mon Sep 17 00:00:00 2001 +From: Robert Yang <liezhi.y...@windriver.com> +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 <liezhi.y...@windriver.com> +--- + 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 + diff --git a/recipes-security/selinux/libselinux_2.4.bb b/recipes-security/selinux/libselinux_2.4.bb index e084df2..ac80bdd 100644 --- a/recipes-security/selinux/libselinux_2.4.bb +++ b/recipes-security/selinux/libselinux_2.4.bb @@ -12,4 +12,5 @@ SRC_URI += "\ file://libselinux-make-SOCK_CLOEXEC-optional.patch \ file://libselinux-define-FD_CLOEXEC-as-necessary.patch \ file://libselinux-get-pywrap-depends-on-selinux.py.patch \ + file://0001-src-Makefile-fix-includedir-in-libselinux.pc.patch \ " diff --git a/recipes-security/selinux/libselinux_git.bb b/recipes-security/selinux/libselinux_git.bb index 4efab86..1cd4dde 100644 --- a/recipes-security/selinux/libselinux_git.bb +++ b/recipes-security/selinux/libselinux_git.bb @@ -12,4 +12,5 @@ SRC_URI += "\ file://libselinux-make-SOCK_CLOEXEC-optional.patch \ file://libselinux-define-FD_CLOEXEC-as-necessary.patch \ file://libselinux-get-pywrap-depends-on-selinux.py.patch \ + file://0001-src-Makefile-fix-includedir-in-libselinux.pc.patch \ " -- 1.7.9.5 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto