Skip to contentSkip to conversation

meta-networking: fix recipes build with external tool-set

PATCH In review Sumit Garg 2 participants 5 messages Jan 17, 2020 – Jan 20, 2020

lore
Share & tools
lore

Sumit Garg

author
#0 lore raw

PATCH 1/1 meta-networking: fix recipes build with external tool-set

- drbd-utils: fix native tool dependency which was implicitly met while building with source GCC tool-set.
- unbound: Use HOST_SYS variable instead of TARGET_PREFIX for libtool 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/drbd/drbd-utils_9.11.0.bb | 2 ++
 meta-networking/recipes-support/unbound/unbound_1.9.4.bb  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
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 = " \
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
#1 lore raw
Quoted 7 lines · Sumit Garg

- drbd-utils: fix native tool dependency which was implicitly met while building with source GCC tool-set.
- unbound: Use HOST_SYS variable instead of TARGET_PREFIX for libtool 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.

Please divide this into two patches since they seem to solve different problems. Also remove meta-networking from commit summary line and replace it with recipe name.

Quoted 33 lines
---
  meta-networking/recipes-support/drbd/drbd-utils_9.11.0.bb | 2 ++
  meta-networking/recipes-support/unbound/unbound_1.9.4.bb  | 2 +-
  2 files changed, 3 insertions(+), 1 deletion(-)
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 = " \
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 \
  "
 
 
author
#2 lore raw
Quoted 11 lines · Khem Raj
Quoted 7 lines · Sumit Garg

- drbd-utils: fix native tool dependency which was implicitly met while building with source GCC tool-set.
- unbound: Use HOST_SYS variable instead of TARGET_PREFIX for libtool 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.

Quoted 3 lines

Please divide this into two patches since they seem to solve different problems. Also remove meta-networking from commit summary line and replace it with recipe name.

Ack.

-Sumit

Quoted 35 lines
Quoted 34 lines
---
  meta-networking/recipes-support/drbd/drbd-utils_9.11.0.bb | 2 ++
  meta-networking/recipes-support/unbound/unbound_1.9.4.bb  | 2 +-
  2 files changed, 3 insertions(+), 1 deletion(-)
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 = " \
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 \
  "
 
 
#3 lore raw
In reply to Sumit Garg
Quoted 31 lines · Sumit Garg

- drbd-utils: fix native tool dependency which was implicitly met while building with source GCC tool-set.
- unbound: Use HOST_SYS variable instead of TARGET_PREFIX for libtool 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/drbd/drbd-utils_9.11.0.bb | 2 ++
  meta-networking/recipes-support/unbound/unbound_1.9.4.bb  | 2 +-
  2 files changed, 3 insertions(+), 1 deletion(-)
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 = " \
meta-networking/recipes-support/unbound/unbound_1.9.4.bb +0 -0
index 03eb2fa..6200214 100644

meta-networking/recipes-support/unbound/unbound_1.9.4.bb S = "${WORKDIR}/git" · line 28

Quoted 7 lines
meta-networking/recipes-support/unbound/unbound_1.9.4.bb +1 -1
@@ -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 \
  "
 

there is a build error happening in unbound see [1], this is using musl/aarch64

[1] https://errors.yoctoproject.org/Errors/Details/306768/

author
#4 lore raw
Quoted 44 lines · Khem Raj
Quoted 31 lines · Sumit Garg

- drbd-utils: fix native tool dependency which was implicitly met while building with source GCC tool-set.
- unbound: Use HOST_SYS variable instead of TARGET_PREFIX for libtool 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/drbd/drbd-utils_9.11.0.bb | 2 ++
  meta-networking/recipes-support/unbound/unbound_1.9.4.bb  | 2 +-
  2 files changed, 3 insertions(+), 1 deletion(-)
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 = " \
meta-networking/recipes-support/unbound/unbound_1.9.4.bb +0 -0
index 03eb2fa..6200214 100644

meta-networking/recipes-support/unbound/unbound_1.9.4.bb S = "${WORKDIR}/git" · line 28

Quoted 7 lines
meta-networking/recipes-support/unbound/unbound_1.9.4.bb +1 -1
@@ -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 \
  "
 

there is a build error happening in unbound see [1], this is using musl/aarch64

Quoted 2 lines

[1] https://errors.yoctoproject.org/Errors/Details/306768/

It doesn't seem to be related to this patch as "TARGET_PREFIX" and "HOST_SYS" for musl/aarch64 seems to point to the same libtool:
"aarch64-yoe-linux-musl-libtool". Could you reproduce this error without this patch?

-Sumit