Skip to contentSkip to conversation

bind: Add DISTRO_FEATURES support for ipv6

PATCH In review Ryan D Phillips 4 participants 4 messages Jan 27, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bind: Add DISTRO_FEATURES support for ipv6

---
 recipes/bind/bind_9.3.1.bb    |    6 ++++--
 recipes/bind/bind_9.3.4-P1.bb |    6 ++++--
 recipes/bind/bind_9.3.5-P1.bb |    6 ++++--
 recipes/bind/bind_9.3.6.bb    |    7 +++++--
 4 files changed, 17 insertions(+), 8 deletions(-)
recipes/bind/bind_9.3.1.bb +4 -2
index 268253e..11d4c71 100644
@@ -1,7 +1,7 @@
 DEPENDS = "openssl"
 RPEDENDS = ""
 DESCRIPTION = "ISC Internet Domain Name Server"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "ftp://ftp.isc.org/isc/bind9/9.3.1/bind-9.3.1.tar.gz \
            file://lib_dns_Makefile.in.patch \
@@ -9,7 +9,9 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/9.3.1/bind-9.3.1.tar.gz \
 	   file://conf.patch \
 	   "
 
-EXTRA_OECONF = " --enable-ipv6=no --with-randomdev=/dev/random --disable-threads --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr"
+EXTRA_OECONF = "--with-randomdev=/dev/random --disable-threads \
+                --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr \
+                ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6=yes', '--enable-ipv6=no', d)}"
 inherit autotools update-rc.d
 
 INITSCRIPT_NAME = "bind"
recipes/bind/bind_9.3.4-P1.bb +4 -2
index 70c261e..f8ae48f 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "ISC Internet Domain Name Server"
 SECTION = "console/network"
 HOMEPAGE = "http://www.isc.org/sw/bind/"
 LICENSE = "BSD"
-PR = "r0"
+PR = "r1"
 
 DEPENDS = "openssl"
 
@@ -12,7 +12,9 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/9.3.4-P1/bind-9.3.4-P1.tar.gz \
 	   file://so_bsdcompat.patch \
 	   "
 
-EXTRA_OECONF = " --enable-ipv6=no --with-randomdev=/dev/random --disable-threads --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr"
+EXTRA_OECONF = "--with-randomdev=/dev/random --disable-threads \
+                --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr \
+                ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6=yes', '--enable-ipv6=no', d)}"
 inherit autotools update-rc.d
 
 INITSCRIPT_NAME = "bind"
recipes/bind/bind_9.3.5-P1.bb +4 -2
index bb98261..f573e57 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "ISC Internet Domain Name Server"
 SECTION = "console/network"
 HOMEPAGE = "http://www.isc.org/sw/bind/"
 LICENSE = "BSD"
-PR = "r0"
+PR = "r1"
 
 DEPENDS = "openssl"
 
@@ -12,7 +12,9 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/9.3.5-P1/bind-9.3.5-P1.tar.gz \
 	   file://so_bsdcompat.patch \
 	   "
 
-EXTRA_OECONF = " --enable-ipv6=no --with-randomdev=/dev/random --disable-threads --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr"
+EXTRA_OECONF = "--with-randomdev=/dev/random --disable-threads \
+                --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr \
+                ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6=yes', '--enable-ipv6=no', d)}"
 inherit autotools update-rc.d
 
 INITSCRIPT_NAME = "bind"
recipes/bind/bind_9.3.6.bb +5 -2
index b10d6e8..2ea37f9 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "ISC Internet Domain Name Server"
 SECTION = "console/network"
 HOMEPAGE = "http://www.isc.org/sw/bind/"
 LICENSE = "BSD"
-PR = "r1"
+PR = "r2"
 
 DEPENDS = "openssl"
 
@@ -11,7 +11,10 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/${PV}/${PN}-${PV}.tar.gz \
 	   file://configure.in.patch \
 	   "
 
-EXTRA_OECONF = " --enable-ipv6=no --with-randomdev=/dev/random --disable-threads --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr --disable-devpoll --disable-epoll"
+EXTRA_OECONF = "--with-randomdev=/dev/random --disable-threads \
+                --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr --disable-devpoll \
+                --disable-epoll \
+                ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6=yes', '--enable-ipv6=no', d)}"
 inherit autotools update-rc.d
 
 INITSCRIPT_NAME = "bind"
Signature · 1 line
1.7.2.3
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Ryan D Phillips
Quoted 104 lines
---
  recipes/bind/bind_9.3.1.bb    |    6 ++++--
  recipes/bind/bind_9.3.4-P1.bb |    6 ++++--
  recipes/bind/bind_9.3.5-P1.bb |    6 ++++--
  recipes/bind/bind_9.3.6.bb    |    7 +++++--
  4 files changed, 17 insertions(+), 8 deletions(-)
recipes/bind/bind_9.3.1.bb +4 -2
index 268253e..11d4c71 100644
@@ -1,7 +1,7 @@
  DEPENDS = "openssl"
  RPEDENDS = ""
  DESCRIPTION = "ISC Internet Domain Name Server"
-PR = "r1"
+PR = "r2"
 
  SRC_URI = "ftp://ftp.isc.org/isc/bind9/9.3.1/bind-9.3.1.tar.gz \
             file://lib_dns_Makefile.in.patch \
@@ -9,7 +9,9 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/9.3.1/bind-9.3.1.tar.gz \
  	   file://conf.patch \
  	   "
 
-EXTRA_OECONF = " --enable-ipv6=no --with-randomdev=/dev/random --disable-threads --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr"
+EXTRA_OECONF = "--with-randomdev=/dev/random --disable-threads \
+                --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr \
+                ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6=yes', '--enable-ipv6=no', d)}"
  inherit autotools update-rc.d
 
  INITSCRIPT_NAME = "bind"
recipes/bind/bind_9.3.4-P1.bb +4 -2
index 70c261e..f8ae48f 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "ISC Internet Domain Name Server"
  SECTION = "console/network"
  HOMEPAGE = "http://www.isc.org/sw/bind/"
  LICENSE = "BSD"
-PR = "r0"
+PR = "r1"
 
  DEPENDS = "openssl"
 
@@ -12,7 +12,9 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/9.3.4-P1/bind-9.3.4-P1.tar.gz \
  	   file://so_bsdcompat.patch \
  	   "
 
-EXTRA_OECONF = " --enable-ipv6=no --with-randomdev=/dev/random --disable-threads --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr"
+EXTRA_OECONF = "--with-randomdev=/dev/random --disable-threads \
+                --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr \
+                ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6=yes', '--enable-ipv6=no', d)}"
  inherit autotools update-rc.d
 
  INITSCRIPT_NAME = "bind"
recipes/bind/bind_9.3.5-P1.bb +4 -2
index bb98261..f573e57 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "ISC Internet Domain Name Server"
  SECTION = "console/network"
  HOMEPAGE = "http://www.isc.org/sw/bind/"
  LICENSE = "BSD"
-PR = "r0"
+PR = "r1"
 
  DEPENDS = "openssl"
 
@@ -12,7 +12,9 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/9.3.5-P1/bind-9.3.5-P1.tar.gz \
  	   file://so_bsdcompat.patch \
  	   "
 
-EXTRA_OECONF = " --enable-ipv6=no --with-randomdev=/dev/random --disable-threads --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr"
+EXTRA_OECONF = "--with-randomdev=/dev/random --disable-threads \
+                --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr \
+                ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6=yes', '--enable-ipv6=no', d)}"
  inherit autotools update-rc.d
 
  INITSCRIPT_NAME = "bind"
recipes/bind/bind_9.3.6.bb +5 -2
index b10d6e8..2ea37f9 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "ISC Internet Domain Name Server"
  SECTION = "console/network"
  HOMEPAGE = "http://www.isc.org/sw/bind/"
  LICENSE = "BSD"
-PR = "r1"
+PR = "r2"
 
  DEPENDS = "openssl"
 
@@ -11,7 +11,10 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/${PV}/${PN}-${PV}.tar.gz \
  	   file://configure.in.patch \
  	   "
 
-EXTRA_OECONF = " --enable-ipv6=no --with-randomdev=/dev/random --disable-threads --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr --disable-devpoll --disable-epoll"
+EXTRA_OECONF = "--with-randomdev=/dev/random --disable-threads \
+                --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr --disable-devpoll \
+                --disable-epoll \
+                ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6=yes', '--enable-ipv6=no', d)}"
  inherit autotools update-rc.d
 
  INITSCRIPT_NAME = "bind"
Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#2 lore raw
Quoted 133 lines · Tom Rini
Quoted 2 lines · Ryan D Phillips
Quoted 120 lines

---
 recipes/bind/bind_9.3.1.bb    |    6 ++++--
 recipes/bind/bind_9.3.4-P1.bb |    6 ++++--
 recipes/bind/bind_9.3.5-P1.bb |    6 ++++--
 recipes/bind/bind_9.3.6.bb    |    7 +++++--

 4 files changed, 17 insertions(+), 8 deletions(-)
recipes/bind/bind_9.3.1.bb +0 -0
index 268253e..11d4c71 100644
@@ -1,7 +1,7 @@

 DEPENDS = "openssl"
 RPEDENDS = ""
 DESCRIPTION = "ISC Internet Domain Name Server"

recipes/bind/bind_9.3.1.bb +1 -1
-PR = "r1"
+PR = "r2"

 SRC_URI = "ftp://ftp.isc.org/isc/bind9/9.3.1/bind-9.3.1.tar.gz \
            file://lib_dns_Makefile.in.patch \

recipes/bind/bind_9.3.1.bb +0 -0
@@ -9,7 +9,9 @@ SRC_URI =
 "ftp://ftp.isc.org/isc/bind9/9.3.1/bind-9.3.1.tar.gz \
           file://conf.patch \

          "

recipes/bind/bind_9.3.1.bb +2 -2
-EXTRA_OECONF = " --enable-ipv6=no --with-randomdev=/dev/random
--disable-threads --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr"
+EXTRA_OECONF = "--with-randomdev=/dev/random --disable-threads \
+                --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr

\
+                ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6=yes', '--enable-ipv6=no', d)}" inherit autotools update-rc.d

 INITSCRIPT_NAME = "bind"

recipes/bind/bind_9.3.4-P1.bb +0 -0
index 70c261e..f8ae48f 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "ISC Internet Domain Name Server"

 SECTION = "console/network"
 HOMEPAGE = "http://www.isc.org/sw/bind/"
 LICENSE = "BSD"

recipes/bind/bind_9.3.4-P1.bb +1 -1
-PR = "r0"
+PR = "r1"

 DEPENDS = "openssl"

recipes/bind/bind_9.3.4-P1.bb +0 -0
@@ -12,7 +12,9 @@ SRC_URI =
 "ftp://ftp.isc.org/isc/bind9/9.3.4-P1/bind-9.3.4-P1.tar.gz \
           file://so_bsdcompat.patch \

          "

recipes/bind/bind_9.3.4-P1.bb +2 -2
-EXTRA_OECONF = " --enable-ipv6=no --with-randomdev=/dev/random
--disable-threads --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr"
+EXTRA_OECONF = "--with-randomdev=/dev/random --disable-threads \
+                --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr

\
+                ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6=yes', '--enable-ipv6=no', d)}" inherit autotools update-rc.d

 INITSCRIPT_NAME = "bind"

recipes/bind/bind_9.3.5-P1.bb +0 -0
index bb98261..f573e57 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "ISC Internet Domain Name Server"

 SECTION = "console/network"
 HOMEPAGE = "http://www.isc.org/sw/bind/"
 LICENSE = "BSD"

recipes/bind/bind_9.3.5-P1.bb +1 -1
-PR = "r0"
+PR = "r1"

 DEPENDS = "openssl"

recipes/bind/bind_9.3.5-P1.bb +0 -0
@@ -12,7 +12,9 @@ SRC_URI =
 "ftp://ftp.isc.org/isc/bind9/9.3.5-P1/bind-9.3.5-P1.tar.gz \
           file://so_bsdcompat.patch \

          "

recipes/bind/bind_9.3.5-P1.bb +2 -2
-EXTRA_OECONF = " --enable-ipv6=no --with-randomdev=/dev/random
--disable-threads --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr"
+EXTRA_OECONF = "--with-randomdev=/dev/random --disable-threads \
+                --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr

\
+                ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6=yes', '--enable-ipv6=no', d)}" inherit autotools update-rc.d

 INITSCRIPT_NAME = "bind"

recipes/bind/bind_9.3.6.bb +0 -0
index b10d6e8..2ea37f9 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "ISC Internet Domain Name Server"

 SECTION = "console/network"
 HOMEPAGE = "http://www.isc.org/sw/bind/"
 LICENSE = "BSD"

recipes/bind/bind_9.3.6.bb +1 -1
-PR = "r1"
+PR = "r2"

 DEPENDS = "openssl"

recipes/bind/bind_9.3.6.bb +0 -0
@@ -11,7 +11,10 @@ SRC_URI =
 "ftp://ftp.isc.org/isc/bind9/${PV}/${PN}-${PV}.tar.gz \
           file://configure.in.patch \

          "

recipes/bind/bind_9.3.6.bb +4 -4
-EXTRA_OECONF = " --enable-ipv6=no --with-randomdev=/dev/random
--disable-threads --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr
--disable-devpoll --disable-epoll"
+EXTRA_OECONF = "--with-randomdev=/dev/random --disable-threads \
+                --sysconfdir=/etc/bind --localstatedir=/var --prefix=/usr
--disable-devpoll \
+                --disable-epoll \
+                ${@base_contains('DISTRO_FEATURES', 'ipv6',

'--enable-ipv6=yes', '--enable-ipv6=no', d)}"
 inherit autotools update-rc.d

Quoted 1 line

 INITSCRIPT_NAME = "bind"

--
Tom Rini
Mentor Graphics Corporation

Quoted 5 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Commit here
commit a88aca1d7dfa3a08957dd49cb61bac850f197106

Author: Bernhard Reutner-Fischer <[email protected]>
Date:   Wed Jan 12 20:34:55 2011 +0100

autotools.bbclass: pass distro_imposed_configure_flags

should now automatically feed in --enale-ipv6 based on ipv6 being selected and I see bind is inheriting autotools so why is it not working for bind ?

-Khem

#3 lore raw
Quoted 5 lines · Khem Raj

Commit here
commit a88aca1d7dfa3a08957dd49cb61bac850f197106

Author: Bernhard Reutner-Fischer <[email protected]>
Date:   Wed Jan 12 20:34:55 2011 +0100
Quoted 7 lines

autotools.bbclass: pass distro_imposed_configure_flags

should now automatically feed in --enale-ipv6 based on ipv6 being selected and I see bind is inheriting autotools so why is it not working for bind ?

The bitbake recipe was specifically disabling ipv6 support with --enable-ipv6=no. I'm following the stable OE release from December... It does appear OE's dev branch can do exactly as you propose, Khem.

Regards,
Ryan