* [gentoo-dev] [PATCH 1/2] s6.eclass: drop EAPI 5, 6 and 7 support
@ 2023-01-01 19:43 David Seifert
2023-01-01 19:43 ` [gentoo-dev] [PATCH 2/2] s6.eclass: consistent style David Seifert
0 siblings, 1 reply; 2+ messages in thread
From: David Seifert @ 2023-01-01 19:43 UTC (permalink / raw
To: gentoo-dev; +Cc: David Seifert
Signed-off-by: David Seifert <soap@gentoo.org>
---
eclass/s6.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/s6.eclass b/eclass/s6.eclass
index 25960ba4a1d..f4d7ebf2c31 100644
--- a/eclass/s6.eclass
+++ b/eclass/s6.eclass
@@ -1,10 +1,10 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: s6.eclass
# @MAINTAINER:
# William Hubbs <williamh@gentoo.org>
-# @SUPPORTED_EAPIS: 5 6 7 8
+# @SUPPORTED_EAPIS: 8
# @BLURB: helper functions to install s6 services
# @DESCRIPTION:
# This eclass provides helpers to install s6 services.
@@ -26,7 +26,7 @@
# @CODE
case ${EAPI} in
- 5|6|7|8) ;;
+ 8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
--
2.39.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-dev] [PATCH 2/2] s6.eclass: consistent style
2023-01-01 19:43 [gentoo-dev] [PATCH 1/2] s6.eclass: drop EAPI 5, 6 and 7 support David Seifert
@ 2023-01-01 19:43 ` David Seifert
0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2023-01-01 19:43 UTC (permalink / raw
To: gentoo-dev; +Cc: David Seifert
Signed-off-by: David Seifert <soap@gentoo.org>
---
eclass/s6.eclass | 42 ++++++++++++++++++++----------------------
1 file changed, 20 insertions(+), 22 deletions(-)
diff --git a/eclass/s6.eclass b/eclass/s6.eclass
index f4d7ebf2c31..56b321f178f 100644
--- a/eclass/s6.eclass
+++ b/eclass/s6.eclass
@@ -42,7 +42,7 @@ _s6_get_servicedir() {
# @DESCRIPTION:
# Output the path for the s6 service directory (not including ${D}).
s6_get_servicedir() {
- debug-print-function ${FUNCNAME} "${@}"
+ debug-print-function ${FUNCNAME} "$@"
echo "${EPREFIX}$(_s6_get_servicedir)"
}
@@ -55,22 +55,22 @@ s6_get_servicedir() {
# run is the run script for the service.
# finish is the optional finish script for the service.
s6_install_service() {
- debug-print-function ${FUNCNAME} "${@}"
+ debug-print-function ${FUNCNAME} "$@"
local name="$1"
local run="$2"
local finish="$3"
- [[ $name ]] ||
+ [[ -z ${name} ]] &&
die "${ECLASS}.eclass: you must specify the s6 service name"
- [[ $run ]] ||
+ [[ -z ${run} ]] &&
die "${ECLASS}.eclass: you must specify the s6 service run script"
(
- local servicepath="$(_s6_get_servicedir)/$name"
- exeinto "$servicepath"
- newexe "$run" run
- [[ $finish ]] && newexe "$finish" finish
+ local servicepath="$(_s6_get_servicedir)/${name}"
+ exeinto "${servicepath}"
+ newexe "${run}" run
+ [[ -n ${finish} ]] && newexe "${finish}" finish
)
}
@@ -81,18 +81,17 @@ s6_install_service() {
# default.
# servicename is the name of the service.
s6_service_down() {
- debug-print-function ${FUNCNAME} "${@}"
+ debug-print-function ${FUNCNAME} "$@"
local name="$1"
-
- [[ $name ]] ||
+ [[ -z ${name} ]] &&
die "${ECLASS}.eclass: you must specify the s6 service name"
(
- touch "$T"/down || die
- local servicepath="$(_s6_get_servicedir)/$name"
- insinto "$servicepath"
- doins "$T"/down
+ touch "${T}"/down || die
+ local servicepath="$(_s6_get_servicedir)/${name}"
+ insinto "${servicepath}"
+ doins "${T}"/down
)
}
@@ -103,17 +102,16 @@ s6_service_down() {
# leader.
# servicename is the name of the service.
s6_service_nosetsid() {
- debug-print-function ${FUNCNAME} "${@}"
+ debug-print-function ${FUNCNAME} "$@"
local name="$1"
-
- [[ $name ]] ||
+ [[ -z ${name} ]] &&
die "${ECLASS}.eclass: you must specify the s6 service name"
(
- touch "$T"/nosetsid || die
- local servicepath="$(_s6_get_servicedir)/$name"
- insinto "$servicepath"
- doins "$T"/nosetsid
+ touch "${T}"/nosetsid || die
+ local servicepath="$(_s6_get_servicedir)/${name}"
+ insinto "${servicepath}"
+ doins "${T}"/nosetsid
)
}
--
2.39.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-01 19:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-01 19:43 [gentoo-dev] [PATCH 1/2] s6.eclass: drop EAPI 5, 6 and 7 support David Seifert
2023-01-01 19:43 ` [gentoo-dev] [PATCH 2/2] s6.eclass: consistent style David Seifert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox