Skip to contentSkip to conversation

bind: remove dependency on bind in bind-dev

PATCH In review Ross Burton 3 participants 3 messages Aug 27, 2015 – Aug 28, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bind: remove dependency on bind in bind-dev

bind doesn't ship shared libraries only static libraries, so the default dependency on PN from PN-dev is pointless and means that an image with bind-dev installed (via dhcp-dev's automatic dependency) ends up with named installed and started on boot which is rarely intended.

If and when we ship bind's shared libraries we should ensure that the libraries go into a separate package.

Also remove an old comment about --enable-exportlib.

---
 meta/recipes-connectivity/bind/bind_9.10.2-P3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/bind/bind_9.10.2-P3.bb +1 -1
index 52244b0..151eec0 100644
@@ -24,7 +24,6 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.gz \
 SRC_URI[md5sum] = "a810d5d65fbdcf28dcda80d646913c3a"
 SRC_URI[sha256sum] = "78079a66dda455ffecfe93ef72d1ffc947f17b1c453d55ec06b860b49a5e1d4a"
 
-# --enable-exportlib is necessary for building dhcp
 ENABLE_IPV6 = "--enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)}"
 EXTRA_OECONF = " ${ENABLE_IPV6} --with-randomdev=/dev/random --disable-threads \
                  --disable-devpoll --disable-epoll --with-gost=no \
@@ -49,6 +48,7 @@ SYSTEMD_SERVICE_${PN} = "named.service"
 PARALLEL_MAKE = ""
 
 RDEPENDS_${PN} = "python-core"
+RDEPENDS_${PN}-dev = ""
 
 PACKAGE_BEFORE_PN += "${PN}-utils"
 FILES_${PN}-utils = "${bindir}/host ${bindir}/dig"
Signature · 1 line
2.1.4
#1 lore raw
Quoted 4 lines · Ross Burton

bind doesn't ship shared libraries only static libraries, so the default dependency on PN from PN-dev is pointless and means that an image with bind-dev installed (via dhcp-dev's automatic dependency) ends up with named installed and started on boot which is rarely intended.

I see similar issues in meta-oe I wish this could be abstracted out to a general solution would be awesome
detecting if there are no .so in PN detach PN-dev from it.

#2 lore raw
Quoted 9 lines · On Thursday 27 August 2015 09:19:09 Khem Raj wrote:
Quoted 4 lines · Ross Burton

bind doesn't ship shared libraries only static libraries, so the default dependency on PN from PN-dev is pointless and means that an image with bind-dev installed (via dhcp-dev's automatic dependency) ends up with named installed and started on boot which is rarely intended.

I see similar issues in meta-oe I wish this could be abstracted out to a general solution would be awesome
detecting if there are no .so in PN detach PN-dev from it.

Agreed - I've filed an enhancement:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=8222

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre