Skip to contentSkip to conversation

qemu: Inherit pkgconfig

PATCH In review Khem Raj 2 participants 6 messages Feb 6, 2017 – Feb 7, 2017

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/5 qemu: Inherit pkgconfig

Fixes

| ERROR: pkg-config binary 'pkg-config' not found
|

---
 meta/recipes-devtools/qemu/qemu.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/qemu/qemu.inc +1 -1
index e3af5c21c0..ef5d75c450 100644
@@ -6,7 +6,7 @@ RDEPENDS_${PN}_class-target += "bash"
 RDEPENDS_${PN}-ptest = "bash make"
 
 require qemu-targets.inc
-inherit autotools ptest
+inherit autotools pkgconfig ptest
 BBCLASSEXTEND = "native nativesdk"
 
 # QEMU_TARGETS is overridable variable
Signature · 1 line
2.11.1
author
#1 lore raw

PATCH 2/5 latencytop: Inherit pkgconfig

When pkg-config is not installed on buildhost errors like below pop up

| /bin/sh: 1: pkg-config: not found
| latencytop.c:34:18: fatal error: glib.h: No such file or directory
|  #include <glib.h>
|                   ^
| compilation terminated.
| make: *** [latencytop.o] Error 1
---
 meta/recipes-kernel/latencytop/latencytop_0.5.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-kernel/latencytop/latencytop_0.5.bb +2 -1
index f31f1bb7ab..bad27b5d6a 100644
@@ -4,7 +4,8 @@ HOMEPAGE = "http://www.latencytop.org/"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://latencytop.c;endline=23;md5=ee9ea9b1415356e5734adad4a87dc7fa"
 
-DEPENDS = "virtual/libintl ncurses glib-2.0"
+inherit pkgconfig
+DEPENDS += "virtual/libintl ncurses glib-2.0"
 
 PR = "r3"
 
Signature · 1 line
2.11.1
author
#2 lore raw

PATCH 3/5 pcmciautils: Inherit pkgconfig

In reply to Khem Raj

Fixes
ERROR: pcmciautils-018-r1 do_package: QA Issue: pcmciautils: Files/directories were installed but not shipped in any package:
/pcmcia-socket-startup
/pcmcia-check-broken-cis
/rules.d
/rules.d/60-pcmcia.rules

Since we do not have pkg-config in native sysroot it is not computing paths correctly and causes above error

---
 meta/recipes-bsp/pcmciautils/pcmciautils.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-bsp/pcmciautils/pcmciautils.inc +2 -0
index 581bff417b..0524980509 100644
@@ -12,6 +12,8 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/pcmcia/${BP}.tar.xz"
 
 S = "${WORKDIR}/pcmciautils-${PV}"
 
+inherit pkgconfig
+
 export HOSTCC = "${BUILD_CC}"
 export etcdir = "${sysconfdir}"
 export sbindir = "${base_sbindir}"
Signature · 1 line
2.11.1
author
#3 lore raw

PATCH 4/5 iproute2: Inherit pkgconfig

In reply to Khem Raj

Fixes
ERROR: iproute2-4.9.0-r0 do_package: QA Issue: iproute2: Files/directories were installed but not shipped in any package:
/usr/lib
/usr/lib/tc

---
 meta/recipes-connectivity/iproute2/iproute2.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/iproute2/iproute2.inc +1 -1
index 63e7ca9e83..ce64888a05 100644
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
 
 DEPENDS = "flex-native bison-native iptables elfutils"
 
-inherit update-alternatives bash-completion
+inherit update-alternatives bash-completion pkgconfig
 
 EXTRA_OEMAKE = "CC='${CC}' KERNEL_INCLUDE=${STAGING_INCDIR} DOCDIR=${docdir}/iproute2 SUBDIRS='lib tc ip bridge misc genl' SBINDIR='${base_sbindir}' LIBDIR='${libdir}'"
 
Signature · 1 line
2.11.1
author
#4 lore raw

PATCH 5/5 pong-clock: Inherit pkgconfig

In reply to Khem Raj

Fixes

| /mnt/oe/openembedded-core/build/tmp-glibc/work/core2-64-oe-linux/pong-clock/1.0-r0/temp/run.do_compile.13350: 1: /mnt/oe/openembedded-core/build/tmp-glibc/work/core2-64-oe-linux/pong-clock/1.0-r0/temp/run.do_compile.13350: pkg-config: not found
| /tmp/ccanXWsA.o: In function `draw_rect':
| /usr/src/debug/pong-clock/1.0-r0/pong-clock-no-flicker.c:93: undefined reference to `XFillRectangle'
| /tmp/ccanXWsA.o: In function `draw_digit':
---
 meta/recipes-graphics/pong-clock/pong-clock_1.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/pong-clock/pong-clock_1.0.bb +1 -1
index 6c3bcd831c..cdfe38a221 100644
@@ -2,7 +2,7 @@ SUMMARY = "A clock combined with a game of pong"
 LICENSE = "GPLv2+"
 DEPENDS = "virtual/libx11 xdmcp xau"
 
-inherit distro_features_check
+inherit distro_features_check pkgconfig
 # depends on virtual/libx11
 REQUIRED_DISTRO_FEATURES = "x11"
 
Signature · 1 line
2.11.1
#5 lore raw
In reply to Khem Raj

For whoever merges: Patches 1, 2 and 5 of this patchset seem to be the same as my "Add some missing pkgconfig inherits" set, feel free to use these instead.

Jussi

Quoted 6 lines · Khem Raj

Fixes

| ERROR: pkg-config binary 'pkg-config' not found
|

Review

Quoted 6 lines
---
 meta/recipes-devtools/qemu/qemu.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/meta/recipes-devtools/qemu/qemu.inc

Quoted 20 lines

index e3af5c21c0..ef5d75c450 100644

meta/recipes-devtools/qemu/qemu.inc +1 -2
@@ -6,7 +6,7 @@ RDEPENDS_${PN}_class-target += "bash"
 RDEPENDS_${PN}-ptest = "bash make"
 
 require qemu-targets.inc
-inherit autotools ptest
+inherit autotools pkgconfig ptest
 BBCLASSEXTEND = "native nativesdk"
 
 # QEMU_TARGETS is overridable variable
--

2.11.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core