[oe-commits] =?UTF-8?Q?Andr=C3=A9=20Draszik=20?=: opkg-utils: use ${bindir} instead of hardcoding /usr/bin

git at git.openembedded.org git at git.openembedded.org
Mon Aug 10 19:41:16 UTC 2015


Module: openembedded-core.git
Branch: fido
Commit: 65ea72434fe227374147041b4b5fff19d8a18efb
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=65ea72434fe227374147041b4b5fff19d8a18efb

Author: André Draszik <git at andred.net>
Date:   Fri Jul 24 13:48:48 2015 +0100

opkg-utils: use ${bindir} instead of hardcoding /usr/bin

(From OE-Core rev: 48e04a93c357fb494470d2f175e644a6f43a7d63)

Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
index 2800a5d..8835527 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
@@ -26,6 +26,10 @@ do_install() {
 	oe_runmake PREFIX=${prefix} DESTDIR=${D} install
 }
 
+do_install_append_class-target() {
+	sed -i ${D}${bindir}/update-alternatives -e 's,/usr/bin,${bindir},g; s,/usr/lib,${libdir},g'
+}
+
 PACKAGES =+ "update-alternatives-opkg"
 FILES_update-alternatives-opkg = "${bindir}/update-alternatives"
 RPROVIDES_update-alternatives-opkg = "update-alternatives update-alternatives-cworth"



More information about the Openembedded-commits mailing list