From 3ff9e848835e0806138d54649a9c28c6c8d99d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Draszik?= Date: Fri, 24 Jul 2015 13:48:48 +0100 Subject: opkg-utils: use ${bindir} instead of hardcoding /usr/bin (From OE-Core rev: 48e04a93c357fb494470d2f175e644a6f43a7d63) (From OE-Core rev: 65ea72434fe227374147041b4b5fff19d8a18efb) 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') 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" -- cgit v1.1