Skip to contentSkip to conversation

oath: inherit pkgconfig

PATCH In review Martin Jansa 2 participants 3 messages Sep 30, 2021 – Oct 1, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oath: inherit pkgconfig

* Newer oe-core doesn't pull many default dependencies anymore:
https://lists.openembedded.org/g/openembedded-core/message/156185
add explicit dependency on pkgconfig through pkgconfig.bbclass as we're using it here.

* fixes:
../../oath-toolkit-2.6.2/liboath/configure: line 30585: PKG_PROG_PKG_CONFIG: command not found
checking for gtk-doc... ../../oath-toolkit-2.6.2/liboath/configure: line 30595: syntax error near unexpected token $gtk_doc_requires,have_gtk_doc=yes,have_gtk_doc=no' ../../oath-toolkit-2.6.2/liboath/configure: line 30595: PKG_CHECK_EXISTS($gtk_doc_requires,have_gtk_doc=yes,have_gtk_doc=no)'
configure: error: ../../oath-toolkit-2.6.2/liboath/configure failed for liboath

---
 recipes-extended/oath/oath_2.6.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-extended/oath/oath_2.6.2.bb +1 -1
index f423044..d568ec0 100644
@@ -12,7 +12,7 @@ S = "${WORKDIR}/${BPN}-toolkit-${PV}"
 SRC_URI[md5sum] = "4a05cd4768764843bd5493609a6bdb17"
 SRC_URI[sha256sum] = "b03446fa4b549af5ebe4d35d7aba51163442d255660558cd861ebce536824aa0"
 
-inherit autotools
+inherit autotools pkgconfig
 
 # Specify any options you want to pass to the configure script using EXTRA_OECONF:
 EXTRA_OECONF = ""
Signature · 1 line
2.32.0
#1 lore raw

I've been watching for these as well, but haven't gotten to doing my 'all' builds to trigger them.

Out of curiosity, what level of coverage do you end up with on the meta-virt layers ? I'm just trying to scope out how many more of these may be lurking :D

I've grabbed this, and will push it shortly.

Bruce

In message: [meta-virtualization][PATCH] oath: inherit pkgconfig

Quoted 36 lines · on 30/09/2021 Martin Jansa wrote:

* Newer oe-core doesn't pull many default dependencies anymore:
https://lists.openembedded.org/g/openembedded-core/message/156185
add explicit dependency on pkgconfig through pkgconfig.bbclass as we're using it here.

* fixes:
../../oath-toolkit-2.6.2/liboath/configure: line 30585: PKG_PROG_PKG_CONFIG: command not found
checking for gtk-doc... ../../oath-toolkit-2.6.2/liboath/configure: line 30595: syntax error near unexpected token $gtk_doc_requires,have_gtk_doc=yes,have_gtk_doc=no' ../../oath-toolkit-2.6.2/liboath/configure: line 30595: PKG_CHECK_EXISTS($gtk_doc_requires,have_gtk_doc=yes,have_gtk_doc=no)'
configure: error: ../../oath-toolkit-2.6.2/liboath/configure failed for liboath

---
 recipes-extended/oath/oath_2.6.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-extended/oath/oath_2.6.2.bb +1 -1
index f423044..d568ec0 100644
@@ -12,7 +12,7 @@ S = "${WORKDIR}/${BPN}-toolkit-${PV}"
 SRC_URI[md5sum] = "4a05cd4768764843bd5493609a6bdb17"
 SRC_URI[sha256sum] = "b03446fa4b549af5ebe4d35d7aba51163442d255660558cd861ebce536824aa0"
 
-inherit autotools
+inherit autotools pkgconfig
 
 # Specify any options you want to pass to the configure script using EXTRA_OECONF:
 EXTRA_OECONF = ""
Signature · 1 line
2.32.0
#2 lore raw

I did "bitbake world" build with webOS OSE
https://github.com/shr-project/build-webos/tree/honister with it's default DISTRO_FEATUREs and PNBLACKLIST, so not all of meta-virtualization was built, but most of it and this was the only failed task from there (surprisingly).

But be aware that yesterday I also notice once strange issue, that a recipe "collada-dom" started to shows textrel QA issue and it was actually caused by pkgconfig not being available where do_configure "silently" failed to find system bzip2 and minizip due to missing pkgconfig and built own version instead which lead to this textrel QA issue.

There might be many more recipes like this, which build something differently without pkgconfig evailable, without triggering any QA check like in this case. It might be useful to compare at least buildhistory results with and without the layer.conf change to see what else was changed unexpectedly.

+ RP and Khem (maybe I should report this on the layer.conf change review instead..)

Quoted 60 lines · Bruce Ashfield

I've been watching for these as well, but haven't gotten to doing my 'all' builds to trigger them.

Out of curiosity, what level of coverage do you end up with on the meta-virt layers ? I'm just trying to scope out how many more of these may be lurking :D

I've grabbed this, and will push it shortly.

Bruce

In message: [meta-virtualization][PATCH] oath: inherit pkgconfig

Quoted 7 lines · on 30/09/2021 Martin Jansa wrote:

* Newer oe-core doesn't pull many default dependencies anymore:
https://lists.openembedded.org/g/openembedded-core/message/156185
add explicit dependency on pkgconfig through pkgconfig.bbclass as we're using it here.

* fixes:
../../oath-toolkit-2.6.2/liboath/configure: line 30585:

PKG_PROG_PKG_CONFIG: command not found

Quoted 1 line

checking for gtk-doc... ../../oath-toolkit-2.6.2/liboath/configure:

line 30595: syntax error near unexpected token `$gtk_doc_requires,have_gtk_doc=yes,have_gtk_doc=no'

Quoted 1 line

../../oath-toolkit-2.6.2/liboath/configure: line 30595: `

PKG_CHECK_EXISTS($gtk_doc_requires,have_gtk_doc=yes,have_gtk_doc=no)'

Quoted 1 line

configure: error: ../../oath-toolkit-2.6.2/liboath/configure failed

for liboath

Review

Quoted 7 lines
---
 recipes-extended/oath/oath_2.6.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/recipes-extended/oath/oath_2.6.2.bb

recipes-extended/oath/oath_2.6.2.bb S = "${WORKDIR}/${BPN}-toolkit-${PV}" · line 13

Quoted 6 lines

index f423044..d568ec0 100644

recipes-extended/oath/oath_2.6.2.bb +0 -0
@@ -12,7 +12,7 @@ S = "${WORKDIR}/${BPN}-toolkit-${PV}"
 SRC_URI[md5sum] = "4a05cd4768764843bd5493609a6bdb17"
 SRC_URI[sha256sum] =

"b03446fa4b549af5ebe4d35d7aba51163442d255660558cd861ebce536824aa0"

recipes-extended/oath/oath_2.6.2.bb S = "${WORKDIR}/${BPN}-toolkit-${PV}"

Quoted 5 lines
recipes-extended/oath/oath_2.6.2.bb +1 -1
-inherit autotools
+inherit autotools pkgconfig
 
 # Specify any options you want to pass to the configure script using

EXTRA_OECONF:

Quoted 8 lines
recipes-extended/oath/oath_2.6.2.bb +0 -1
 EXTRA_OECONF = ""
--

2.32.0