Skip to contentSkip to conversation

Build dependency fixes

PATCH In review Markus Lehtonen 2 participants 5 messages Jan 31, 2017

lore
Share & tools
lore
#0 lore raw

cover Build dependency fixes

Bunch of one-liners fixing build dependency issues uncovered after recipe specific sysroots were enabled. I bumped into these when trying to build core-image-sato in a rather minimal host environment.

Markus Lehtonen (3):
rpm: inherit pkgconfig
wpa-supplicant: inherit pkgconfig
at-spi2-atk: depend on glib-2.0-native

 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb | 2 +-
 meta/recipes-devtools/rpm/rpm_5.4.16.bb                        | 2 +-
 meta/recipes-support/atk/at-spi2-atk_2.22.0.bb                 | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.10.2
#1 lore raw

PATCH 1/3 rpm: inherit pkgconfig

Rpm needs pkg-config in order to build successfully. Recipe specific sysroots revealed this missing dependency when trying to build on a host without pkg-config.

---
 meta/recipes-devtools/rpm/rpm_5.4.16.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/rpm/rpm_5.4.16.bb +1 -1
index 3df4d1f..2d27588 100644
@@ -168,7 +168,7 @@ SRC_URI_append_libc-musl = "\
 
 UPSTREAM_CHECK_REGEX = "rpm-(?P<pver>(\d+[\.\-_]*)+)-.*$"
 
-inherit autotools gettext python-dir
+inherit autotools gettext pkgconfig python-dir
 
 acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java"
 
Signature · 1 line
2.10.2
#2 lore raw

PATCH 2/3 wpa-supplicant: inherit pkgconfig

In reply to Markus Lehtonen

Missing dependency uncovered after recipe specific sysroots were enabled.

---
 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb +1 -1
index b96f9d2..146bccf 100644
@@ -13,7 +13,7 @@ PACKAGECONFIG ??= "gnutls"
 PACKAGECONFIG[gnutls] = ",,gnutls libgcrypt"
 PACKAGECONFIG[openssl] = ",,openssl"
 
-inherit systemd
+inherit pkgconfig systemd
 
 SYSTEMD_SERVICE_${PN} = "wpa_supplicant.service [email protected] [email protected]"
 SYSTEMD_AUTO_ENABLE = "disable"
Signature · 1 line
2.10.2
#3 lore raw

Re: [PATCH 2/3] wpa-supplicant: inherit pkgconfig

Quoted 13 lines · Markus Lehtonen

Missing dependency uncovered after recipe specific sysroots were enabled.

---
 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb +0 -0
index b96f9d2..146bccf 100644

meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb PACKAGECONFIG ??= "gnutls" · line 16

Quoted 5 lines
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb +1 -1
@@ -13,7 +13,7 @@ PACKAGECONFIG ??= "gnutls"
 PACKAGECONFIG[gnutls] = ",,gnutls libgcrypt"
 PACKAGECONFIG[openssl] = ",,openssl"
 
-inherit systemd
+inherit pkgconfig systemd

thanks, i just hit the same issue, and your patch fixes it.

Tested-by Nicolas Dechesne <[email protected]>

#4 lore raw

PATCH 3/3 at-spi2-atk: depend on glib-2.0-native

In reply to Markus Lehtonen

Missing dependency revealed by recipe specific sysroots. If the host system does not have glib-compile-schemas installed have (via libglib2.0-dev, glib2, glib2-tools or similar) do_configure would fail with:
configure: error: glib-compile-schemas not found.

---
 meta/recipes-support/atk/at-spi2-atk_2.22.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/atk/at-spi2-atk_2.22.0.bb +1 -1
index 80ba642..58edb6e 100644
@@ -8,7 +8,7 @@ SRC_URI = "${GNOME_MIRROR}/${BPN}/${MAJ_VER}/${BPN}-${PV}.tar.xz"
 SRC_URI[md5sum] = "aa62aed21b8e03dc44ab81ae49d893ca"
 SRC_URI[sha256sum] = "e8bdedbeb873eb229eb08c88e11d07713ec25ae175251648ad1a9da6c21113c1"
 
-DEPENDS = "dbus glib-2.0 atk at-spi2-core"
+DEPENDS = "dbus glib-2.0 glib-2.0-native atk at-spi2-core"
 
 inherit autotools pkgconfig distro_features_check upstream-version-is-even
 
Signature · 1 line
2.10.2