opkg-native: use OE's libdir instead of hardcoded /usr/lib for update-alternatives
authorMario Domenech Goulart <mario@ossystems.com.br>
Tue, 23 Jun 2009 19:07:19 +0000 (16:07 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 10 Jul 2009 17:25:48 +0000 (14:25 -0300)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes/opkg/files/opkg-libdir.patch [new file with mode: 0644]
recipes/opkg/opkg-native_svn.bb

diff --git a/recipes/opkg/files/opkg-libdir.patch b/recipes/opkg/files/opkg-libdir.patch
new file mode 100644 (file)
index 0000000..1d48b9a
--- /dev/null
@@ -0,0 +1,11 @@
+--- trunk/utils/update-alternatives.orig       2009-06-23 15:33:56.000000000 -0300
++++ trunk/utils/update-alternatives    2009-06-23 15:34:10.000000000 -0300
+@@ -21,7 +21,7 @@
+ set -e
+ # admin dir
+-ad="$OPKG_OFFLINE_ROOT/usr/lib/opkg/alternatives"
++ad="$OPKG_OFFLINE_ROOT/${libdir}/opkg/alternatives"
+ usage() {
+       echo "update-alternatives: $*
index 82c74e0..acd681c 100644 (file)
@@ -3,6 +3,8 @@ require opkg.inc
 DEPENDS = "curl-native"
 PR = "r3"
 
+SRC_URI += "file://opkg-libdir.patch;patch=1"
+
 target_libdir := "${libdir}"
 
 inherit native