From 96433ee2c09d6e7ea03954b51dfa5bb5cbdf279e Mon Sep 17 00:00:00 2001 From: André Draszik Date: Fri, 24 Jul 2015 13:48:48 +0100 Subject: opkg-utils: use ${bindir} instead of hardcoding /usr/bin (From OE-Core rev: 48e04a93c357fb494470d2f175e644a6f43a7d63) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/recipes-devtools/opkg-utils') diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb index 2f66632b66..5f518d22d1 100644 --- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb @@ -28,6 +28,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" -- cgit v1.2.3-54-g00ecf