Skip to contentSkip to conversation

libnss-mdns: dont use hard coded /lib path

PATCH Superseded Kumar Gala 3 participants 3 messages Aug 3, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 libnss-mdns: dont use hard coded /lib path

As libdir might not be /lib (could be /lib64) use ${libdir} instead of hard coded "/lib" in configure options set in EXTRA_OECONF.

---
 .../libnss-mdns/libnss-mdns_0.10.bb                |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb +2 -2
index f5df005..00f2c56 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1"
 
 DEPENDS = "avahi"
 RDEPENDS_${PN} = "avahi-daemon"
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${PV}.tar.gz"
 
@@ -21,7 +21,7 @@ inherit autotools
 LEAD_SONAME = "libnss_mdns.so"
 DEBIANNAME_${PN} = "libnss-mdns"
 
-EXTRA_OECONF = "--libdir=/lib --disable-lynx --enable-avahi"
+EXTRA_OECONF = "--libdir=${libdir} --disable-lynx --enable-avahi"
 
 # TODO: pattern based configuration update
 pkg_postinst_${PN} () {
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 2 lines · Kumar Gala

As libdir might not be /lib (could be /lib64) use ${libdir} instead of hard coded "/lib" in configure options set in EXTRA_OECONF.

Do you mean ${libdir} or ${base_libdir} ?

Quoted 27 lines
---
 .../libnss-mdns/libnss-mdns_0.10.bb                |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb +2 -2
index f5df005..00f2c56 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1"
 
 DEPENDS = "avahi"
 RDEPENDS_${PN} = "avahi-daemon"
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${PV}.tar.gz"
 
@@ -21,7 +21,7 @@ inherit autotools
 LEAD_SONAME = "libnss_mdns.so"
 DEBIANNAME_${PN} = "libnss-mdns"
 
-EXTRA_OECONF = "--libdir=/lib --disable-lynx --enable-avahi"
+EXTRA_OECONF = "--libdir=${libdir} --disable-lynx --enable-avahi"
 
 # TODO: pattern based configuration update
 pkg_postinst_${PN} () {
#2 lore raw
In reply to Kumar Gala

meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb inherit autotools · line 24

Quoted 2 lines · Kumar Gala
meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb +1 -1
-EXTRA_OECONF = "--libdir=/lib --disable-lynx --enable-avahi"
+EXTRA_OECONF = "--libdir=${libdir} --disable-lynx --enable-avahi"

Really? ${libdir} is /usr/lib in most configurations. If you wanted this to be a no-op for most folks then ${base_libdir} is probably the variable you need.

p.