[oe-commits] [meta-openembedded] 01/02: iscsi-initiator-utils: Inherit pkgconfig and override PKG_CONFIG

git at git.openembedded.org git at git.openembedded.org
Tue Sep 3 23:02:17 UTC 2019


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit a0cc2d6353672a00e716e7246c4e9ece1e7fedc0
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Tue Sep 3 10:37:13 2019 -0700

    iscsi-initiator-utils: Inherit pkgconfig and override PKG_CONFIG
    
    PKG_CONFIG is hardcoded to /usr/bin/pkg-config which is not cross
    compile safe and ends up with build errors especially on hosts where
    pkgconf is used it ends up with errors like
    
    /usr/bin/pkg-config: line 11: exec: pkgconf: not found
    /usr/bin/pkg-config: line 11: exec: pkgconf: not found
    
    Override it to use own native pkg-config which can deal with sysroot
    correctly
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 .../iscsi-initiator-utils/iscsi-initiator-utils_2.0.877.bb             | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0.877.bb b/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0.877.bb
index 1ba6ef0..3cef70f 100644
--- a/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0.877.bb
+++ b/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0.877.bb
@@ -29,7 +29,7 @@ B = "${WORKDIR}/build"
 
 PV .= "+git${SRCPV}"
 
-inherit update-rc.d systemd autotools
+inherit update-rc.d systemd autotools pkgconfig
 
 EXTRA_OECONF = " \
     --target=${TARGET_SYS} \
@@ -42,6 +42,7 @@ EXTRA_OEMAKE = ' \
     BASE="${prefix}" \
     MANDIR="${mandir}" \
     OPTFLAGS="-DNO_SYSTEMD ${CFLAGS}" \
+    PKG_CONFIG="${STAGING_BINDIR_NATIVE}/pkg-config" \
     NO_SYSTEMD=1 \
 '
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list