Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 817CBE00BF4; Wed, 17 Feb 2016 18:58:21 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4F65BE00B8B for ; Wed, 17 Feb 2016 18:58:15 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id u1I2wEPW016111 (version=TLSv1 cipher=AES128-SHA bits=128 verify=OK) for ; Wed, 17 Feb 2016 18:58:14 -0800 Received: from ala-blade47.wrs.com (147.11.105.67) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.248.2; Wed, 17 Feb 2016 18:58:14 -0800 From: Robert Yang To: Date: Wed, 17 Feb 2016 18:58:14 -0800 Message-ID: <1455764294-7032-1-git-send-email-liezhi.yang@windriver.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Subject: [meta-selinux] [PATCH] libsemanage: fix libsepol.pc failed sanity test X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 02:58:21 -0000 Content-Type: text/plain 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] Signed-off-by: Robert Yang --- ...-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 diff --git a/recipes-security/selinux/libsemanage/0001-src-Makefile-fix-includedir-in-libselinux.pc.patch b/recipes-security/selinux/libsemanage/0001-src-Makefile-fix-includedir-in-libselinux.pc.patch new file mode 100644 index 0000000..72b97df --- /dev/null +++ b/recipes-security/selinux/libsemanage/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 +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 +--- + 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/libsemanage_2.4.bb b/recipes-security/selinux/libsemanage_2.4.bb index 2e0dfd5..4306675 100644 --- a/recipes-security/selinux/libsemanage_2.4.bb +++ b/recipes-security/selinux/libsemanage_2.4.bb @@ -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" diff --git a/recipes-security/selinux/libsemanage_git.bb b/recipes-security/selinux/libsemanage_git.bb index 9106904..eaef3ab 100644 --- a/recipes-security/selinux/libsemanage_git.bb +++ b/recipes-security/selinux/libsemanage_git.bb @@ -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 \ " -- 1.7.9.5