Skip to contentSkip to conversation

dhcp-relay: Use recent config.guess and config.sub for bind

PATCH In review Khem Raj 2 participants 2 messages May 27, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 dhcp-relay: Use recent config.guess and config.sub for bind

vendored version of bind is quite old which does not have all newer architecture info like riscv in gnu-config files captured in the bind tarball, therefore update these files before configuring bundled bind

Fixes build on rv32/rv64

---
 .../recipes-connectivity/dhcp/dhcp-relay_4.4.2.bb           | 6 ++++++
 1 file changed, 6 insertions(+)
meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.2.bb +6 -0
index bd816106c5..2af41b217a 100644
@@ -43,6 +43,12 @@ EXTRA_OECONF = "--enable-paranoia \
 do_configure_prepend () {
     cp configure.ac+lt configure.ac
 }
+do_compile_prepend() {
+    rm -rf ${S}/bind/bind-9.11.14/
+    tar xf ${S}/bind/bind.tar.gz -C ${S}/bind
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/bind/bind-9.11.14/
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/bind/bind-9.11.14/
+}
 
 do_install_append () {
     install -d ${D}${sysconfdir}/default
Signature · 1 line
2.31.1
#1 lore raw

Thanks. It LGTM.

//Yi

Quoted 29 lines · Khem Raj

vendored version of bind is quite old which does not have all newer architecture info like riscv in gnu-config files captured in the bind tarball, therefore update these files before configuring bundled bind

Fixes build on rv32/rv64

---
  .../recipes-connectivity/dhcp/dhcp-relay_4.4.2.bb           | 6 ++++++
  1 file changed, 6 insertions(+)
meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.2.bb +6 -0
index bd816106c5..2af41b217a 100644
@@ -43,6 +43,12 @@ EXTRA_OECONF = "--enable-paranoia \
  do_configure_prepend () {
      cp configure.ac+lt configure.ac
  }
+do_compile_prepend() {
+    rm -rf ${S}/bind/bind-9.11.14/
+    tar xf ${S}/bind/bind.tar.gz -C ${S}/bind
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/bind/bind-9.11.14/
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/bind/bind-9.11.14/
+}
 
  do_install_append () {
      install -d ${D}${sysconfdir}/default