summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg-utils
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:28:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 15:44:10 +0100
commitbb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch)
tree76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/recipes-devtools/opkg-utils
parentfcc456ee4b8f619134abb4649db53c638074082c (diff)
downloadpoky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz
Convert to new override syntax
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg-utils')
-rw-r--r--meta/recipes-devtools/opkg-utils/opkg-utils_0.4.5.bb20
1 files changed, 10 insertions, 10 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.5.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.5.bb
index 93d2911104..a2bcc7f661 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.5.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.5.bb
@@ -1,5 +1,5 @@
1SUMMARY = "Additional utilities for the opkg package manager" 1SUMMARY = "Additional utilities for the opkg package manager"
2SUMMARY_update-alternatives-opkg = "Utility for managing the alternatives system" 2SUMMARY:update-alternatives-opkg = "Utility for managing the alternatives system"
3SECTION = "base" 3SECTION = "base"
4HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils" 4HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils"
5LICENSE = "GPLv2+" 5LICENSE = "GPLv2+"
@@ -17,13 +17,13 @@ SRC_URI[sha256sum] = "528635e674addea5c2b3a3268404ad04a952c4f410d17c3d754f5dd552
17 17
18TARGET_CC_ARCH += "${LDFLAGS}" 18TARGET_CC_ARCH += "${LDFLAGS}"
19 19
20RDEPENDS_${PN} += "bash" 20RDEPENDS:${PN} += "bash"
21 21
22inherit perlnative 22inherit perlnative
23 23
24# For native builds we use the host Python 24# For native builds we use the host Python
25PYTHONRDEPS = "python3 python3-shell python3-io python3-math python3-crypt python3-logging python3-fcntl python3-pickle python3-compression python3-stringold" 25PYTHONRDEPS = "python3 python3-shell python3-io python3-math python3-crypt python3-logging python3-fcntl python3-pickle python3-compression python3-stringold"
26PYTHONRDEPS_class-native = "" 26PYTHONRDEPS:class-native = ""
27 27
28PACKAGECONFIG = "python update-alternatives" 28PACKAGECONFIG = "python update-alternatives"
29PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}" 29PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}"
@@ -36,7 +36,7 @@ do_install() {
36 fi 36 fi
37} 37}
38 38
39do_install_append_class-target() { 39do_install:append:class-target() {
40 if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then 40 if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
41 grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm 41 grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm
42 fi 42 fi
@@ -48,15 +48,15 @@ do_install_append_class-target() {
48 48
49# These are empty and will pull python3-dev into images where it wouldn't 49# These are empty and will pull python3-dev into images where it wouldn't
50# have been otherwise, so don't generate them. 50# have been otherwise, so don't generate them.
51PACKAGES_remove = "${PN}-dev ${PN}-staticdev" 51PACKAGES:remove = "${PN}-dev ${PN}-staticdev"
52 52
53PACKAGES =+ "update-alternatives-opkg" 53PACKAGES =+ "update-alternatives-opkg"
54FILES_update-alternatives-opkg = "${bindir}/update-alternatives" 54FILES:update-alternatives-opkg = "${bindir}/update-alternatives"
55RPROVIDES_update-alternatives-opkg = "update-alternatives update-alternatives-cworth" 55RPROVIDES:update-alternatives-opkg = "update-alternatives update-alternatives-cworth"
56RREPLACES_update-alternatives-opkg = "update-alternatives-cworth" 56RREPLACES:update-alternatives-opkg = "update-alternatives-cworth"
57RCONFLICTS_update-alternatives-opkg = "update-alternatives-cworth" 57RCONFLICTS:update-alternatives-opkg = "update-alternatives-cworth"
58 58
59pkg_postrm_update-alternatives-opkg() { 59pkg_postrm:update-alternatives-opkg() {
60 rm -rf $D${nonarch_libdir}/opkg/alternatives 60 rm -rf $D${nonarch_libdir}/opkg/alternatives
61 rmdir $D${nonarch_libdir}/opkg || true 61 rmdir $D${nonarch_libdir}/opkg || true
62} 62}