[oe-commits] Mario Domenech Goulart : opkg-native: use OE's libdir instead of hardcoded /usr/lib for update-alternatives

git version control git at git.openembedded.org
Fri Jul 10 17:26:17 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 9756c8d5940e5f067c97dd37e2f30704eaa0927f
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=9756c8d5940e5f067c97dd37e2f30704eaa0927f

Author: Mario Domenech Goulart <mario at ossystems.com.br>
Date:   Tue Jun 23 16:07:19 2009 -0300

opkg-native: use OE's libdir instead of hardcoded /usr/lib for update-alternatives

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>

---

 recipes/opkg/files/opkg-libdir.patch |   11 +++++++++++
 recipes/opkg/opkg-native_svn.bb      |    2 ++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/recipes/opkg/files/opkg-libdir.patch b/recipes/opkg/files/opkg-libdir.patch
new file mode 100644
index 0000000..1d48b9a
--- /dev/null
+++ b/recipes/opkg/files/opkg-libdir.patch
@@ -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: $*
diff --git a/recipes/opkg/opkg-native_svn.bb b/recipes/opkg/opkg-native_svn.bb
index 82c74e0..acd681c 100644
--- a/recipes/opkg/opkg-native_svn.bb
+++ b/recipes/opkg/opkg-native_svn.bb
@@ -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





More information about the Openembedded-commits mailing list