Skip to contentSkip to conversation

Fix some native tools dependencies

PATCH New Sumit Garg 1 participant 5 messages Jan 21, 2020

lore
Share & tools
lore

Sumit Garg

author
#0 lore raw

v2 cover Fix some native tools dependencies

Some native tools dependency issues were seen while building with external GCC tool-set rather than source GCC tool-set. While building with source tool-set these dependencies were implicitly met which is not the case with external tool-set. So explicitly state these native tools dependencies.

Use HOST_SYS instead of TARGET_PREFIX for libtool in unbound recipe as TARGET_PREFIX may vary from source GCC tool-set to external GCC tool-set.

Changes in v2:
- Split into recipe specific patches.
- Add native tools dependency fixes for dovecot and ndisc6 recipes.

Sumit Garg (4):
drbd-utils: fix flex-native tool dependency
unbound: Use HOST_SYS instead of TARGET_PREFIX for libtool
dovecot: fix gettext tool dependency
ndisc6: fix coreutils-native tool dependency

 meta-networking/recipes-support/dovecot/dovecot_2.2.36.4.bb | 2 +-
 meta-networking/recipes-support/drbd/drbd-utils_9.11.0.bb   | 2 ++
 meta-networking/recipes-support/ndisc6/ndisc6_git.bb        | 2 ++
 meta-networking/recipes-support/unbound/unbound_1.9.4.bb    | 2 +-
 4 files changed, 6 insertions(+), 2 deletions(-)
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH v2 1/4 drbd-utils: fix flex-native tool dependency

flex-native tool dependency was implicitly met while building with source GCC tool-set which isn't the case with external tool-set.

---
 meta-networking/recipes-support/drbd/drbd-utils_9.11.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-support/drbd/drbd-utils_9.11.0.bb +2 -0
index 286b0f6..01bb16a 100644
@@ -23,6 +23,8 @@ UPSTREAM_CHECK_URI = "https://github.com/LINBIT/drbd-utils/releases"
 SYSTEMD_SERVICE_${PN} = "drbd.service"
 SYSTEMD_AUTO_ENABLE = "disable"
 
+DEPENDS = "flex-native"
+
 inherit autotools-brokensep systemd
 
 EXTRA_OECONF = " \
Signature · 1 line
2.7.4
author
#2 lore raw

PATCH v2 2/4 unbound: Use HOST_SYS instead of TARGET_PREFIX for libtool

In reply to Sumit Garg

As TARGET_PREFIX may vary from source GCC tool-set to external GCC tool-set. Also, libtool-cross is installed in recipe sysroot using HOST_SYS variable only.

---
 meta-networking/recipes-support/unbound/unbound_1.9.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/unbound/unbound_1.9.4.bb +1 -1
index 03eb2fa..6200214 100644
@@ -23,7 +23,7 @@ S = "${WORKDIR}/git"
 
 EXTRA_OECONF = "--with-libexpat=${STAGING_EXECPREFIXDIR} \
 		--with-ssl=${STAGING_EXECPREFIXDIR} \
-		libtool=${TARGET_PREFIX}libtool \
+		libtool=${HOST_SYS}-libtool \
 "
 		
 
Signature · 1 line
2.7.4
author
#3 lore raw

PATCH v2 3/4 dovecot: fix gettext tool dependency

In reply to Sumit Garg

gettext tool dependency was implicitly met while building with source GCC tool-set which isn't the case with external tool-set.

---
 meta-networking/recipes-support/dovecot/dovecot_2.2.36.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/dovecot/dovecot_2.2.36.4.bb +1 -1
index 239a252..0f7fad2 100644
@@ -19,7 +19,7 @@ DEPENDS = "openssl xz zlib bzip2 libcap icu libtirpc"
 CFLAGS += "-I${STAGING_INCDIR}/tirpc"
 LDFLAGS += "-ltirpc"
 
-inherit autotools pkgconfig systemd useradd
+inherit autotools pkgconfig systemd useradd gettext
 
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ldap pam', d)}"
 
Signature · 1 line
2.7.4
author
#4 lore raw

PATCH v2 4/4 ndisc6: fix coreutils-native tool dependency

In reply to Sumit Garg

coreutils-native tool dependency was implicitly met while building with source GCC tool-set which isn't the case with external tool-set.

---
 meta-networking/recipes-support/ndisc6/ndisc6_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-support/ndisc6/ndisc6_git.bb +2 -0
index ec48797..5f86605 100644
@@ -15,6 +15,8 @@ SRC_URI = "git://git.remlab.net/git/ndisc6.git;protocol=http \
 
 S = "${WORKDIR}/git"
 
+DEPENDS = "coreutils-native"
+
 inherit autotools gettext
 
 EXTRA_OECONF += "PERL=${USRBINPATH}/perl"
Signature · 1 line
2.7.4