From abf37e040faf510e6e087d97bf76cf07aef05e18 Mon Sep 17 00:00:00 2001 From: wangmy Date: Tue, 24 May 2022 16:33:44 +0800 Subject: init-system-helpers: upgrade 1.62 -> 1.63 Changelog: ========== * Remove constraints unnecessary since buster * init-system-helpers: Drop versioned constraint on perl-base in Depends. * init: Drop versioned constraint on init-system-helpers in Depends. * t/helpers.pm: use installed version of deb-systemd-helper if TEST_INSTALLED is set * add DPKG_ROOT support (Closes: #983421) * Add additional error checking on write operations. The 'close()' call can fail on both read and write - while the read is usually relatively benign, for the write counter part can include "fun" errors. Most of these would most likely be persistent issues, but it makes sense to detect errors as early possible. * service: use 'grep -F' instead of 'egrep' 'egrep' and 'fgrep' have been deprecated in GNU grep since 2007, and in current post 3.7 Git they have been made to emit obsolescence warnings. The occurrence in 'service' uses a non-regex argument, so switch to 'grep -F' instead of '-E'. Signed-off-by: Wang Mingyu Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- .../initscripts/init-system-helpers_1.62.bb | 41 ---------------------- .../initscripts/init-system-helpers_1.63.bb | 41 ++++++++++++++++++++++ 2 files changed, 41 insertions(+), 41 deletions(-) delete mode 100644 meta/recipes-core/initscripts/init-system-helpers_1.62.bb create mode 100644 meta/recipes-core/initscripts/init-system-helpers_1.63.bb (limited to 'meta/recipes-core') diff --git a/meta/recipes-core/initscripts/init-system-helpers_1.62.bb b/meta/recipes-core/initscripts/init-system-helpers_1.62.bb deleted file mode 100644 index d5c05ff8e5..0000000000 --- a/meta/recipes-core/initscripts/init-system-helpers_1.62.bb +++ /dev/null @@ -1,41 +0,0 @@ -SUMMARY = "helper tools for all init systems" -DESCRIPTION = "This package contains helper tools that are necessary for switching between \ -the various init systems that Debian contains (e. g. sysvinit or \ -systemd). An example is deb-systemd-helper, a script that enables systemd unit \ -files without depending on a running systemd. \ -\ -It also includes the \"service\", \"invoke-rc.d\", and \"update-rc.d\" scripts which \ -provide an abstraction for enabling, disabling, starting, and stopping \ -services for all supported Debian init systems as specified by the policy. \ -\ -While this package is maintained by pkg-systemd-maintainers, it is NOT \ -specific to systemd at all. Maintainers of other init systems are welcome to \ -include their helpers in this package." -HOMEPAGE = "https://salsa.debian.org/debian/init-system-helpers" -SECTION = "base" -LICENSE = "BSD-3-Clause & GPL-2.0-only" -LIC_FILES_CHKSUM = "file://debian/copyright;md5=ee2b1830fcfead84d07bc060ec43e072" - -SRCREV = "bbe4b508f3216cdc124683ba449e2295974a6b4a" -SRC_URI = "git://salsa.debian.org/debian/init-system-helpers.git;protocol=https;branch=master" - -S = "${WORKDIR}/git" - -do_configure[noexec] = "1" -do_compile[noexec] = "1" - -do_install() { - install -d -m 0755 ${D}${sbindir} - install -m 0755 ${S}/script/invoke-rc.d ${D}${sbindir} - install -m 0755 ${S}/script/service ${D}${sbindir} -} - -PACKAGES += "${PN}-invoke-rc.d ${PN}-service" - -FILES:${PN} = "" -FILES:${PN}-invoke-rc.d = "${sbindir}/invoke-rc.d" -FILES:${PN}-service = "${sbindir}/service" - -ALLOW_EMPTY:${PN} = "1" - -RRECOMMENDS:${PN} += "${PN}-invoke-rc.d ${PN}-service" diff --git a/meta/recipes-core/initscripts/init-system-helpers_1.63.bb b/meta/recipes-core/initscripts/init-system-helpers_1.63.bb new file mode 100644 index 0000000000..1251ddf639 --- /dev/null +++ b/meta/recipes-core/initscripts/init-system-helpers_1.63.bb @@ -0,0 +1,41 @@ +SUMMARY = "helper tools for all init systems" +DESCRIPTION = "This package contains helper tools that are necessary for switching between \ +the various init systems that Debian contains (e. g. sysvinit or \ +systemd). An example is deb-systemd-helper, a script that enables systemd unit \ +files without depending on a running systemd. \ +\ +It also includes the \"service\", \"invoke-rc.d\", and \"update-rc.d\" scripts which \ +provide an abstraction for enabling, disabling, starting, and stopping \ +services for all supported Debian init systems as specified by the policy. \ +\ +While this package is maintained by pkg-systemd-maintainers, it is NOT \ +specific to systemd at all. Maintainers of other init systems are welcome to \ +include their helpers in this package." +HOMEPAGE = "https://salsa.debian.org/debian/init-system-helpers" +SECTION = "base" +LICENSE = "BSD-3-Clause & GPL-2.0-only" +LIC_FILES_CHKSUM = "file://debian/copyright;md5=ee2b1830fcfead84d07bc060ec43e072" + +SRCREV = "af94bae943a80954af7fd486c1cab3f900e0975f" +SRC_URI = "git://salsa.debian.org/debian/init-system-helpers.git;protocol=https;branch=master" + +S = "${WORKDIR}/git" + +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install() { + install -d -m 0755 ${D}${sbindir} + install -m 0755 ${S}/script/invoke-rc.d ${D}${sbindir} + install -m 0755 ${S}/script/service ${D}${sbindir} +} + +PACKAGES += "${PN}-invoke-rc.d ${PN}-service" + +FILES:${PN} = "" +FILES:${PN}-invoke-rc.d = "${sbindir}/invoke-rc.d" +FILES:${PN}-service = "${sbindir}/service" + +ALLOW_EMPTY:${PN} = "1" + +RRECOMMENDS:${PN} += "${PN}-invoke-rc.d ${PN}-service" -- cgit 1.2.3-korg