summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2015-07-24 13:48:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-09 16:37:08 -0700
commit65ea72434fe227374147041b4b5fff19d8a18efb (patch)
tree1132c726ce40d93238026a24c278e42064beeaa4
parentdcfe46aab5ceae780dda52c5bfae38b8918c4614 (diff)
downloadopenembedded-core-65ea72434fe227374147041b4b5fff19d8a18efb.tar.gz
openembedded-core-65ea72434fe227374147041b4b5fff19d8a18efb.tar.bz2
openembedded-core-65ea72434fe227374147041b4b5fff19d8a18efb.zip
opkg-utils: use ${bindir} instead of hardcoding /usr/bin
(From OE-Core rev: 48e04a93c357fb494470d2f175e644a6f43a7d63) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/opkg-utils/opkg-utils_git.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
index 2800a5deb7..8835527d2c 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"