mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
opkg: Don't use update-alternatives
The symlink from 'opkg' to 'opkg-cl' doesn't need to be created with update-alternatives as there isn't any alternative. Instead it can be created by hand in do_install_append. (From OE-Core rev: c28bb9126eed92c13a50a2557eb48402a9d12537) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9339da20db
commit
6734f82003
@@ -68,6 +68,10 @@ do_install_append() {
|
||||
-e 's,@SYSTEMD_UNITDIR@,${systemd_unitdir},g' \
|
||||
${D}${systemd_unitdir}/system/opkg-configure.service
|
||||
fi
|
||||
|
||||
# The installed binary is 'opkg-cl' but people and scripts often expect
|
||||
# it to just be 'opkg'
|
||||
ln -sf opkg-cl ${D}${bindir}/opkg
|
||||
}
|
||||
|
||||
do_install_append_class-native() {
|
||||
@@ -96,13 +100,6 @@ rm -f ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
|
||||
fi
|
||||
}
|
||||
|
||||
inherit update-alternatives
|
||||
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
ALTERNATIVE_${PN} = "opkg"
|
||||
ALTERNATIVE_LINK_NAME[opkg] = "${bindir}/opkg"
|
||||
ALTERNATIVE_TARGET[opkg] = "${bindir}/opkg-cl"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
# Define a variable to allow distros to run configure earlier.
|
||||
|
||||
Reference in New Issue
Block a user