summaryrefslogtreecommitdiffstats
path: root/meta/classes/update-rc.d.bbclass
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/classes/update-rc.d.bbclass
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/classes/update-rc.d.bbclass')
-rw-r--r--meta/classes/update-rc.d.bbclass28
1 files changed, 14 insertions, 14 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 1366fee653..0a3a608662 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -1,11 +1,11 @@
1UPDATERCPN ?= "${PN}" 1UPDATERCPN ?= "${PN}"
2 2
3DEPENDS_append_class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', ' update-rc.d initscripts', '', d)}" 3DEPENDS:append:class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', ' update-rc.d initscripts', '', d)}"
4 4
5UPDATERCD = "update-rc.d" 5UPDATERCD = "update-rc.d"
6UPDATERCD_class-cross = "" 6UPDATERCD:class-cross = ""
7UPDATERCD_class-native = "" 7UPDATERCD:class-native = ""
8UPDATERCD_class-nativesdk = "" 8UPDATERCD:class-nativesdk = ""
9 9
10INITSCRIPT_PARAMS ?= "defaults" 10INITSCRIPT_PARAMS ?= "defaults"
11 11
@@ -62,8 +62,8 @@ python __anonymous() {
62 update_rc_after_parse(d) 62 update_rc_after_parse(d)
63} 63}
64 64
65PACKAGESPLITFUNCS_prepend = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'populate_packages_updatercd ', '', d)}" 65PACKAGESPLITFUNCS:prepend = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'populate_packages_updatercd ', '', d)}"
66PACKAGESPLITFUNCS_remove_class-nativesdk = "populate_packages_updatercd " 66PACKAGESPLITFUNCS:remove:class-nativesdk = "populate_packages_updatercd "
67 67
68populate_packages_updatercd[vardeps] += "updatercd_prerm updatercd_postrm updatercd_postinst" 68populate_packages_updatercd[vardeps] += "updatercd_prerm updatercd_postrm updatercd_postinst"
69populate_packages_updatercd[vardepsexclude] += "OVERRIDES" 69populate_packages_updatercd[vardepsexclude] += "OVERRIDES"
@@ -78,7 +78,7 @@ python populate_packages_updatercd () {
78 statement = "grep -q -w '/etc/init.d/functions' %s" % path 78 statement = "grep -q -w '/etc/init.d/functions' %s" % path
79 if subprocess.call(statement, shell=True) == 0: 79 if subprocess.call(statement, shell=True) == 0:
80 mlprefix = d.getVar('MLPREFIX') or "" 80 mlprefix = d.getVar('MLPREFIX') or ""
81 d.appendVar('RDEPENDS_' + pkg, ' %sinitd-functions' % (mlprefix)) 81 d.appendVar('RDEPENDS:' + pkg, ' %sinitd-functions' % (mlprefix))
82 82
83 def update_rcd_package(pkg): 83 def update_rcd_package(pkg):
84 bb.debug(1, 'adding update-rc.d calls to postinst/prerm/postrm for %s' % pkg) 84 bb.debug(1, 'adding update-rc.d calls to postinst/prerm/postrm for %s' % pkg)
@@ -89,25 +89,25 @@ python populate_packages_updatercd () {
89 89
90 update_rcd_auto_depend(pkg) 90 update_rcd_auto_depend(pkg)
91 91
92 postinst = d.getVar('pkg_postinst_%s' % pkg) 92 postinst = d.getVar('pkg_postinst:%s' % pkg)
93 if not postinst: 93 if not postinst:
94 postinst = '#!/bin/sh\n' 94 postinst = '#!/bin/sh\n'
95 postinst += localdata.getVar('updatercd_postinst') 95 postinst += localdata.getVar('updatercd_postinst')
96 d.setVar('pkg_postinst_%s' % pkg, postinst) 96 d.setVar('pkg_postinst:%s' % pkg, postinst)
97 97
98 prerm = d.getVar('pkg_prerm_%s' % pkg) 98 prerm = d.getVar('pkg_prerm:%s' % pkg)
99 if not prerm: 99 if not prerm:
100 prerm = '#!/bin/sh\n' 100 prerm = '#!/bin/sh\n'
101 prerm += localdata.getVar('updatercd_prerm') 101 prerm += localdata.getVar('updatercd_prerm')
102 d.setVar('pkg_prerm_%s' % pkg, prerm) 102 d.setVar('pkg_prerm:%s' % pkg, prerm)
103 103
104 postrm = d.getVar('pkg_postrm_%s' % pkg) 104 postrm = d.getVar('pkg_postrm:%s' % pkg)
105 if not postrm: 105 if not postrm:
106 postrm = '#!/bin/sh\n' 106 postrm = '#!/bin/sh\n'
107 postrm += localdata.getVar('updatercd_postrm') 107 postrm += localdata.getVar('updatercd_postrm')
108 d.setVar('pkg_postrm_%s' % pkg, postrm) 108 d.setVar('pkg_postrm:%s' % pkg, postrm)
109 109
110 d.appendVar('RRECOMMENDS_' + pkg, " ${MLPREFIX}${UPDATERCD}") 110 d.appendVar('RRECOMMENDS:' + pkg, " ${MLPREFIX}${UPDATERCD}")
111 111
112 # Check that this class isn't being inhibited (generally, by 112 # Check that this class isn't being inhibited (generally, by
113 # systemd.bbclass) before doing any work. 113 # systemd.bbclass) before doing any work.