]> code.ossystems Code Review - openembedded-core.git/commitdiff
wireless-tools: remove ldconfig call from install-libs
authorMartin Jansa <martin.jansa@gmail.com>
Wed, 15 Feb 2012 19:59:49 +0000 (20:59 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2012 23:59:14 +0000 (23:59 +0000)
* and drop apply=yes param as it's not needed

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
meta/recipes-connectivity/wireless-tools/wireless-tools/remove.ldconfig.call.patch [new file with mode: 0644]
meta/recipes-connectivity/wireless-tools/wireless-tools_29.bb

diff --git a/meta/recipes-connectivity/wireless-tools/wireless-tools/remove.ldconfig.call.patch b/meta/recipes-connectivity/wireless-tools/wireless-tools/remove.ldconfig.call.patch
new file mode 100644 (file)
index 0000000..3a22c3f
--- /dev/null
@@ -0,0 +1,19 @@
+When /etc/ld.so.cache is writeable by user running bitbake then it creates invalid cache 
+(in my case libstdc++.so cannot be found after building zlib(-native) and I have to call 
+touch */libstdc++.so && /sbin/ldconfig to fix it.
+
+So remove ldconfig call from make install-libs
+
+Upstream-Status: Inappropriate [disable feature]
+
+diff -uNr wireless_tools.29.orig/Makefile wireless_tools.29/Makefile
+--- wireless_tools.29.orig/Makefile    2007-09-18 01:56:46.000000000 +0200
++++ wireless_tools.29/Makefile 2012-02-15 20:46:41.780763514 +0100
+@@ -163,7 +163,6 @@
+       install -m 755 $(DYNAMIC) $(INSTALL_LIB)
+       ln -sfn $(DYNAMIC) $(INSTALL_LIB)/$(DYNAMIC_LINK)
+       @echo "*** Don't forget to add $(INSTALL_LIB) to /etc/ld.so.conf, and run ldconfig as root. ***"
+-      @$(LDCONFIG) || echo "*** Could not run ldconfig ! ***"
+ # Install the static library
+ install-static:: $(STATIC)
index cc51decd84e3248ff3c10421492e75b4f7d08d91..c6235d6680e4082b418e6817a909046cb154d8e2 100644 (file)
@@ -7,10 +7,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
                        file://sample_enc.c;beginline=1;endline=4;md5=838372be07874260b566bae2f6ed33b6"
 SECTION = "base"
 PE = "1"
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz \
-           file://man.patch;apply=yes \
+          file://remove.ldconfig.call.patch \
+          file://man.patch \
           file://wireless-tools.if-pre-up \
           file://zzz-wireless.if-pre-up \
           file://avoid_strip.patch"