mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
opkg-utils: remove python scripts etc for the class-target only
OE's packaging functions assume that the opkg-utils python scipts are always provided by opkg-utils-native, so the scripts should be removed for class-target only. (From OE-Core rev: dc243da47e10cc11dce4e2d3b9d59b96e23a0ce2) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4a3c1b0cf0
commit
5bc0593305
@@ -34,13 +34,13 @@ do_install() {
|
|||||||
if ! ${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'true', 'false', d)}; then
|
if ! ${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'true', 'false', d)}; then
|
||||||
rm -f "${D}${bindir}/update-alternatives"
|
rm -f "${D}${bindir}/update-alternatives"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
|
|
||||||
grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_append_class-target() {
|
do_install_append_class-target() {
|
||||||
|
if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
|
||||||
|
grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -e "${D}${bindir}/update-alternatives" ]; then
|
if [ -e "${D}${bindir}/update-alternatives" ]; then
|
||||||
sed -i ${D}${bindir}/update-alternatives -e 's,/usr/bin,${bindir},g; s,/usr/lib,${nonarch_libdir},g'
|
sed -i ${D}${bindir}/update-alternatives -e 's,/usr/bin,${bindir},g; s,/usr/lib,${nonarch_libdir},g'
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user