* [gentoo-dev] [PATCH 02/61] acct-user.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
@ 2023-03-24 11:16 ` Ulrich Müller
2023-03-24 11:16 ` [gentoo-dev] [PATCH 03/61] autotools.eclass: " Ulrich Müller
` (58 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:16 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/acct-user.eclass | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass
index 145fdb41aaf8..d12dfd21ffd3 100644
--- a/eclass/acct-user.eclass
+++ b/eclass/acct-user.eclass
@@ -80,14 +80,14 @@ readonly ACCT_USER_NAME
# If set to a non-null value, the eclass will require the user to have
# specified UID. If the user already exists with another UID, or
# the UID is taken by another user, the install will fail.
-: ${ACCT_USER_ENFORCE_ID:=}
+: "${ACCT_USER_ENFORCE_ID:=}"
# @ECLASS_VARIABLE: ACCT_USER_NO_MODIFY
# @DEFAULT_UNSET
# @DESCRIPTION:
# If set to a non-null value, the eclass will not make any changes
# to an already existing user.
-: ${ACCT_USER_NO_MODIFY:=}
+: "${ACCT_USER_NO_MODIFY:=}"
# @ECLASS_VARIABLE: ACCT_USER_COMMENT
# @DEFAULT_UNSET
@@ -101,7 +101,7 @@ readonly ACCT_USER_NAME
# The shell to use for the user. If not specified, a 'nologin' variant
# for the system is used. This can be overriden in make.conf through
# ACCT_USER_<UPPERCASE_USERNAME>_SHELL variable.
-: ${ACCT_USER_SHELL:=/sbin/nologin}
+: "${ACCT_USER_SHELL:=/sbin/nologin}"
# @ECLASS_VARIABLE: ACCT_USER_HOME
# @DESCRIPTION:
@@ -110,7 +110,7 @@ readonly ACCT_USER_NAME
# not exist. When updating, existing home directory will not be moved.
# This can be overriden in make.conf through
# ACCT_USER_<UPPERCASE_USERNAME>_HOME variable.
-: ${ACCT_USER_HOME:=/dev/null}
+: "${ACCT_USER_HOME:=/dev/null}"
# @ECLASS_VARIABLE: ACCT_USER_HOME_OWNER
# @DEFAULT_UNSET
@@ -125,7 +125,7 @@ readonly ACCT_USER_NAME
# The permissions to use for the home directory, in chmod (octal
# or verbose) form. This can be overriden in make.conf through
# ACCT_USER_<UPPERCASE_USERNAME>_HOME_PERMS variable.
-: ${ACCT_USER_HOME_PERMS:=0755}
+: "${ACCT_USER_HOME_PERMS:=0755}"
# @ECLASS_VARIABLE: ACCT_USER_GROUPS
# @REQUIRED
@@ -142,9 +142,9 @@ readonly ACCT_USER_NAME
# << Boilerplate ebuild variables >>
-: ${DESCRIPTION:="System user: ${ACCT_USER_NAME}"}
-: ${SLOT:=0}
-: ${KEYWORDS:=alpha amd64 arm arm64 hppa ia64 ~loong m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris}
+: "${DESCRIPTION:="System user: ${ACCT_USER_NAME}"}"
+: "${SLOT:=0}"
+: "${KEYWORDS:=alpha amd64 arm arm64 hppa ia64 ~loong m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris}"
S=${WORKDIR}
@@ -269,7 +269,7 @@ acct-user_src_install() {
debug-print-function ${FUNCNAME} "${@}"
# Replace reserved characters in comment
- : ${ACCT_USER_COMMENT:=${DESCRIPTION//[:,=]/;}}
+ : "${ACCT_USER_COMMENT:=${DESCRIPTION//[:,=]/;}}"
# serialize for override support
local ACCT_USER_GROUPS=${ACCT_USER_GROUPS[*]}
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 03/61] autotools.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
2023-03-24 11:16 ` [gentoo-dev] [PATCH 02/61] acct-user.eclass: " Ulrich Müller
@ 2023-03-24 11:16 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 04/61] bzr.eclass: " Ulrich Müller
` (57 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:16 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/autotools.eclass | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 3a9119856abc..9eda52b281ad 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -39,19 +39,19 @@ inherit gnuconfig libtool
# @PRE_INHERIT
# @DESCRIPTION:
# The major version of autoconf your package needs
-: ${WANT_AUTOCONF:=latest}
+: "${WANT_AUTOCONF:=latest}"
# @ECLASS_VARIABLE: WANT_AUTOMAKE
# @PRE_INHERIT
# @DESCRIPTION:
# The major version of automake your package needs
-: ${WANT_AUTOMAKE:=latest}
+: "${WANT_AUTOMAKE:=latest}"
# @ECLASS_VARIABLE: WANT_LIBTOOL
# @PRE_INHERIT
# @DESCRIPTION:
# Do you want libtool? Valid values here are "latest" and "none".
-: ${WANT_LIBTOOL:=latest}
+: "${WANT_LIBTOOL:=latest}"
# @ECLASS_VARIABLE: _LATEST_AUTOMAKE
# @INTERNAL
@@ -125,7 +125,7 @@ RDEPEND=""
# Set to 'no' to disable automatically adding to DEPEND. This lets
# ebuilds form conditional depends by using ${AUTOTOOLS_DEPEND} in
# their own DEPEND string.
-: ${AUTOTOOLS_AUTO_DEPEND:=yes}
+: "${AUTOTOOLS_AUTO_DEPEND:=yes}"
if [[ ${AUTOTOOLS_AUTO_DEPEND} != "no" ]] ; then
case ${EAPI} in
6) DEPEND=${AUTOTOOLS_DEPEND} ;;
@@ -141,14 +141,14 @@ unset _automake_atom _autoconf_atom
# @DESCRIPTION:
# Additional options to pass to automake during
# eautoreconf call.
-: ${AM_OPTS:=}
+: "${AM_OPTS:=}"
# @ECLASS_VARIABLE: AT_NOEAUTOHEADER
# @DEFAULT_UNSET
# @DESCRIPTION:
# Don't run eautoheader command if set to 'yes'; only used to work around
# packages that don't want their headers being modified.
-: ${AT_NOEAUTOHEADER:=}
+: "${AT_NOEAUTOHEADER:=}"
# @ECLASS_VARIABLE: AT_NOEAUTOMAKE
# @DEFAULT_UNSET
@@ -156,7 +156,7 @@ unset _automake_atom _autoconf_atom
# Don't run eautomake command if set to 'yes'; only used to workaround
# broken packages. Generally you should, instead, fix the package to
# not call AM_INIT_AUTOMAKE if it doesn't actually use automake.
-: ${AT_NOEAUTOMAKE:=}
+: "${AT_NOEAUTOMAKE:=}"
# @ECLASS_VARIABLE: AT_NOELIBTOOLIZE
# @DEFAULT_UNSET
@@ -164,13 +164,13 @@ unset _automake_atom _autoconf_atom
# Don't run elibtoolize command if set to 'yes',
# useful when elibtoolize needs to be ran with
# particular options
-: ${AT_NOELIBTOOLIZE:=}
+: "${AT_NOELIBTOOLIZE:=}"
# @ECLASS_VARIABLE: AT_M4DIR
# @DEFAULT_UNSET
# @DESCRIPTION:
# Additional director(y|ies) aclocal should search
-: ${AT_M4DIR:=}
+: "${AT_M4DIR:=}"
# @ECLASS_VARIABLE: AT_SYS_M4DIR
# @DEFAULT_UNSET
@@ -179,7 +179,7 @@ unset _automake_atom _autoconf_atom
# For system integrators, a list of additional aclocal search paths.
# This variable gets eval-ed, so you can use variables in the definition
# that may not be valid until eautoreconf & friends are run.
-: ${AT_SYS_M4DIR:=}
+: "${AT_SYS_M4DIR:=}"
# @FUNCTION: eautoreconf
# @DESCRIPTION:
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 04/61] bzr.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
2023-03-24 11:16 ` [gentoo-dev] [PATCH 02/61] acct-user.eclass: " Ulrich Müller
2023-03-24 11:16 ` [gentoo-dev] [PATCH 03/61] autotools.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 05/61] cargo.eclass: " Ulrich Müller
` (56 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/bzr.eclass | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass
index 552990e3a581..d522326773e1 100644
--- a/eclass/bzr.eclass
+++ b/eclass/bzr.eclass
@@ -32,42 +32,42 @@ BDEPEND="dev-vcs/breezy"
# @USER_VARIABLE
# @DESCRIPTION:
# The directory to store all fetched Bazaar live sources.
-: ${EBZR_STORE_DIR:=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/bzr-src}
+: "${EBZR_STORE_DIR:=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/bzr-src}"
# @ECLASS_VARIABLE: EBZR_UNPACK_DIR
# @DESCRIPTION:
# The working directory where the sources are copied to.
-: ${EBZR_UNPACK_DIR:=${WORKDIR}/${P}}
+: "${EBZR_UNPACK_DIR:=${WORKDIR}/${P}}"
# @ECLASS_VARIABLE: EBZR_INIT_REPO_CMD
# @DESCRIPTION:
# The Bazaar command to initialise a shared repository.
-: ${EBZR_INIT_REPO_CMD:="brz init-shared-repository --no-trees"}
+: "${EBZR_INIT_REPO_CMD:="brz init-shared-repository --no-trees"}"
# @ECLASS_VARIABLE: EBZR_FETCH_CMD
# @DESCRIPTION:
# The Bazaar command to fetch the sources.
-: ${EBZR_FETCH_CMD:="brz branch --no-tree"}
+: "${EBZR_FETCH_CMD:="brz branch --no-tree"}"
# @ECLASS_VARIABLE: EBZR_UPDATE_CMD
# @DESCRIPTION:
# The Bazaar command to update the sources.
-: ${EBZR_UPDATE_CMD:="brz pull --overwrite-tags"}
+: "${EBZR_UPDATE_CMD:="brz pull --overwrite-tags"}"
# @ECLASS_VARIABLE: EBZR_EXPORT_CMD
# @DESCRIPTION:
# The Bazaar command to export a branch.
-: ${EBZR_EXPORT_CMD:="brz export"}
+: "${EBZR_EXPORT_CMD:="brz export"}"
# @ECLASS_VARIABLE: EBZR_CHECKOUT_CMD
# @DESCRIPTION:
# The Bazaar command to checkout a branch.
-: ${EBZR_CHECKOUT_CMD:="brz checkout --lightweight -q"}
+: "${EBZR_CHECKOUT_CMD:="brz checkout --lightweight -q"}"
# @ECLASS_VARIABLE: EBZR_REVNO_CMD
# @DESCRIPTION:
# The Bazaar command to list a revision number of the branch.
-: ${EBZR_REVNO_CMD:="brz revno"}
+: "${EBZR_REVNO_CMD:="brz revno"}"
# @ECLASS_VARIABLE: EBZR_OPTIONS
# @DEFAULT_UNSET
@@ -88,7 +88,7 @@ BDEPEND="dev-vcs/breezy"
# If EBZR_BRANCH is set (see below), then a shared repository will be
# created in that directory, and the branch will be located in
# ${EBZR_STORE_DIR}/${EBZR_PROJECT}/${EBZR_BRANCH}.
-: ${EBZR_PROJECT:=${PN}}
+: "${EBZR_PROJECT:=${PN}}"
# @ECLASS_VARIABLE: EBZR_BRANCH
# @DEFAULT_UNSET
@@ -116,7 +116,7 @@ BDEPEND="dev-vcs/breezy"
# Set this variable to a non-empty value to disable automatic updating
# of a bzr source tree. This is intended to be set outside the ebuild
# by users.
-: ${EBZR_OFFLINE=${EVCS_OFFLINE}}
+: "${EBZR_OFFLINE=${EVCS_OFFLINE}}"
# @ECLASS_VARIABLE: EVCS_UMASK
# @USER_VARIABLE
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 05/61] cargo.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (2 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 04/61] bzr.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 06/61] cdrom.eclass: " Ulrich Müller
` (55 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/cargo.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index e3f36fc6ad9b..e8218a241a0e 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -352,7 +352,7 @@ cargo_live_src_unpack() {
mkdir -p "${ECARGO_HOME}" || die
local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}
- : ${ECARGO_REGISTRY_DIR:=${distdir}/cargo-registry}
+ : "${ECARGO_REGISTRY_DIR:=${distdir}/cargo-registry}"
local offline="${ECARGO_OFFLINE:-${EVCS_OFFLINE}}"
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 06/61] cdrom.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (3 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 05/61] cargo.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 07/61] cmake-multilib.eclass: " Ulrich Müller
` (54 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/cdrom.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass
index 81539e8560ce..4e56db951196 100644
--- a/eclass/cdrom.eclass
+++ b/eclass/cdrom.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: cdrom.eclass
@@ -200,7 +200,7 @@ cdrom_load_next_cd() {
while true ; do
local i cdset
- : CD_ROOT_${CDROM_CURRENT_CD}
+ : "CD_ROOT_${CDROM_CURRENT_CD}"
export CDROM_ROOT=${CD_ROOT:-${!_}}
local var="CDROM_CHECK_${CDROM_CURRENT_CD}"
IFS=: read -r -a cdset -d "" <<< "${!var}"
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 07/61] cmake-multilib.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (4 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 06/61] cdrom.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 08/61] cmake.eclass: " Ulrich Müller
` (53 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/cmake-multilib.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/cmake-multilib.eclass b/eclass/cmake-multilib.eclass
index c8fad94ac0a9..826f0ffcd967 100644
--- a/eclass/cmake-multilib.eclass
+++ b/eclass/cmake-multilib.eclass
@@ -24,7 +24,7 @@
# @DEPRECATED: none
# @DESCRIPTION:
# Only "cmake" is supported.
-: ${CMAKE_ECLASS:=cmake}
+: "${CMAKE_ECLASS:=cmake}"
case ${EAPI} in
7|8)
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 08/61] cmake.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (5 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 07/61] cmake-multilib.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 09/61] cuda.eclass: " Ulrich Müller
` (52 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/cmake.eclass | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index 03f2517c5b56..30de3c71faa4 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -35,15 +35,15 @@ inherit flag-o-matic multiprocessing ninja-utils toolchain-funcs xdg-utils
# For in-source build it's fixed to ${CMAKE_USE_DIR}.
# For out-of-source build it can be overridden, by default it uses
# ${CMAKE_USE_DIR}_build (in EAPI-7: ${WORKDIR}/${P}_build).
-[[ ${EAPI} == 7 ]] && : ${BUILD_DIR:=${WORKDIR}/${P}_build}
+[[ ${EAPI} == 7 ]] && : "${BUILD_DIR:=${WORKDIR}/${P}_build}"
# EAPI-8: set inside _cmake_check_build_dir
# @ECLASS_VARIABLE: CMAKE_BINARY
# @DESCRIPTION:
# Eclass can use different cmake binary than the one provided in by system.
-: ${CMAKE_BINARY:=cmake}
+: "${CMAKE_BINARY:=cmake}"
-[[ ${EAPI} == 7 ]] && : ${CMAKE_BUILD_TYPE:=Gentoo}
+[[ ${EAPI} == 7 ]] && : "${CMAKE_BUILD_TYPE:=Gentoo}"
# @ECLASS_VARIABLE: CMAKE_BUILD_TYPE
# @DESCRIPTION:
# Set to override default CMAKE_BUILD_TYPE. Only useful for packages
@@ -55,7 +55,7 @@ inherit flag-o-matic multiprocessing ninja-utils toolchain-funcs xdg-utils
# build type to achieve desirable results.
#
# In EAPI 7, the default was non-standard build type of Gentoo.
-: ${CMAKE_BUILD_TYPE:=RelWithDebInfo}
+: "${CMAKE_BUILD_TYPE:=RelWithDebInfo}"
# @ECLASS_VARIABLE: CMAKE_IN_SOURCE_BUILD
# @DEFAULT_UNSET
@@ -69,7 +69,7 @@ inherit flag-o-matic multiprocessing ninja-utils toolchain-funcs xdg-utils
# Specify a makefile generator to be used by cmake.
# At this point only "emake" and "ninja" are supported.
# The default is set to "ninja".
-: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
+: "${CMAKE_MAKEFILE_GENERATOR:=ninja}"
# @ECLASS_VARIABLE: CMAKE_REMOVE_MODULES_LIST
# @PRE_INHERIT
@@ -100,14 +100,14 @@ fi
# @USER_VARIABLE
# @DESCRIPTION:
# Set to OFF to disable verbose messages during compilation
-: ${CMAKE_VERBOSE:=ON}
+: "${CMAKE_VERBOSE:=ON}"
# @ECLASS_VARIABLE: CMAKE_WARN_UNUSED_CLI
# @DESCRIPTION:
# Warn about variables that are declared on the command line
# but not used. Might give false-positives.
# "no" to disable (default) or anything else to enable.
-: ${CMAKE_WARN_UNUSED_CLI:=yes}
+: "${CMAKE_WARN_UNUSED_CLI:=yes}"
# @ECLASS_VARIABLE: CMAKE_EXTRA_CACHE_FILE
# @USER_VARIABLE
@@ -284,15 +284,15 @@ cmake-utils_useno() { _cmake_banned_func "" "$@" ; }
# Determine using IN or OUT source build
_cmake_check_build_dir() {
if [[ ${EAPI} == 7 ]]; then
- : ${CMAKE_USE_DIR:=${S}}
+ : "${CMAKE_USE_DIR:=${S}}"
else
- : ${CMAKE_USE_DIR:=${PWD}}
+ : "${CMAKE_USE_DIR:=${PWD}}"
fi
if [[ -n ${CMAKE_IN_SOURCE_BUILD} ]]; then
# we build in source dir
BUILD_DIR="${CMAKE_USE_DIR}"
else
- : ${BUILD_DIR:=${CMAKE_USE_DIR}_build}
+ : "${BUILD_DIR:=${CMAKE_USE_DIR}_build}"
fi
einfo "Source directory (CMAKE_USE_DIR): \"${CMAKE_USE_DIR}\""
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 09/61] cuda.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (6 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 08/61] cmake.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 10/61] cvs.eclass: " Ulrich Müller
` (51 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/cuda.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass
index d885e77d0616..5f3f0c3af37d 100644
--- a/eclass/cuda.eclass
+++ b/eclass/cuda.eclass
@@ -28,12 +28,12 @@ inherit flag-o-matic toolchain-funcs
# @DESCRIPTION:
# nvcc compiler flags (see nvcc --help), which should be used like
# CFLAGS for c compiler
-: ${NVCCFLAGS:=-O2}
+: "${NVCCFLAGS:=-O2}"
# @ECLASS_VARIABLE: CUDA_VERBOSE
# @DESCRIPTION:
# Being verbose during compilation to see underlying commands
-: ${CUDA_VERBOSE:=true}
+: "${CUDA_VERBOSE:=true}"
# @FUNCTION: cuda_gccdir
# @USAGE: [-f]
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 10/61] cvs.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (7 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 09/61] cuda.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 11/61] docs.eclass: " Ulrich Müller
` (50 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/cvs.eclass | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
index 5ba2197f5174..dbacc2c09cfe 100644
--- a/eclass/cvs.eclass
+++ b/eclass/cvs.eclass
@@ -37,13 +37,13 @@ _CVS_ECLASS=1
# @DESCRIPTION:
# Set the default compression level. Has no effect when ECVS_CVS_COMMAND
# is defined by ebuild/user.
-: ${ECVS_CVS_COMPRESS:=-z1}
+: "${ECVS_CVS_COMPRESS:=-z1}"
# @ECLASS_VARIABLE: ECVS_CVS_OPTIONS
# @DESCRIPTION:
# Additional options to the cvs commands. Has no effect when ECVS_CVS_COMMAND
# is defined by ebuild/user.
-: ${ECVS_CVS_OPTIONS:=-q -f}
+: "${ECVS_CVS_OPTIONS:=-q -f}"
# @ECLASS_VARIABLE: ECVS_CVS_COMMAND
# @DESCRIPTION:
@@ -53,13 +53,13 @@ _CVS_ECLASS=1
# on the cvs connection. The default of "cvs -q -f -z4" means to be
# quiet, to disregard the ~/.cvsrc config file and to use maximum
# compression.
-: ${ECVS_CVS_COMMAND:=cvs ${ECVS_CVS_OPTIONS} ${ECVS_CVS_COMPRESS}}
+: "${ECVS_CVS_COMMAND:=cvs ${ECVS_CVS_OPTIONS} ${ECVS_CVS_COMPRESS}}"
# @ECLASS_VARIABLE: ECVS_UP_OPTS
# @DESCRIPTION:
# CVS options given after the cvs update command. Don't remove "-dP" or things
# won't work.
-: ${ECVS_UP_OPTS:=-dP}
+: "${ECVS_UP_OPTS:=-dP}"
# @ECLASS_VARIABLE: ECVS_CO_OPTS
# @DEFAULT_UNSET
@@ -72,7 +72,7 @@ _CVS_ECLASS=1
# Set this variable to a non-empty value to disable the automatic updating of
# a CVS source tree. This is intended to be set outside the cvs source
# tree by users.
-: ${ECVS_OFFLINE:=${EVCS_OFFLINE}}
+: "${ECVS_OFFLINE:=${EVCS_OFFLINE}}"
# @ECLASS_VARIABLE: ECVS_LOCAL
# @DEFAULT_UNSET
@@ -97,7 +97,7 @@ _CVS_ECLASS=1
# @ECLASS_VARIABLE: ECVS_TOP_DIR
# @DESCRIPTION:
# The directory under which CVS modules are checked out.
-: ${ECVS_TOP_DIR:="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/cvs-src"}
+: "${ECVS_TOP_DIR:="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/cvs-src"}"
# @ECLASS_VARIABLE: ECVS_SERVER
# @DESCRIPTION:
@@ -110,7 +110,7 @@ _CVS_ECLASS=1
#
# Set this to "offline" to disable fetching (i.e. to assume the module
# is already checked out in ECVS_TOP_DIR).
-: ${ECVS_SERVER:="offline"}
+: "${ECVS_SERVER:="offline"}"
# @ECLASS_VARIABLE: ECVS_MODULE
# @REQUIRED
@@ -152,12 +152,12 @@ _CVS_ECLASS=1
# e.g.
# "cvs -danoncvs@savannah.gnu.org:/cvsroot/backbone co System"
# ( from gnustep-apps/textedit )
-: ${ECVS_AUTH:="pserver"}
+: "${ECVS_AUTH:="pserver"}"
# @ECLASS_VARIABLE: ECVS_USER
# @DESCRIPTION:
# Username to use for authentication on the remote server.
-: ${ECVS_USER:="anonymous"}
+: "${ECVS_USER:="anonymous"}"
# @ECLASS_VARIABLE: ECVS_PASS
# @DEFAULT_UNSET
@@ -423,7 +423,7 @@ EOF
# Make sure DISPLAY is set (SSH will not use SSH_ASKPASS
# if DISPLAY is not set)
- : ${DISPLAY:="DISPLAY"}
+ : "${DISPLAY:="DISPLAY"}"
export DISPLAY
# Create a dummy executable to echo ${ECVS_PASS}
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 11/61] docs.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (8 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 10/61] cvs.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 12/61] dune.eclass: " Ulrich Müller
` (49 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/docs.eclass | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/eclass/docs.eclass b/eclass/docs.eclass
index 810b56460f3f..da598226bfc0 100644
--- a/eclass/docs.eclass
+++ b/eclass/docs.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: docs.eclass
@@ -210,7 +210,7 @@ python_append_deps() {
sphinx_deps() {
debug-print-function ${FUNCNAME}
- : ${DOCS_AUTODOC:=1}
+ : "${DOCS_AUTODOC:=1}"
deps="dev-python/sphinx[\${PYTHON_USEDEP}]
${DOCS_DEPEND}"
@@ -235,8 +235,8 @@ sphinx_compile() {
debug-print-function ${FUNCNAME}
use doc || return
- : ${DOCS_DIR:="${S}"}
- : ${DOCS_OUTDIR:="${S}/_build/html/sphinx"}
+ : "${DOCS_DIR:="${S}"}"
+ : "${DOCS_OUTDIR:="${S}/_build/html/sphinx"}"
[[ ${DOCS_INITIALIZE_GIT} ]] && initialize_git_repo
@@ -274,7 +274,7 @@ sphinx_compile() {
mkdocs_deps() {
debug-print-function ${FUNCNAME}
- : ${DOCS_AUTODOC:=0}
+ : "${DOCS_AUTODOC:=0}"
deps="dev-python/mkdocs[\${PYTHON_USEDEP}]
${DOCS_DEPEND}"
@@ -298,8 +298,8 @@ mkdocs_compile() {
debug-print-function ${FUNCNAME}
use doc || return
- : ${DOCS_DIR:="${S}"}
- : ${DOCS_OUTDIR:="${S}/_build/html/mkdocs"}
+ : "${DOCS_DIR:="${S}"}"
+ : "${DOCS_OUTDIR:="${S}/_build/html/mkdocs"}"
[[ ${DOCS_INITIALIZE_GIT} ]] && initialize_git_repo
@@ -342,9 +342,9 @@ doxygen_compile() {
use doc || return
# This is the default name of the config file, upstream can change it.
- : ${DOCS_CONFIG_NAME:="Doxyfile"}
- : ${DOCS_DIR:="${S}"}
- : ${DOCS_OUTDIR:="${S}/_build/html/doxygen"}
+ : "${DOCS_CONFIG_NAME:="Doxyfile"}"
+ : "${DOCS_DIR:="${S}"}"
+ : "${DOCS_OUTDIR:="${S}/_build/html/doxygen"}"
[[ ${DOCS_INITIALIZE_GIT} ]] && initialize_git_repo
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 12/61] dune.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (9 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 11/61] docs.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 13/61] ecm.eclass: " Ulrich Müller
` (48 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/dune.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/dune.eclass b/eclass/dune.eclass
index 655a41be84d6..f0faea007c9f 100644
--- a/eclass/dune.eclass
+++ b/eclass/dune.eclass
@@ -27,7 +27,7 @@ _DUNE_ECLASS=1
# @DESCRIPTION:
# Sets the actual Dune package name, if different from Gentoo package name.
# Set before inheriting the eclass.
-: ${DUNE_PKG_NAME:=${PN}}
+: "${DUNE_PKG_NAME:=${PN}}"
inherit edo multiprocessing
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 13/61] ecm.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (10 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 12/61] dune.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 14/61] elisp-common.eclass: " Ulrich Müller
` (47 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/ecm.eclass | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass
index 9fca1647778c..1e620e5ec204 100644
--- a/eclass/ecm.eclass
+++ b/eclass/ecm.eclass
@@ -34,7 +34,7 @@ _ECM_ECLASS=1
# For proper description see virtualx.eclass manpage.
# Here we redefine default value to be manual, if your package needs virtualx
# for tests you should proceed with setting VIRTUALX_REQUIRED=test.
-: ${VIRTUALX_REQUIRED:=manual}
+: "${VIRTUALX_REQUIRED:=manual}"
inherit cmake flag-o-matic toolchain-funcs virtualx
@@ -46,9 +46,9 @@ inherit cmake flag-o-matic toolchain-funcs virtualx
# kde-frameworks/oxygen-icons and run the xdg.eclass routines for pkg_preinst,
# pkg_postinst and pkg_postrm. If set to "true", do nothing.
if [[ ${CATEGORY} = kde-frameworks ]] ; then
- : ${ECM_NONGUI:=true}
+ : "${ECM_NONGUI:=true}"
fi
-: ${ECM_NONGUI:=false}
+: "${ECM_NONGUI:=false}"
if [[ ${ECM_NONGUI} = false ]] ; then
inherit xdg
@@ -58,25 +58,25 @@ fi
# @DESCRIPTION:
# Assume the package is using KDEInstallDirs macro and switch
# KDE_INSTALL_USE_QT_SYS_PATHS to ON. If set to "false", do nothing.
-: ${ECM_KDEINSTALLDIRS:=true}
+: "${ECM_KDEINSTALLDIRS:=true}"
# @ECLASS_VARIABLE: ECM_DEBUG
# @DESCRIPTION:
# Add "debug" to IUSE. If !debug, add -DQT_NO_DEBUG to CPPFLAGS. If set to
# "false", do nothing.
-: ${ECM_DEBUG:=true}
+: "${ECM_DEBUG:=true}"
# @ECLASS_VARIABLE: ECM_DESIGNERPLUGIN
# @DESCRIPTION:
# If set to "true", add "designer" to IUSE to toggle build of designer plugins
# and add the necessary BDEPEND. If set to "false", do nothing.
-: ${ECM_DESIGNERPLUGIN:=false}
+: "${ECM_DESIGNERPLUGIN:=false}"
# @ECLASS_VARIABLE: ECM_EXAMPLES
# @DESCRIPTION:
# By default unconditionally ignore a top-level examples subdirectory.
# If set to "true", add "examples" to IUSE to toggle adding that subdirectory.
-: ${ECM_EXAMPLES:=false}
+: "${ECM_EXAMPLES:=false}"
# @ECLASS_VARIABLE: ECM_HANDBOOK
# @DESCRIPTION:
@@ -90,20 +90,20 @@ fi
# when !handbook. In case package requires KF5KDELibs4Support, see next:
# If set to "forceoptional", remove a KF5DocTools dependency from the root
# CMakeLists.txt in addition to the above.
-: ${ECM_HANDBOOK:=false}
+: "${ECM_HANDBOOK:=false}"
# @ECLASS_VARIABLE: ECM_HANDBOOK_DIR
# @DESCRIPTION:
# Specifies the directory containing the docbook file(s) relative to ${S} to
# be processed by KF5DocTools (kdoctools_install).
-: ${ECM_HANDBOOK_DIR:=doc}
+: "${ECM_HANDBOOK_DIR:=doc}"
# @ECLASS_VARIABLE: ECM_PO_DIRS
# @DESCRIPTION:
# Specifies directories of l10n files relative to ${S} to be processed by
# KF5I18n (ki18n_install). If IUSE nls exists and is disabled then disable
# build of these directories in CMakeLists.txt.
-: ${ECM_PO_DIRS:="po poqm"}
+: "${ECM_PO_DIRS:="po poqm"}"
# @ECLASS_VARIABLE: ECM_QTHELP
# @DEFAULT_UNSET
@@ -113,9 +113,9 @@ fi
# -DBUILD_QCH=ON generate and install Qt compressed help files when USE=doc.
# If set to "false", do nothing.
if [[ ${CATEGORY} = kde-frameworks ]]; then
- : ${ECM_QTHELP:=true}
+ : "${ECM_QTHELP:=true}"
fi
-: ${ECM_QTHELP:=false}
+: "${ECM_QTHELP:=false}"
# @ECLASS_VARIABLE: ECM_TEST
# @DEFAULT_UNSET
@@ -135,9 +135,9 @@ fi
# meant as a short-term fix and creates ${T}/${P}-tests-optional.patch to
# refine and submit upstream.
if [[ ${CATEGORY} = kde-frameworks ]]; then
- : ${ECM_TEST:=true}
+ : "${ECM_TEST:=true}"
fi
-: ${ECM_TEST:=false}
+: "${ECM_TEST:=false}"
# @ECLASS_VARIABLE: KFMIN
# @DEFAULT_UNSET
@@ -147,15 +147,15 @@ fi
# changed unless we also bump EAPI, which usually implies (rev-)bumping.
# Version will also be used to differentiate between KF5/Qt5 and KF6/Qt6.
if [[ ${CATEGORY} = kde-frameworks ]]; then
- : ${KFMIN:=$(ver_cut 1-2)}
+ : "${KFMIN:=$(ver_cut 1-2)}"
fi
-: ${KFMIN:=5.82.0}
+: "${KFMIN:=5.82.0}"
# @ECLASS_VARIABLE: KFSLOT
# @INTERNAL
# @DESCRIPTION:
# KDE Frameworks and Qt slot dependency, implied by KFMIN version.
-: ${KFSLOT:=5}
+: "${KFSLOT:=5}"
case ${ECM_NONGUI} in
true) ;;
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 14/61] elisp-common.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (11 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 13/61] ecm.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 15/61] fortran-2.eclass: " Ulrich Müller
` (46 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/elisp-common.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 2715c26c91a8..1a54686988a2 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: elisp-common.eclass
@@ -206,7 +206,7 @@ BYTECOMPFLAGS="-L ."
# @ECLASS_VARIABLE: NEED_EMACS
# @DESCRIPTION:
# The minimum Emacs version required for the package.
-: ${NEED_EMACS:=23.1}
+: "${NEED_EMACS:=23.1}"
# @ECLASS_VARIABLE: _ELISP_EMACS_VERSION
# @INTERNAL
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 15/61] fortran-2.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (12 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 14/61] elisp-common.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 16/61] git-r3.eclass: " Ulrich Müller
` (45 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/fortran-2.eclass | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass
index 72b3d2d1857b..48f84e9e4980 100644
--- a/eclass/fortran-2.eclass
+++ b/eclass/fortran-2.eclass
@@ -40,7 +40,7 @@ inherit toolchain-funcs
# @DESCRIPTION:
# Set to "1" in order to automatically have the eclass abort if the fortran
# compiler lacks openmp support.
-: ${FORTRAN_NEED_OPENMP:=0}
+: "${FORTRAN_NEED_OPENMP:=0}"
# @ECLASS_VARIABLE: FORTRAN_STANDARD
# @DESCRIPTION:
@@ -48,7 +48,7 @@ inherit toolchain-funcs
# Generally not needed as default is sufficient.
#
# Valid settings are any combination of: 77 90 95 2003
-: ${FORTRAN_STANDARD:=77}
+: "${FORTRAN_STANDARD:=77}"
# @ECLASS_VARIABLE: FORTRAN_NEEDED
# @DESCRIPTION:
@@ -61,7 +61,7 @@ inherit toolchain-funcs
# DEPEND="lapack? ( virtual/fortran )"
#
# If unset, we always depend on virtual/fortran.
-: ${FORTRAN_NEEDED:=always}
+: "${FORTRAN_NEEDED:=always}"
for _f_use in ${FORTRAN_NEEDED}; do
case ${_f_use} in
@@ -221,9 +221,9 @@ _fortran_test_function() {
local dialect
- : ${F77:=$(tc-getFC)}
+ : "${F77:=$(tc-getFC)}"
- : ${FORTRAN_STANDARD:=77}
+ : "${FORTRAN_STANDARD:=77}"
for dialect in ${FORTRAN_STANDARD}; do
case ${dialect} in
77) _fortran_compile_test "$(tc-getF77)" || \
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 16/61] git-r3.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (13 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 15/61] fortran-2.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 17/61] gnome.org.eclass: " Ulrich Müller
` (44 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/git-r3.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
index 5c7dc29627cb..32f1129f86bc 100644
--- a/eclass/git-r3.eclass
+++ b/eclass/git-r3.eclass
@@ -62,7 +62,7 @@ fi
# unavailable calls like 'git describe' will not reference prior tags.
# No purging of old references is done. This mode is intended mostly for
# embedded systems with limited disk space.
-: ${EGIT_CLONE_TYPE:=single}
+: "${EGIT_CLONE_TYPE:=single}"
# @ECLASS_VARIABLE: EGIT_MIN_CLONE_TYPE
# @DESCRIPTION:
@@ -79,7 +79,7 @@ fi
# or a similar remote is used that does not support shallow clones
# and fetching tags along with commits. Please use sparingly, and to fix
# fatal errors rather than 'non-pretty versions'.
-: ${EGIT_MIN_CLONE_TYPE:=shallow}
+: "${EGIT_MIN_CLONE_TYPE:=shallow}"
# @ECLASS_VARIABLE: EGIT3_STORE_DIR
# @USER_VARIABLE
@@ -317,7 +317,7 @@ _git-r3_set_gitdir() {
repo_name=${repo_name//\//_}
local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}
- : ${EGIT3_STORE_DIR:=${distdir}/git3-src}
+ : "${EGIT3_STORE_DIR:=${distdir}/git3-src}"
GIT_DIR=${EGIT3_STORE_DIR}/${repo_name}
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 17/61] gnome.org.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (14 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 16/61] git-r3.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 18/61] gnome2-utils.eclass: " Ulrich Müller
` (43 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/gnome.org.eclass | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/eclass/gnome.org.eclass b/eclass/gnome.org.eclass
index 05025f5f58fa..99b0090fda7c 100644
--- a/eclass/gnome.org.eclass
+++ b/eclass/gnome.org.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: gnome.org.eclass
@@ -29,7 +29,7 @@ _GNOME_ORG_ECLASS=1
# Most projects hosted on gnome.org mirrors provide tarballs as tar.bz2 or
# tar.xz. This eclass defaults to xz. This is because the GNOME mirrors are
# moving to only have xz tarballs for new releases.
-: ${GNOME_TARBALL_SUFFIX:="xz"}
+: "${GNOME_TARBALL_SUFFIX:="xz"}"
# Even though xz-utils are in @system, they must still be added to BDEPEND; see
# https://archives.gentoo.org/gentoo-dev/msg_a0d4833eb314d1be5d5802a3b710e0a4.xml
@@ -45,16 +45,16 @@ fi
# @DESCRIPTION:
# Name of the module as hosted on gnome.org mirrors.
# Leave unset if package name matches module name.
-: ${GNOME_ORG_MODULE:=$PN}
+: "${GNOME_ORG_MODULE:=$PN}"
# @ECLASS_VARIABLE: GNOME_ORG_PVP
# @INTERNAL
# @DESCRIPTION:
# Components of the version number that correspond to a 6 month release.
if ver_test -ge 40.0; then
- : ${GNOME_ORG_PVP:=$(ver_cut 1)}
+ : "${GNOME_ORG_PVP:=$(ver_cut 1)}"
else
- : ${GNOME_ORG_PVP:=$(ver_cut 1-2)}
+ : "${GNOME_ORG_PVP:=$(ver_cut 1-2)}"
fi
SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP}/${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}"
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 18/61] gnome2-utils.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (15 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 17/61] gnome.org.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 19/61] golang-vcs.eclass: " Ulrich Müller
` (42 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/gnome2-utils.eclass | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/eclass/gnome2-utils.eclass b/eclass/gnome2-utils.eclass
index 4bbbdc82dae7..0e9a91db07fb 100644
--- a/eclass/gnome2-utils.eclass
+++ b/eclass/gnome2-utils.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: gnome2-utils.eclass
@@ -29,29 +29,29 @@ esac
# @INTERNAL
# @DESCRIPTION:
# Path to gconftool-2
-: ${GCONFTOOL_BIN:="/usr/bin/gconftool-2"}
+: "${GCONFTOOL_BIN:="/usr/bin/gconftool-2"}"
# @ECLASS_VARIABLE: SCROLLKEEPER_DIR
# @INTERNAL
# @DESCRIPTION:
# Directory where scrollkeeper-update should do its work
-: ${SCROLLKEEPER_DIR:="/var/lib/scrollkeeper"}
+: "${SCROLLKEEPER_DIR:="/var/lib/scrollkeeper"}"
# @ECLASS_VARIABLE: SCROLLKEEPER_UPDATE_BIN
# @INTERNAL
# @DESCRIPTION:
# Path to scrollkeeper-update
-: ${SCROLLKEEPER_UPDATE_BIN:="/usr/bin/scrollkeeper-update"}
+: "${SCROLLKEEPER_UPDATE_BIN:="/usr/bin/scrollkeeper-update"}"
# @ECLASS_VARIABLE: GLIB_COMPILE_RESOURCES
# @DESCRIPTION:
# Path to glib-compile-resources
-: ${GLIB_COMPILE_RESOURCES:="/usr/bin/glib-compile-resources"}
+: "${GLIB_COMPILE_RESOURCES:="/usr/bin/glib-compile-resources"}"
# @ECLASS_VARIABLE: GLIB_COMPILE_SCHEMAS
# @DESCRIPTION:
# Path to glib-compile-schemas
-: ${GLIB_COMPILE_SCHEMAS:="/usr/bin/glib-compile-schemas"}
+: "${GLIB_COMPILE_SCHEMAS:="/usr/bin/glib-compile-schemas"}"
# @ECLASS_VARIABLE: GNOME2_ECLASS_SCHEMAS
# @INTERNAL
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 19/61] golang-vcs.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (16 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 18/61] gnome2-utils.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 20/61] gstreamer-meson.eclass: " Ulrich Müller
` (41 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/golang-vcs.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/golang-vcs.eclass b/eclass/golang-vcs.eclass
index 7eb60e5f2453..6f60b6dd3ae0 100644
--- a/eclass/golang-vcs.eclass
+++ b/eclass/golang-vcs.eclass
@@ -67,7 +67,7 @@ _golang-vcs_env_setup() {
debug-print-function ${FUNCNAME} "$@"
local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}
- : ${EGO_STORE_DIR:=${distdir}/go-src}
+ : "${EGO_STORE_DIR:=${distdir}/go-src}"
[[ -n ${EVCS_UMASK} ]] && eumask_push $EVCS_UMASK
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 20/61] gstreamer-meson.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (17 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 19/61] golang-vcs.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 21/61] haskell-cabal.eclass: " Ulrich Müller
` (40 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/gstreamer-meson.eclass | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/eclass/gstreamer-meson.eclass b/eclass/gstreamer-meson.eclass
index aa54d05fdb85..fae030d4f754 100644
--- a/eclass/gstreamer-meson.eclass
+++ b/eclass/gstreamer-meson.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: gstreamer-meson.eclass
@@ -143,7 +143,7 @@ gstreamer_system_library() {
# Actual build directories of the plugins.
# Most often the same as the configure switch name.
# FIXME: Change into a bash array
-: ${GST_PLUGINS_BUILD_DIR:=${PN/gst-plugins-/}}
+: "${GST_PLUGINS_BUILD_DIR:=${PN/gst-plugins-/}}"
# @ECLASS_VARIABLE: GST_TARBALL_SUFFIX
# @DESCRIPTION:
@@ -151,7 +151,7 @@ gstreamer_system_library() {
# tarballs as tar.bz2 or tar.xz. This eclass defaults to xz. This is
# because the gstreamer mirrors are moving to only have xz tarballs for
# new releases.
-: ${GST_TARBALL_SUFFIX:="xz"}
+: "${GST_TARBALL_SUFFIX:="xz"}"
# Even though xz-utils are in @system, they must still be added to BDEPEND; see
# https://archives.gentoo.org/gentoo-dev/msg_a0d4833eb314d1be5d5802a3b710e0a4.xml
@@ -163,13 +163,13 @@ fi
# @DESCRIPTION:
# Name of the module as hosted on gstreamer.freedesktop.org mirrors.
# Leave unset if package name matches module name.
-: ${GST_ORG_MODULE:=${PN}}
+: "${GST_ORG_MODULE:=${PN}}"
# @ECLASS_VARIABLE: GST_ORG_PVP
# @INTERNAL
# @DESCRIPTION:
# Major and minor numbers of the version number.
-: ${GST_ORG_PVP:=$(ver_cut 1-2)}
+: "${GST_ORG_PVP:=$(ver_cut 1-2)}"
DESCRIPTION="${BUILD_GST_PLUGINS} plugin for gstreamer"
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 21/61] haskell-cabal.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (18 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 20/61] gstreamer-meson.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 22/61] java-pkg-simple.eclass: " Ulrich Müller
` (39 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/haskell-cabal.eclass | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass
index 12251a268b45..917c4dd5206e 100644
--- a/eclass/haskell-cabal.eclass
+++ b/eclass/haskell-cabal.eclass
@@ -58,14 +58,14 @@ inherit ghc-package multilib toolchain-funcs
# User-specified additional parameters passed to 'setup configure'.
# example: /etc/portage/make.conf:
# CABAL_EXTRA_CONFIGURE_FLAGS="--enable-shared --enable-executable-dynamic"
-: ${CABAL_EXTRA_CONFIGURE_FLAGS:=}
+: "${CABAL_EXTRA_CONFIGURE_FLAGS:=}"
# @ECLASS_VARIABLE: CABAL_EXTRA_BUILD_FLAGS
# @USER_VARIABLE
# @DESCRIPTION:
# User-specified additional parameters passed to 'setup build'.
# example: /etc/portage/make.conf: CABAL_EXTRA_BUILD_FLAGS=-v
-: ${CABAL_EXTRA_BUILD_FLAGS:=}
+: "${CABAL_EXTRA_BUILD_FLAGS:=}"
# @ECLASS_VARIABLE: GHC_BOOTSTRAP_FLAGS
# @USER_VARIABLE
@@ -74,7 +74,7 @@ inherit ghc-package multilib toolchain-funcs
# _only_ 'setup' binary bootstrap.
# example: /etc/portage/make.conf: GHC_BOOTSTRAP_FLAGS=-dynamic to make
# linking 'setup' faster.
-: ${GHC_BOOTSTRAP_FLAGS:=}
+: "${GHC_BOOTSTRAP_FLAGS:=}"
# @ECLASS_VARIABLE: CABAL_EXTRA_HADDOCK_FLAGS
# @USER_VARIABLE
@@ -82,7 +82,7 @@ inherit ghc-package multilib toolchain-funcs
# User-specified additional parameters passed to 'setup haddock'.
# example: /etc/portage/make.conf:
# CABAL_EXTRA_HADDOCK_FLAGS="--haddock-options=--latex --haddock-options=--pretty-html"
-: ${CABAL_EXTRA_HADDOCK_FLAGS:=}
+: "${CABAL_EXTRA_HADDOCK_FLAGS:=}"
# @ECLASS_VARIABLE: CABAL_EXTRA_HOOGLE_FLAGS
# @USER_VARIABLE
@@ -90,7 +90,7 @@ inherit ghc-package multilib toolchain-funcs
# User-specified additional parameters passed to 'setup haddock --hoogle'.
# example: /etc/portage/make.conf:
# CABAL_EXTRA_HOOGLE_FLAGS="--haddock-options=--show-all"
-: ${CABAL_EXTRA_HOOGLE_FLAGS:=}
+: "${CABAL_EXTRA_HOOGLE_FLAGS:=}"
# @ECLASS_VARIABLE: CABAL_EXTRA_HSCOLOUR_FLAGS
# @USER_VARIABLE
@@ -98,7 +98,7 @@ inherit ghc-package multilib toolchain-funcs
# User-specified additional parameters passed to 'setup hscolour'.
# example: /etc/portage/make.conf:
# CABAL_EXTRA_HSCOLOUR_FLAGS="--executables --tests"
-: ${CABAL_EXTRA_HSCOLOUR_FLAGS:=}
+: "${CABAL_EXTRA_HSCOLOUR_FLAGS:=}"
# @ECLASS_VARIABLE: CABAL_EXTRA_TEST_FLAGS
@@ -107,13 +107,13 @@ inherit ghc-package multilib toolchain-funcs
# User-specified additional parameters passed to 'setup test'.
# example: /etc/portage/make.conf:
# CABAL_EXTRA_TEST_FLAGS="-v3 --show-details=streaming"
-: ${CABAL_EXTRA_TEST_FLAGS:=}
+: "${CABAL_EXTRA_TEST_FLAGS:=}"
# @ECLASS_VARIABLE: CABAL_DEBUG_LOOSENING
# @DESCRIPTION:
# Show debug output for 'cabal_chdeps' function if set.
# Needs working 'diff'.
-: ${CABAL_DEBUG_LOOSENING:=}
+: "${CABAL_DEBUG_LOOSENING:=}"
# @ECLASS_VARIABLE: CABAL_REPORT_OTHER_BROKEN_PACKAGES
# @DESCRIPTION:
@@ -121,14 +121,14 @@ inherit ghc-package multilib toolchain-funcs
# It should be normally enabled unless you know you are about
# to try to compile a lot of broken packages. Default value: 'yes'
# Set to anything else to disable.
-: ${CABAL_REPORT_OTHER_BROKEN_PACKAGES:=yes}
+: "${CABAL_REPORT_OTHER_BROKEN_PACKAGES:=yes}"
# @ECLASS_VARIABLE: CABAL_HACKAGE_REVISION
# @PRE_INHERIT
# @DESCRIPTION:
# Set the upstream revision number from Hackage. This will automatically
# add the upstream cabal revision to SRC_URI and apply it in src_prepare.
-: ${CABAL_HACKAGE_REVISION:=0}
+: "${CABAL_HACKAGE_REVISION:=0}"
# @ECLASS_VARIABLE: CABAL_PN
# @PRE_INHERIT
@@ -136,7 +136,7 @@ inherit ghc-package multilib toolchain-funcs
# Set the name of the package as it is recorded in the Hackage database. This
# is mostly used when packages use CamelCase names upstream, but we want them
# to be lowercase in portage.
-: ${CABAL_PN:=${PN}}
+: "${CABAL_PN:=${PN}}"
# @ECLASS_VARIABLE: CABAL_PV
# @PRE_INHERIT
@@ -144,7 +144,7 @@ inherit ghc-package multilib toolchain-funcs
# Set the version of the package as it is recorded in the Hackage database.
# This can be useful if we use a different versioning scheme in Portage than
# the one from upstream
-: ${CABAL_PV:=${PV}}
+: "${CABAL_PV:=${PV}}"
# @ECLASS_VARIABLE: CABAL_P
# @OUTPUT_VARIABLE
@@ -158,7 +158,7 @@ S="${WORKDIR}/${CABAL_P}"
# @DESCRIPTION:
# The location of the .cabal file for the Haskell package. This defaults to
# "${S}/${CABAL_PN}.cabal".
-: ${CABAL_FILE:="${S}/${CABAL_PN}.cabal"}
+: "${CABAL_FILE:="${S}/${CABAL_PN}.cabal"}"
# @ECLASS_VARIABLE: CABAL_DISTFILE
# @OUTPUT_VARIABLE
@@ -179,14 +179,14 @@ fi
# 'base >= 4.2 && < 4.6' 'base >= 4.2 && < 4.7'
# 'containers ==0.4.*' 'containers >= 0.4 && < 0.6'
# )
-: ${CABAL_CHDEPS:=}
+: "${CABAL_CHDEPS:=}"
# @ECLASS_VARIABLE: CABAL_LIVE_VERSION
# @PRE_INHERIT
# @DEFAULT_UNSET
# @DESCRIPTION:
# Set this to any value to prevent SRC_URI from being set automatically.
-: ${CABAL_LIVE_VERSION:=}
+: "${CABAL_LIVE_VERSION:=}"
# @ECLASS_VARIABLE: GHC_BOOTSTRAP_PACKAGES
# @DEFAULT_UNSET
@@ -196,7 +196,7 @@ fi
# GHC_BOOTSTRAP_PACKAGES=(
# cabal-doctest
# )
-: ${GHC_BOOTSTRAP_PACKAGES:=}
+: "${GHC_BOOTSTRAP_PACKAGES:=}"
# 'dev-haskell/cabal' passes those options with ./configure-based
# configuration, but most packages don't need/don't accept it:
@@ -266,7 +266,7 @@ BDEPEND="${BDEPEND} app-text/dos2unix"
# returns the version of cabal currently in use.
# Rarely it's handy to pin cabal version from outside.
-: ${_CABAL_VERSION_CACHE:=""}
+: "${_CABAL_VERSION_CACHE:=""}"
cabal-version() {
if [[ -z "${_CABAL_VERSION_CACHE}" ]]; then
if [[ "${CABAL_BOOTSTRAP}" ]]; then
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 22/61] java-pkg-simple.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (19 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 21/61] haskell-cabal.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 23/61] kde.org.eclass: " Ulrich Müller
` (38 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/java-pkg-simple.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/java-pkg-simple.eclass b/eclass/java-pkg-simple.eclass
index a1589b025617..929ce68c6c07 100644
--- a/eclass/java-pkg-simple.eclass
+++ b/eclass/java-pkg-simple.eclass
@@ -116,7 +116,7 @@ fi
# @ECLASS_VARIABLE: JAVA_ENCODING
# @DESCRIPTION:
# The character encoding used in the source files.
-: ${JAVA_ENCODING:=UTF-8}
+: "${JAVA_ENCODING:=UTF-8}"
# @ECLASS_VARIABLE: JAVAC_ARGS
# @DEFAULT_UNSET
@@ -148,7 +148,7 @@ fi
# @ECLASS_VARIABLE: JAVA_JAR_FILENAME
# @DESCRIPTION:
# The name of the jar file to create and install.
-: ${JAVA_JAR_FILENAME:=${PN}.jar}
+: "${JAVA_JAR_FILENAME:=${PN}.jar}"
# @ECLASS_VARIABLE: JAVA_BINJAR_FILENAME
# @DEFAULT_UNSET
@@ -161,7 +161,7 @@ fi
# If ${JAVA_MAIN_CLASS} is set, we will create a launcher to
# execute the jar, and ${JAVA_LAUNCHER_FILENAME} will be the
# name of the script.
-: ${JAVA_LAUNCHER_FILENAME:=${PN}-${SLOT}}
+: "${JAVA_LAUNCHER_FILENAME:=${PN}-${SLOT}}"
# @ECLASS_VARIABLE: JAVA_TESTING_FRAMEWORKS
# @DEFAULT_UNSET
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 23/61] kde.org.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (20 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 22/61] java-pkg-simple.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 24/61] kernel-2.eclass: " Ulrich Müller
` (37 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/kde.org.eclass | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/eclass/kde.org.eclass b/eclass/kde.org.eclass
index 629c57d9a082..88040026ecae 100644
--- a/eclass/kde.org.eclass
+++ b/eclass/kde.org.eclass
@@ -84,7 +84,7 @@ readonly KDE_ORG_CATEGORIES
# @DESCRIPTION:
# If unset, default value is mapped from ${CATEGORY} to corresponding upstream
# category on invent.kde.org, with "kde" as fallback value.
-: ${KDE_ORG_CATEGORY:=${KDE_ORG_CATEGORIES[${CATEGORY}]:-kde}}
+: "${KDE_ORG_CATEGORY:=${KDE_ORG_CATEGORIES[${CATEGORY}]:-kde}}"
# @ECLASS_VARIABLE: KDE_ORG_COMMIT
# @PRE_INHERIT
@@ -99,12 +99,12 @@ readonly KDE_ORG_CATEGORIES
# @DESCRIPTION:
# If unset, default value is set to ${PN}.
# Name of the package as hosted on kde.org mirrors.
-: ${KDE_ORG_NAME:=$PN}
+: "${KDE_ORG_NAME:=$PN}"
# @ECLASS_VARIABLE: KDE_ORG_SCHEDULE_URI
# @DESCRIPTION:
# Known schedule URI of package or release group.
-: ${KDE_ORG_SCHEDULE_URI:="https://community.kde.org/Schedules"}
+: "${KDE_ORG_SCHEDULE_URI:="https://community.kde.org/Schedules"}"
# @ECLASS_VARIABLE: KDE_SELINUX_MODULE
# @PRE_INHERIT
@@ -112,7 +112,7 @@ readonly KDE_ORG_CATEGORIES
# If set to "none", do nothing.
# For any other value, add selinux to IUSE, and depending on that useflag
# add a dependency on sec-policy/selinux-${KDE_SELINUX_MODULE} to (R)DEPEND.
-: ${KDE_SELINUX_MODULE:=none}
+: "${KDE_SELINUX_MODULE:=none}"
case ${KDE_SELINUX_MODULE} in
none) ;;
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 24/61] kernel-2.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (21 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 23/61] kde.org.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 25/61] libretro-core.eclass: " Ulrich Müller
` (36 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/kernel-2.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 3c78aa5a8445..4563cc71028c 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -299,13 +299,13 @@ if [[ ${CTARGET} == ${CHOST} && ${CATEGORY/cross-} != ${CATEGORY} ]]; then
fi
HOMEPAGE="https://www.kernel.org/ https://wiki.gentoo.org/wiki/Kernel ${HOMEPAGE}"
-: ${LICENSE:="GPL-2"}
+: "${LICENSE:="GPL-2"}"
# No need to run scanelf/strip on kernel sources/headers (bug #134453).
RESTRICT="binchecks strip"
# set LINUX_HOSTCFLAGS if not already set
-: ${LINUX_HOSTCFLAGS:="-Wall -Wstrict-prototypes -Os -fomit-frame-pointer -I${S}/include"}
+: "${LINUX_HOSTCFLAGS:="-Wall -Wstrict-prototypes -Os -fomit-frame-pointer -I${S}/include"}"
# @FUNCTION: debug-print-kernel2-variables
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 25/61] libretro-core.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (22 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 24/61] kernel-2.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 26/61] linux-info.eclass: " Ulrich Müller
` (35 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/libretro-core.eclass | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/eclass/libretro-core.eclass b/eclass/libretro-core.eclass
index 55d7e9f11513..906526e32436 100644
--- a/eclass/libretro-core.eclass
+++ b/eclass/libretro-core.eclass
@@ -1,4 +1,4 @@
-# Copyright 2018-2022 Gentoo Authors
+# Copyright 2018-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: libretro-core.eclass
@@ -69,17 +69,17 @@ fi
# @DESCRIPTION:
# Contains the real repo name of the core formatted as "repouser/reponame".
# Needs to be set before inherit. Otherwise defaults to "libretro/${PN}"
-: ${LIBRETRO_REPO_NAME:="libretro/libretro-${LIBRETRO_CORE_NAME}"}
+: "${LIBRETRO_REPO_NAME:="libretro/libretro-${LIBRETRO_CORE_NAME}"}"
-: ${HOMEPAGE:="https://github.com/${LIBRETRO_REPO_NAME}"}
+: "${HOMEPAGE:="https://github.com/${LIBRETRO_REPO_NAME}"}"
if [[ ${PV} == *9999 ]]; then
- : ${EGIT_REPO_URI:="https://github.com/${LIBRETRO_REPO_NAME}.git"}
+ : "${EGIT_REPO_URI:="https://github.com/${LIBRETRO_REPO_NAME}.git"}"
inherit git-r3
else
[[ -z "${LIBRETRO_COMMIT_SHA}" ]] && die "LIBRETRO_COMMIT_SHA must be set before inherit."
S="${WORKDIR}/${LIBRETRO_REPO_NAME##*/}-${LIBRETRO_COMMIT_SHA}"
- : ${SRC_URI:="https://github.com/${LIBRETRO_REPO_NAME}/archive/${LIBRETRO_COMMIT_SHA}.tar.gz -> ${P}.tar.gz"}
+ : "${SRC_URI:="https://github.com/${LIBRETRO_REPO_NAME}/archive/${LIBRETRO_COMMIT_SHA}.tar.gz -> ${P}.tar.gz"}"
fi
inherit flag-o-matic toolchain-funcs
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 26/61] linux-info.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (23 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 25/61] libretro-core.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 27/61] linux-mod.eclass: " Ulrich Müller
` (34 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/linux-info.eclass | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index ce04a0dc66a7..66cf77f1dd81 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -45,7 +45,7 @@ _LINUX_INFO_ECLASS=1
# @DESCRIPTION:
# Do not error out in check_extra_config if CONFIG settings are not met.
# This is a user flag and should under _no circumstances_ be set in the ebuild.
-: ${CHECKCONFIG_DONOTHING:=""}
+: "${CHECKCONFIG_DONOTHING:=""}"
# @ECLASS_VARIABLE: KERNEL_DIR
# @DESCRIPTION:
@@ -105,7 +105,7 @@ KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}"
# the following names, in order: GNUmakefile, makefile and Makefile. Set this variable to the
# proper Makefile name or the eclass will search in this order for it.
# See https://www.gnu.org/software/make/manual/make.html
-: ${KERNEL_MAKEFILE:=""}
+: "${KERNEL_MAKEFILE:=""}"
# @ECLASS_VARIABLE: KV_FULL
# @OUTPUT_VARIABLE
@@ -156,7 +156,7 @@ KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}"
# Do not check for kernel sources or a running kernel version.
# Main use-case is for chroots.
# This is a user flag and should under _no circumstances_ be set in the ebuild.
-: ${SKIP_KERNEL_CHECK:=""}
+: "${SKIP_KERNEL_CHECK:=""}"
# And to ensure all the weirdness with crosscompile
inherit toolchain-funcs
@@ -679,7 +679,7 @@ get_running_version() {
KV_MINOR=$(ver_cut 2 ${kv_full})
KV_PATCH=$(ver_cut 3 ${kv_full})
KV_EXTRA="${KV_FULL#${KV_MAJOR}.${KV_MINOR}${KV_PATCH:+.${KV_PATCH}}}"
- : ${KV_PATCH:=0}
+ : "${KV_PATCH:=0}"
return 0
}
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 27/61] linux-mod.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (24 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 26/61] linux-info.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 28/61] mate-desktop.org.eclass: " Ulrich Müller
` (33 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/linux-mod.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index 98b22dcb9fc6..e993ac37da0d 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -38,7 +38,7 @@
# @DESCRIPTION:
# A string containing the directory of the target kernel sources. The default value is
# "/usr/src/linux"
-: ${KERNEL_DIR:=/usr/src/linux}
+: "${KERNEL_DIR:=/usr/src/linux}"
# @ECLASS_VARIABLE: ECONF_PARAMS
# @DEFAULT_UNSET
@@ -54,7 +54,7 @@
# @ECLASS_VARIABLE: BUILD_TARGETS
# @DESCRIPTION:
# It's a string with the build targets to pass to make. The default value is "clean module"
-: ${BUILD_TARGETS:=clean module}
+: "${BUILD_TARGETS:=clean module}"
# @ECLASS_VARIABLE: MODULE_NAMES
# @DEFAULT_UNSET
@@ -177,7 +177,7 @@ RDEPEND="
)
${MODULES_OPTIONAL_USE:+)}"
DEPEND="${RDEPEND}
- ${MODULES_OPTIONAL_USE}${MODULES_OPTIONAL_USE:+? (}
+ ${MODULES_OPTIONAL_USE}${MODULES_OPTIONAL_USE:+? (}
kernel_linux? ( virtual/linux-sources virtual/libelf )
${MODULES_OPTIONAL_USE:+)}"
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 28/61] mate-desktop.org.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (25 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 27/61] linux-mod.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 29/61] mate.eclass: " Ulrich Müller
` (32 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/mate-desktop.org.eclass | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/eclass/mate-desktop.org.eclass b/eclass/mate-desktop.org.eclass
index 875e4615773c..0dd77aa19a3e 100644
--- a/eclass/mate-desktop.org.eclass
+++ b/eclass/mate-desktop.org.eclass
@@ -29,25 +29,25 @@ fi
# @DESCRIPTION:
# All projects hosted on mate-desktop.org provide tarballs as tar.xz.
# Undefined in live ebuilds.
-[[ ${PV} != 9999 ]] && : ${MATE_TARBALL_SUFFIX:="xz"}
+[[ ${PV} != 9999 ]] && : "${MATE_TARBALL_SUFFIX:="xz"}"
# @ECLASS_VARIABLE: MATE_DESKTOP_ORG_PN
# @DESCRIPTION:
# Name of the package as hosted on mate-desktop.org.
# Leave unset if package name matches PN.
-: ${MATE_DESKTOP_ORG_PN:=${PN}}
+: "${MATE_DESKTOP_ORG_PN:=${PN}}"
# @ECLASS_VARIABLE: MATE_DESKTOP_ORG_PV
# @DESCRIPTION:
# Package version string as listed on mate-desktop.org.
# Leave unset if package version string matches PV.
-: ${MATE_DESKTOP_ORG_PV:=${PV}}
+: "${MATE_DESKTOP_ORG_PV:=${PV}}"
# @ECLASS_VARIABLE: MATE_BRANCH
# @DESCRIPTION:
# Major and minor numbers of the version number, unless live.
# If live ebuild, will be set to '9999'.
-: ${MATE_BRANCH:=$(ver_cut 1-2)}
+: "${MATE_BRANCH:=$(ver_cut 1-2)}"
# Set SRC_URI or EGIT_REPO_URI based on whether live
if [[ ${PV} == 9999 ]]; then
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 29/61] mate.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (26 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 28/61] mate-desktop.org.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 30/61] mercurial.eclass: " Ulrich Müller
` (31 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/mate.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/mate.eclass b/eclass/mate.eclass
index 388cdf2f827d..ad988f5a145a 100644
--- a/eclass/mate.eclass
+++ b/eclass/mate.eclass
@@ -63,7 +63,7 @@ mate_py_cond_func_wrap() {
# - true: will always run eautoreconf
# - false: will default to automatic detect
# - If it is not set, it will default to false
-: ${MATE_FORCE_AUTORECONF:="false"}
+: "${MATE_FORCE_AUTORECONF:="false"}"
# @FUNCTION: ematedocize
# @DESCRIPTION:
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 30/61] mercurial.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (27 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 29/61] mate.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 31/61] meson.eclass: " Ulrich Müller
` (30 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/mercurial.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/mercurial.eclass b/eclass/mercurial.eclass
index 776ed2d9a1f0..27fb525bcbd6 100644
--- a/eclass/mercurial.eclass
+++ b/eclass/mercurial.eclass
@@ -45,7 +45,7 @@ BDEPEND="dev-vcs/mercurial"
#
# EHG_REVISION is passed as a value for --updaterev parameter, so it can be more
# than just a revision, please consult `hg help revisions' for more details.
-: ${EHG_REVISION:="default"}
+: "${EHG_REVISION:="default"}"
# @ECLASS_VARIABLE: EHG_STORE_DIR
# @USER_VARIABLE
@@ -70,7 +70,7 @@ BDEPEND="dev-vcs/mercurial"
# @ECLASS_VARIABLE: EHG_QUIET
# @DESCRIPTION:
# Suppress some extra noise from mercurial, set it to 'ON' to be quiet.
-: ${EHG_QUIET:="OFF"}
+: "${EHG_QUIET:="OFF"}"
[[ "${EHG_QUIET}" == "ON" ]] && EHG_QUIET_CMD_OPT="--quiet"
# @ECLASS_VARIABLE: EHG_CONFIG
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 31/61] meson.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (28 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 30/61] mercurial.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 32/61] mozextension.eclass: " Ulrich Müller
` (29 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/meson.eclass | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index 881e24700053..4dfa08ba5553 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -58,7 +58,7 @@ BDEPEND=">=dev-util/meson-0.62.2
# @ECLASS_VARIABLE: EMESON_BUILDTYPE
# @DESCRIPTION:
# The buildtype value to pass to meson setup.
-: ${EMESON_BUILDTYPE=plain}
+: "${EMESON_BUILDTYPE=plain}"
# @ECLASS_VARIABLE: EMESON_SOURCE
# @DEFAULT_UNSET
@@ -289,21 +289,21 @@ meson_src_configure() {
local BUILD_PKG_CONFIG_PATH=${BUILD_PKG_CONFIG_PATH}
if tc-is-cross-compiler; then
- : ${BUILD_CFLAGS:=-O1 -pipe}
- : ${BUILD_CXXFLAGS:=-O1 -pipe}
- : ${BUILD_FCFLAGS:=-O1 -pipe}
- : ${BUILD_OBJCFLAGS:=-O1 -pipe}
- : ${BUILD_OBJCXXFLAGS:=-O1 -pipe}
+ : "${BUILD_CFLAGS:=-O1 -pipe}"
+ : "${BUILD_CXXFLAGS:=-O1 -pipe}"
+ : "${BUILD_FCFLAGS:=-O1 -pipe}"
+ : "${BUILD_OBJCFLAGS:=-O1 -pipe}"
+ : "${BUILD_OBJCXXFLAGS:=-O1 -pipe}"
else
- : ${BUILD_CFLAGS:=${CFLAGS}}
- : ${BUILD_CPPFLAGS:=${CPPFLAGS}}
- : ${BUILD_CXXFLAGS:=${CXXFLAGS}}
- : ${BUILD_FCFLAGS:=${FCFLAGS}}
- : ${BUILD_LDFLAGS:=${LDFLAGS}}
- : ${BUILD_OBJCFLAGS:=${OBJCFLAGS}}
- : ${BUILD_OBJCXXFLAGS:=${OBJCXXFLAGS}}
- : ${BUILD_PKG_CONFIG_LIBDIR:=${PKG_CONFIG_LIBDIR}}
- : ${BUILD_PKG_CONFIG_PATH:=${PKG_CONFIG_PATH}}
+ : "${BUILD_CFLAGS:=${CFLAGS}}"
+ : "${BUILD_CPPFLAGS:=${CPPFLAGS}}"
+ : "${BUILD_CXXFLAGS:=${CXXFLAGS}}"
+ : "${BUILD_FCFLAGS:=${FCFLAGS}}"
+ : "${BUILD_LDFLAGS:=${LDFLAGS}}"
+ : "${BUILD_OBJCFLAGS:=${OBJCFLAGS}}"
+ : "${BUILD_OBJCXXFLAGS:=${OBJCXXFLAGS}}"
+ : "${BUILD_PKG_CONFIG_LIBDIR:=${PKG_CONFIG_LIBDIR}}"
+ : "${BUILD_PKG_CONFIG_PATH:=${PKG_CONFIG_PATH}}"
fi
local mesonargs=(
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 32/61] mozextension.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (29 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 31/61] meson.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 33/61] mozlinguas-v2.eclass: " Ulrich Müller
` (28 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/mozextension.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/mozextension.eclass b/eclass/mozextension.eclass
index 692aa816d8ed..52fe26280e6e 100644
--- a/eclass/mozextension.eclass
+++ b/eclass/mozextension.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: mozextension.eclass
@@ -21,7 +21,7 @@ _MOZEXTENSION_ECLASS=1
# to be overridden from the default app-global extensions path.
# Default is empty, which installs to predetermined hard-coded
# paths specified in the eclass.
-: ${MOZEXTENSION_TARGET:=""}
+: "${MOZEXTENSION_TARGET:=""}"
BDEPEND="app-arch/unzip"
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 33/61] mozlinguas-v2.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (30 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 32/61] mozextension.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 34/61] multilib.eclass: " Ulrich Müller
` (27 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/mozlinguas-v2.eclass | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/eclass/mozlinguas-v2.eclass b/eclass/mozlinguas-v2.eclass
index 063430e1cb74..81e00275a8f6 100644
--- a/eclass/mozlinguas-v2.eclass
+++ b/eclass/mozlinguas-v2.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: mozlinguas-v2.eclass
@@ -30,59 +30,59 @@ inherit mozextension
# Array containing the list of language pack xpis available for
# this release. The list can be updated with scripts/get_langs.sh from the
# mozilla overlay.
-: ${MOZ_LANGS:=()}
+: "${MOZ_LANGS:=()}"
# @ECLASS_VARIABLE: MOZ_PV
# @DEFAULT_UNSET
# @DESCRIPTION:
# Ebuild package version converted to equivalent upstream version.
# Defaults to ${PV}, and should be overridden for alphas, betas, and RCs
-: ${MOZ_PV:="${PV}"}
+: "${MOZ_PV:="${PV}"}"
# @ECLASS_VARIABLE: MOZ_PN
# @DEFAULT_UNSET
# @DESCRIPTION:
# Ebuild package name converted to equivalent upstream name.
# Defaults to ${PN}, and should be overridden for binary ebuilds.
-: ${MOZ_PN:="${PN}"}
+: "${MOZ_PN:="${PN}"}"
# @ECLASS_VARIABLE: MOZ_P
# @DEFAULT_UNSET
# @DESCRIPTION:
# Ebuild package name + version converted to upstream equivalent.
# Defaults to ${MOZ_PN}-${MOZ_PV}
-: ${MOZ_P:="${MOZ_PN}-${MOZ_PV}"}
+: "${MOZ_P:="${MOZ_PN}-${MOZ_PV}"}"
# @ECLASS_VARIABLE: MOZ_FTP_URI
# @DEFAULT_UNSET
# @DESCRIPTION:
# The ftp URI prefix for the release tarballs and language packs.
-: ${MOZ_FTP_URI:=""}
+: "${MOZ_FTP_URI:=""}"
# @ECLASS_VARIABLE: MOZ_HTTP_URI
# @PRE_INHERIT
# @DESCRIPTION:
# The http URI prefix for the release tarballs and language packs.
-: ${MOZ_HTTP_URI:=""}
+: "${MOZ_HTTP_URI:=""}"
# @ECLASS_VARIABLE: MOZ_LANGPACK_HTTP_URI
# @PRE_INHERIT
# @DESCRIPTION:
# An alternative http URI if it differs from official mozilla URI.
# Defaults to whatever MOZ_HTTP_URI was set to.
-: ${MOZ_LANGPACK_HTTP_URI:=${MOZ_HTTP_URI}}
+: "${MOZ_LANGPACK_HTTP_URI:=${MOZ_HTTP_URI}}"
# @ECLASS_VARIABLE: MOZ_LANGPACK_PREFIX
# @DESCRIPTION:
# The relative path till the lang code in the langpack file URI.
# Defaults to ${MOZ_PV}/linux-i686/xpi/
-: ${MOZ_LANGPACK_PREFIX:="${MOZ_PV}/linux-i686/xpi/"}
+: "${MOZ_LANGPACK_PREFIX:="${MOZ_PV}/linux-i686/xpi/"}"
# @ECLASS_VARIABLE: MOZ_LANGPACK_SUFFIX
# @DESCRIPTION:
# The suffix after the lang code in the langpack file URI.
# Defaults to '.xpi'
-: ${MOZ_LANGPACK_SUFFIX:=".xpi"}
+: "${MOZ_LANGPACK_SUFFIX:=".xpi"}"
# @ECLASS_VARIABLE: MOZ_LANGPACK_UNOFFICIAL
# @DESCRIPTION:
@@ -92,7 +92,7 @@ inherit mozextension
# unofficially by others (ie the Gentoo mozilla team). When
# this var is set, the distfile will have a .unofficial.xpi
# suffix.
-: ${MOZ_LANGPACK_UNOFFICIAL:=""}
+: "${MOZ_LANGPACK_UNOFFICIAL:=""}"
# @ECLASS_VARIABLE: MOZ_GENERATE_LANGPACKS
# @PRE_INHERIT
@@ -103,13 +103,13 @@ inherit mozextension
# being downloaded and installed from upstream pre-built
# extensions. Primarily it supports pre-release builds.
# Defaults to empty.
-: ${MOZ_GENERATE_LANGPACKS:=""}
+: "${MOZ_GENERATE_LANGPACKS:=""}"
# @ECLASS_VARIABLE: MOZ_L10N_SOURCEDIR
# @DESCRIPTION:
# The path that l10n sources can be found at, once unpacked.
# Defaults to ${WORKDIR}/l10n-sources
-: ${MOZ_L10N_SOURCEDIR:="${WORKDIR}/l10n-sources"}
+: "${MOZ_L10N_SOURCEDIR:="${WORKDIR}/l10n-sources"}"
# @ECLASS_VARIABLE: MOZ_L10N_URI_PREFIX
# @PRE_INHERIT
@@ -120,21 +120,21 @@ inherit mozextension
# SRC_URI when MOZ_GENERATE_LANGPACKS is set. If empty, nothing will
# be added to SRC_URI.
# Defaults to empty.
-: ${MOZ_L10N_URI_PREFIX:=""}
+: "${MOZ_L10N_URI_PREFIX:=""}"
# @ECLASS_VARIABLE: MOZ_L10N_URI_SUFFIX
# @DEFAULT_UNSET
# @DESCRIPTION:
# The suffix of l10n source distfiles.
# Defaults to '.tar.xz'
-: ${MOZ_L10N_URI_SUFFIX:=".tar.xz"}
+: "${MOZ_L10N_URI_SUFFIX:=".tar.xz"}"
# @ECLASS_VARIABLE: MOZ_FORCE_UPSTREAM_L10N
# @DEFAULT_UNSET
# @DESCRIPTION:
# Set this to use upstream langpaks even if the package normally
# shouldn't (ie it is an alpha or beta package)
-: ${MOZ_FORCE_UPSTREAM_L10N:=""}
+: "${MOZ_FORCE_UPSTREAM_L10N:=""}"
# @ECLASS_VARIABLE: MOZ_TOO_REGIONALIZED_FOR_L10N
# @INTERNAL
@@ -146,7 +146,7 @@ MOZ_TOO_REGIONALIZED_FOR_L10N=( fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO nn-NO pa-IN
# @DESCRIPTION:
# Install langpacks as .xpi file instead of unpacked directory.
# Leave unset to install unpacked
-: ${MOZ_INSTALL_L10N_XPIFILE:=""}
+: "${MOZ_INSTALL_L10N_XPIFILE:=""}"
# Add l10n_* to IUSE according to available language packs
# No language packs for alphas and betas
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 34/61] multilib.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (31 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 33/61] mozlinguas-v2.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 35/61] ninja-utils.eclass: " Ulrich Müller
` (26 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/multilib.eclass | 50 +++++++++++++++++++++---------------------
1 file changed, 25 insertions(+), 25 deletions(-)
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass
index e3c0d78a6e43..7769cb7c7c89 100644
--- a/eclass/multilib.eclass
+++ b/eclass/multilib.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: multilib.eclass
@@ -288,8 +288,8 @@ multilib_env() {
# - https://bugs.gentoo.org/675954
# - https://gcc.gnu.org/PR90077
# - https://github.com/gentoo/musl/issues/245
- : ${MULTILIB_ABIS=default}
- : ${DEFAULT_ABI=default}
+ : "${MULTILIB_ABIS=default}"
+ : "${DEFAULT_ABI=default}"
export MULTILIB_ABIS DEFAULT_ABI
return
fi
@@ -311,8 +311,8 @@ multilib_env() {
export CTARGET_arm64=${CHOST_arm64}
export LIBDIR_arm64="lib64"
- : ${MULTILIB_ABIS=arm64}
- : ${DEFAULT_ABI=arm64}
+ : "${MULTILIB_ABIS=arm64}"
+ : "${DEFAULT_ABI=arm64}"
;;
x86_64*)
export CFLAGS_x86=${CFLAGS_x86--m32}
@@ -337,12 +337,12 @@ multilib_env() {
case ${CTARGET} in
*-gnux32)
- : ${MULTILIB_ABIS=x32 amd64 x86}
- : ${DEFAULT_ABI=x32}
+ : "${MULTILIB_ABIS=x32 amd64 x86}"
+ : "${DEFAULT_ABI=x32}"
;;
*)
- : ${MULTILIB_ABIS=amd64 x86}
- : ${DEFAULT_ABI=amd64}
+ : "${MULTILIB_ABIS=amd64 x86}"
+ : "${DEFAULT_ABI=amd64}"
;;
esac
;;
@@ -352,8 +352,8 @@ multilib_env() {
export CTARGET_lp64d=${CTARGET}
export LIBDIR_lp64d=${LIBDIR_lp64d-lib64}
- : ${MULTILIB_ABIS=lp64d}
- : ${DEFAULT_ABI=lp64d}
+ : "${MULTILIB_ABIS=lp64d}"
+ : "${DEFAULT_ABI=lp64d}"
;;
mips64*|mipsisa64*)
export CFLAGS_o32=${CFLAGS_o32--mabi=32}
@@ -372,8 +372,8 @@ multilib_env() {
export CTARGET_n64=${CHOST_n64}
export LIBDIR_n64="lib64"
- : ${MULTILIB_ABIS=n64 n32 o32}
- : ${DEFAULT_ABI=n32}
+ : "${MULTILIB_ABIS=n64 n32 o32}"
+ : "${DEFAULT_ABI=n32}"
;;
powerpc64*)
export CFLAGS_ppc=${CFLAGS_ppc--m32}
@@ -386,12 +386,12 @@ multilib_env() {
export CTARGET_ppc64=${CHOST_ppc64}
export LIBDIR_ppc64="lib64"
- : ${MULTILIB_ABIS=ppc64 ppc}
- : ${DEFAULT_ABI=ppc64}
+ : "${MULTILIB_ABIS=ppc64 ppc}"
+ : "${DEFAULT_ABI=ppc64}"
;;
riscv64*)
- : ${MULTILIB_ABIS=lp64d lp64 ilp32d ilp32}
- : ${DEFAULT_ABI=lp64d}
+ : "${MULTILIB_ABIS=lp64d lp64 ilp32d ilp32}"
+ : "${DEFAULT_ABI=lp64d}"
# the default abi is set to the 1-level libdir default
@@ -422,8 +422,8 @@ multilib_env() {
export LIBDIR_ilp32=${LIBDIR_ilp32-lib32/ilp32}
;;
riscv32*)
- : ${MULTILIB_ABIS=ilp32d ilp32}
- : ${DEFAULT_ABI=ilp32d}
+ : "${MULTILIB_ABIS=ilp32d ilp32}"
+ : "${DEFAULT_ABI=ilp32d}"
# the default abi is set to the 1-level libdir default
@@ -454,8 +454,8 @@ multilib_env() {
export CTARGET_s390x=${CHOST_s390x}
export LIBDIR_s390x="lib64"
- : ${MULTILIB_ABIS=s390x s390}
- : ${DEFAULT_ABI=s390x}
+ : "${MULTILIB_ABIS=s390x s390}"
+ : "${DEFAULT_ABI=s390x}"
;;
sparc64*)
export CFLAGS_sparc32=${CFLAGS_sparc32--m32}
@@ -468,12 +468,12 @@ multilib_env() {
export CTARGET_sparc64=${CHOST_sparc64}
export LIBDIR_sparc64="lib64"
- : ${MULTILIB_ABIS=sparc64 sparc32}
- : ${DEFAULT_ABI=sparc64}
+ : "${MULTILIB_ABIS=sparc64 sparc32}"
+ : "${DEFAULT_ABI=sparc64}"
;;
*)
- : ${MULTILIB_ABIS=default}
- : ${DEFAULT_ABI=default}
+ : "${MULTILIB_ABIS=default}"
+ : "${DEFAULT_ABI=default}"
;;
esac
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 35/61] ninja-utils.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (32 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 34/61] multilib.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 36/61] office-ext-r1.eclass: " Ulrich Müller
` (25 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/ninja-utils.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/ninja-utils.eclass b/eclass/ninja-utils.eclass
index 4577e26fa57c..8969863959e3 100644
--- a/eclass/ninja-utils.eclass
+++ b/eclass/ninja-utils.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: ninja-utils.eclass
@@ -34,7 +34,7 @@ _NINJA_UTILS_ECLASS=1
# but other values can be set where NINJA_DEPEND will then be set
# to a blank variable.
# The default is set to "ninja".
-: ${NINJA:=ninja}
+: "${NINJA:=ninja}"
# @ECLASS_VARIABLE: NINJA_DEPEND
# @OUTPUT_VARIABLE
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 36/61] office-ext-r1.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (33 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 35/61] ninja-utils.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 37/61] opam.eclass: " Ulrich Müller
` (24 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/office-ext-r1.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/office-ext-r1.eclass b/eclass/office-ext-r1.eclass
index abc0cabaa310..716ae001be1d 100644
--- a/eclass/office-ext-r1.eclass
+++ b/eclass/office-ext-r1.eclass
@@ -68,7 +68,7 @@ fi
# @CODE
# OFFICE_EXTENSIONS_LOCATION="${S}/unpacked/"
# @CODE
-: ${OFFICE_EXTENSIONS_LOCATION:=${DISTDIR}}
+: "${OFFICE_EXTENSIONS_LOCATION:=${DISTDIR}}"
IUSE=""
RDEPEND=""
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 37/61] opam.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (34 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 36/61] office-ext-r1.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 38/61] php-ext-source-r3.eclass: " Ulrich Müller
` (23 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/opam.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/opam.eclass b/eclass/opam.eclass
index 197c3256f015..49e3c426b062 100644
--- a/eclass/opam.eclass
+++ b/eclass/opam.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: opam.eclass
@@ -25,7 +25,7 @@ QA_FLAGS_IGNORED='.*'
# @PRE_INHERIT
# @DESCRIPTION:
# Override dependency for OPAM_INSTALLER
-: ${OPAM_INSTALLER_DEP:="dev-ml/opam-installer"}
+: "${OPAM_INSTALLER_DEP:="dev-ml/opam-installer"}"
RDEPEND=">=dev-lang/ocaml-4:="
BDEPEND="${OPAM_INSTALLER_DEP} dev-lang/ocaml"
@@ -34,7 +34,7 @@ DEPEND="${RDEPEND}"
# @ECLASS_VARIABLE: OPAM_INSTALLER
# @DESCRIPTION:
# Eclass can use different opam-installer binary than the one provided in by system.
-: ${OPAM_INSTALLER:=opam-installer}
+: "${OPAM_INSTALLER:=opam-installer}"
# @FUNCTION: opam-install
# @USAGE: <list of packages>
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 38/61] php-ext-source-r3.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (35 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 37/61] opam.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 39/61] php-pear-r2.eclass: " Ulrich Müller
` (22 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/php-ext-source-r3.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/php-ext-source-r3.eclass b/eclass/php-ext-source-r3.eclass
index 7179ab756f6b..e463d3282e83 100644
--- a/eclass/php-ext-source-r3.eclass
+++ b/eclass/php-ext-source-r3.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: php-ext-source-r3.eclass
@@ -81,7 +81,7 @@ esac
# @CODE
# PHP_INI_NAME="40-foo"
# @CODE
-: ${PHP_INI_NAME:=${PHP_EXT_NAME}}
+: "${PHP_INI_NAME:=${PHP_EXT_NAME}}"
# @ECLASS_VARIABLE: PHP_EXT_NEEDED_USE
# @PRE_INHERIT
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 39/61] php-pear-r2.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (36 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 38/61] php-ext-source-r3.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 40/61] plasma-mobile.kde.org.eclass: " Ulrich Müller
` (21 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/php-pear-r2.eclass | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/eclass/php-pear-r2.eclass b/eclass/php-pear-r2.eclass
index 29bcf1e6fce8..9882c7dcc700 100644
--- a/eclass/php-pear-r2.eclass
+++ b/eclass/php-pear-r2.eclass
@@ -29,12 +29,12 @@ RDEPEND=">=dev-php/pear-1.8.1"
# @DESCRIPTION:
# Set this if the PEAR package name differs from ${PN/PEAR-/}
# (generally shouldn't be the case).
-: ${PHP_PEAR_PKG_NAME:=${PN/PEAR-/}}
+: "${PHP_PEAR_PKG_NAME:=${PN/PEAR-/}}"
# @ECLASS_VARIABLE: PEAR_PV
# @DESCRIPTION:
# Set in ebuild if the ${PV} breaks SRC_URI for alpha/beta/rc versions
-: ${PEAR_PV:=${PV}}
+: "${PEAR_PV:=${PV}}"
# @ECLASS_VARIABLE: PEAR-P
# @INTERNAL
@@ -46,7 +46,7 @@ PEAR_P="${PHP_PEAR_PKG_NAME}-${PEAR_PV}"
# @DESCRIPTION:
# Set in ebuild to the domain name of the channel if not pear.php.net
# When the domain is not pear.php.net, setting the SRC_URI is required
-: ${PHP_PEAR_DOMAIN:=pear.php.net}
+: "${PHP_PEAR_DOMAIN:=pear.php.net}"
# @ECLASS_VARIABLE: PHP_PEAR_CHANNEL
# @DEFAULT_UNSET
@@ -60,7 +60,7 @@ if [[ "${PHP_PEAR_DOMAIN}" == "pear.php.net" ]] ; then
SRC_URI="https://pear.php.net/get/${PEAR_P}.tgz"
fi
-: ${HOMEPAGE:=https://${PHP_PEAR_DOMAIN}/package/${PHP_PEAR_PKG_NAME}}
+: "${HOMEPAGE:=https://${PHP_PEAR_DOMAIN}/package/${PHP_PEAR_PKG_NAME}}"
S="${WORKDIR}/${PEAR_P}"
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 40/61] plasma-mobile.kde.org.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (37 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 39/61] php-pear-r2.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 41/61] pypi.eclass: " Ulrich Müller
` (20 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/plasma-mobile.kde.org.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/plasma-mobile.kde.org.eclass b/eclass/plasma-mobile.kde.org.eclass
index 1e2c5b6eb4fe..9fd54100d24e 100644
--- a/eclass/plasma-mobile.kde.org.eclass
+++ b/eclass/plasma-mobile.kde.org.eclass
@@ -29,7 +29,7 @@ _PLASMA_MOBILE_KDE_ORG_ECLASS=1
# @PRE_INHERIT
# @DESCRIPTION:
# For proper description see kde.org.eclass manpage.
-: ${KDE_ORG_CATEGORY:=plasma-mobile}
+: "${KDE_ORG_CATEGORY:=plasma-mobile}"
inherit kde.org
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 41/61] pypi.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (38 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 40/61] plasma-mobile.kde.org.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 42/61] qt5-build.eclass: " Ulrich Müller
` (19 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/pypi.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/pypi.eclass b/eclass/pypi.eclass
index 53505de8e67e..d869a8c17a6c 100644
--- a/eclass/pypi.eclass
+++ b/eclass/pypi.eclass
@@ -61,7 +61,7 @@ _PYPI_ECLASS=1
# @CODE
# PYPI_PN=${PN/-/.}
# @CODE
-: ${PYPI_PN:=${PN}}
+: "${PYPI_PN:=${PN}}"
# @FUNCTION: pypi_normalize_name
# @USAGE: <name>
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 42/61] qt5-build.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (39 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 41/61] pypi.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 43/61] qt6-build.eclass: " Ulrich Müller
` (18 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/qt5-build.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index ae74c2e0540b..25499b0c2e07 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -51,7 +51,7 @@ readonly QT5_BUILD_TYPE
# @DESCRIPTION:
# The upstream name of the module this package belongs to. Used for
# SRC_URI and EGIT_REPO_URI. Must be set before inheriting the eclass.
-: ${QT5_MODULE:=${PN}}
+: "${QT5_MODULE:=${PN}}"
# @ECLASS_VARIABLE: QT5_PV
# @DESCRIPTION:
@@ -100,7 +100,7 @@ readonly QT5_PV
# For proper description see virtualx.eclass man page.
# Here we redefine default value to be manual, if your package needs virtualx
# for tests you should proceed with setting VIRTUALX_REQUIRED=test.
-: ${VIRTUALX_REQUIRED:=manual}
+: "${VIRTUALX_REQUIRED:=manual}"
inherit estack flag-o-matic toolchain-funcs virtualx
@@ -140,7 +140,7 @@ fi
# @OUTPUT_VARIABLE
# @DESCRIPTION:
# Build directory for out-of-source builds.
-: ${QT5_BUILD_DIR:=${S}_build}
+: "${QT5_BUILD_DIR:=${S}_build}"
LICENSE="|| ( GPL-2 GPL-3 LGPL-3 ) FDL-1.3"
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 43/61] qt6-build.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (40 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 42/61] qt5-build.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 44/61] readme.gentoo-r1.eclass: " Ulrich Müller
` (17 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/qt6-build.eclass | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/eclass/qt6-build.eclass b/eclass/qt6-build.eclass
index 79c06f341ede..91f076ad1948 100644
--- a/eclass/qt6-build.eclass
+++ b/eclass/qt6-build.eclass
@@ -26,14 +26,14 @@ _QT6_BUILD_ECLASS=1
# @DESCRIPTION:
# The upstream name of the module this package belongs to. Used for
# SRC_URI and EGIT_REPO_URI. Must be set before inheriting the eclass.
-: ${QT6_MODULE:=${PN}}
+: "${QT6_MODULE:=${PN}}"
# @ECLASS_VARIABLE: VIRTUALX_REQUIRED
# @DESCRIPTION:
# For proper description see virtualx.eclass man page.
# Here we redefine default value to be manual, if your package needs virtualx
# for tests you should proceed with setting VIRTUALX_REQUIRED=test.
-: ${VIRTUALX_REQUIRED:=manual}
+: "${VIRTUALX_REQUIRED:=manual}"
inherit cmake virtualx
@@ -82,7 +82,7 @@ EGIT_REPO_URI=(
# @OUTPUT_VARIABLE
# @DESCRIPTION:
# Build directory for out-of-source builds.
-: ${QT6_BUILD_DIR:=${S}_build}
+: "${QT6_BUILD_DIR:=${S}_build}"
IUSE="debug test"
@@ -142,9 +142,9 @@ qt_feature() {
# @DESCRIPTION:
# Symlink a given binary from QT6_BINDIR to QT6_PREFIX/bin, with optional suffix
qt6_symlink_binary_to_path() {
- [[ $# -ge 1 ]] || die "${FUNCNAME}() requires at least one argument"
+ [[ $# -ge 1 ]] || die "${FUNCNAME}() requires at least one argument"
- dosym -r "${QT6_BINDIR}"/${1} /usr/bin/${1}${2}
+ dosym -r "${QT6_BINDIR}"/${1} /usr/bin/${1}${2}
}
###### Internal functions ######
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 44/61] readme.gentoo-r1.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (41 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 43/61] qt6-build.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 45/61] ruby-ng-gnome2.eclass: " Ulrich Müller
` (16 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/readme.gentoo-r1.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/readme.gentoo-r1.eclass b/eclass/readme.gentoo-r1.eclass
index baf4b57bef76..202ba31f4f70 100644
--- a/eclass/readme.gentoo-r1.eclass
+++ b/eclass/readme.gentoo-r1.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: readme.gentoo-r1.eclass
@@ -45,7 +45,7 @@ esac
# @ECLASS_VARIABLE: README_GENTOO_SUFFIX
# @DESCRIPTION:
# If you want to specify a suffix for README.gentoo file please export it.
-: ${README_GENTOO_SUFFIX:=""}
+: "${README_GENTOO_SUFFIX:=""}"
# @FUNCTION: readme.gentoo_create_doc
# @DESCRIPTION:
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 45/61] ruby-ng-gnome2.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (42 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 44/61] readme.gentoo-r1.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 46/61] rust-toolchain.eclass: " Ulrich Müller
` (15 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/ruby-ng-gnome2.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 7abf84f6034b..e6636811aacc 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -30,7 +30,7 @@ RUBY_FAKEGEM_TASK_DOC=""
# @DESCRIPTION:
# If set to 'yes', the test is run with virtx. Set before inheriting this
# eclass.
-: ${RUBY_GNOME2_NEED_VIRTX:="no"}
+: "${RUBY_GNOME2_NEED_VIRTX:="no"}"
inherit ruby-fakegem
if [[ ${RUBY_GNOME2_NEED_VIRTX} == yes ]]; then
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 46/61] rust-toolchain.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (43 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 45/61] ruby-ng-gnome2.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 47/61] selinux-policy-2.eclass: " Ulrich Müller
` (14 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/rust-toolchain.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/rust-toolchain.eclass b/eclass/rust-toolchain.eclass
index 0bbdf46df1f4..df48d3fae264 100644
--- a/eclass/rust-toolchain.eclass
+++ b/eclass/rust-toolchain.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: rust-toolchain.eclass
@@ -23,7 +23,7 @@ inherit multilib-build
# This variable specifies the base URL used by the
# rust_arch_uri and rust_all_arch_uris functions when
# generating the URI output list.
-: ${RUST_TOOLCHAIN_BASEURL:=https://static.rust-lang.org/dist/}
+: "${RUST_TOOLCHAIN_BASEURL:=https://static.rust-lang.org/dist/}"
# @FUNCTION: rust_abi
# @USAGE: [CHOST-value]
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 47/61] selinux-policy-2.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (44 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 46/61] rust-toolchain.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 48/61] ssl-cert.eclass: " Ulrich Müller
` (13 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/selinux-policy-2.eclass | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/eclass/selinux-policy-2.eclass b/eclass/selinux-policy-2.eclass
index 84e95678a67b..7d4f438c65f5 100644
--- a/eclass/selinux-policy-2.eclass
+++ b/eclass/selinux-policy-2.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Eclass for installing SELinux policy, and optionally
@@ -30,21 +30,21 @@ _SELINUX_POLICY_2_ECLASS=1
# @DESCRIPTION:
# This variable contains the (upstream) module name for the SELinux module.
# This name is only the module name, not the category!
-: ${MODS:="_illegal"}
+: "${MODS:="_illegal"}"
# @ECLASS_VARIABLE: BASEPOL
# @DESCRIPTION:
# This variable contains the version string of the selinux-base-policy package
# that this module build depends on. It is used to patch with the appropriate
# patch bundle(s) that are part of selinux-base-policy.
-: ${BASEPOL:=${PVR}}
+: "${BASEPOL:=${PVR}}"
# @ECLASS_VARIABLE: POLICY_PATCH
# @DESCRIPTION:
# This variable contains the additional patch(es) that need to be applied on top
# of the patchset already contained within the BASEPOL variable. The variable
# can be both a simple string (space-separated) or a bash array.
-: ${POLICY_PATCH:=""}
+: "${POLICY_PATCH:=""}"
# @ECLASS_VARIABLE: POLICY_FILES
# @DESCRIPTION:
@@ -53,7 +53,7 @@ _SELINUX_POLICY_2_ECLASS=1
# Generally, users would want to include at least a .te and .fc file, but .if
# files are supported as well. The variable can be both a simple string
# (space-separated) or a bash array.
-: ${POLICY_FILES:=""}
+: "${POLICY_FILES:=""}"
# @ECLASS_VARIABLE: POLICY_TYPES
# @DESCRIPTION:
@@ -62,7 +62,7 @@ _SELINUX_POLICY_2_ECLASS=1
# This variable is the same POLICY_TYPES variable that we tell SELinux
# users to set in make.conf. Therefore, it is not the module that should
# override it, but the user.
-: ${POLICY_TYPES:="targeted strict mcs mls"}
+: "${POLICY_TYPES:="targeted strict mcs mls"}"
# @ECLASS_VARIABLE: SELINUX_GIT_REPO
# @DESCRIPTION:
@@ -71,7 +71,7 @@ _SELINUX_POLICY_2_ECLASS=1
# using a single variable, rather than having to set the packagename_LIVE_REPO
# variable for each and every SELinux policy module package they want to install.
# The default value is Gentoo's hardened-refpolicy repository.
-: ${SELINUX_GIT_REPO:="https://anongit.gentoo.org/git/proj/hardened-refpolicy.git"};
+: "${SELINUX_GIT_REPO:="https://anongit.gentoo.org/git/proj/hardened-refpolicy.git"}"
# @ECLASS_VARIABLE: SELINUX_GIT_BRANCH
# @DESCRIPTION:
@@ -80,7 +80,7 @@ _SELINUX_POLICY_2_ECLASS=1
# SELinux policy packages, rather than having to override them one by one with the
# packagename_LIVE_BRANCH variable.
# The default value is the 'master' branch.
-: ${SELINUX_GIT_BRANCH:="master"};
+: "${SELINUX_GIT_BRANCH:="master"}"
case ${BASEPOL} in
9999) inherit git-r3
@@ -166,7 +166,7 @@ selinux-policy-2_src_prepare() {
# Copy additional files to the 3rd_party/ location
if [[ "$(declare -p POLICY_FILES 2>/dev/null 2>&1)" == "declare -a"* ]] ||
[[ -n ${POLICY_FILES} ]]; then
- add_interfaces=1;
+ add_interfaces=1;
cd "${S}/refpolicy/policy/modules"
for POLFILE in ${POLICY_FILES[@]};
do
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 48/61] ssl-cert.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (45 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 47/61] selinux-policy-2.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 49/61] stardict.eclass: " Ulrich Müller
` (12 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/ssl-cert.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass
index 83fbcf6143d1..0453f0fbf665 100644
--- a/eclass/ssl-cert.eclass
+++ b/eclass/ssl-cert.eclass
@@ -26,19 +26,19 @@ _SSL_CERT_ECLASS=1
# @PRE_INHERIT
# @DESCRIPTION:
# Set to non zero if ssl-cert is mandatory for ebuild.
-: ${SSL_CERT_MANDATORY:=0}
+: "${SSL_CERT_MANDATORY:=0}"
# @ECLASS_VARIABLE: SSL_CERT_USE
# @PRE_INHERIT
# @DESCRIPTION:
# Use flag to append dependency to.
-: ${SSL_CERT_USE:=ssl}
+: "${SSL_CERT_USE:=ssl}"
# @ECLASS_VARIABLE: SSL_DEPS_SKIP
# @PRE_INHERIT
# @DESCRIPTION:
# Set to non zero to skip adding to DEPEND and IUSE.
-: ${SSL_DEPS_SKIP:=0}
+: "${SSL_DEPS_SKIP:=0}"
if [[ "${SSL_DEPS_SKIP}" == "0" ]]; then
if [[ "${SSL_CERT_MANDATORY}" == "0" ]]; then
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 49/61] stardict.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (46 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 48/61] ssl-cert.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 50/61] toolchain-funcs.eclass: " Ulrich Müller
` (11 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/stardict.eclass | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/eclass/stardict.eclass b/eclass/stardict.eclass
index 1ca6d10d6d78..080c01f92470 100644
--- a/eclass/stardict.eclass
+++ b/eclass/stardict.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: stardict.eclass
@@ -33,16 +33,16 @@ RESTRICT="strip"
# @DEFAULT_UNSET
# @DESCRIPTION:
# Suffix used for dictionaries.
-: ${DICT_SUFFIX:=${PN#stardict-[[:lower:]]*-}}
+: "${DICT_SUFFIX:=${PN#stardict-[[:lower:]]*-}}"
# @ECLASS_VARIABLE: DICT_P
# @PRE_INHERIT
# @DEFAULT_UNSET
# @DESCRIPTION:
# The filestem used for downloading dictionaries from SourceForge.
-: ${DICT_P:=stardict-${DICT_PREFIX}${DICT_SUFFIX}-${PV}}
+: "${DICT_P:=stardict-${DICT_PREFIX}${DICT_SUFFIX}-${PV}}"
-: ${DESCRIPTION:="Another Stardict Dictionary"}
+: "${DESCRIPTION:="Another Stardict Dictionary"}"
if [[ -n ${FROM_LANG} && -n ${TO_LANG} ]]; then
DESCRIPTION="Stardict Dictionary ${FROM_LANG} to ${TO_LANG}"
fi
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 50/61] toolchain-funcs.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (47 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 49/61] stardict.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 51/61] toolchain.eclass: " Ulrich Müller
` (10 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/toolchain-funcs.eclass | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 805a3b0dfe61..63db0cfa5e0e 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -355,16 +355,16 @@ tc-export_build_env() {
# Some build envs will initialize vars like:
# : ${BUILD_LDFLAGS:-${LDFLAGS}}
# So make sure all variables are non-empty. #526734
- : ${BUILD_CFLAGS:=-O1 -pipe}
- : ${BUILD_CXXFLAGS:=-O1 -pipe}
- : ${BUILD_CPPFLAGS:= }
- : ${BUILD_LDFLAGS:= }
+ : "${BUILD_CFLAGS:=-O1 -pipe}"
+ : "${BUILD_CXXFLAGS:=-O1 -pipe}"
+ : "${BUILD_CPPFLAGS:= }"
+ : "${BUILD_LDFLAGS:= }"
else
# https://bugs.gentoo.org/654424
- : ${BUILD_CFLAGS:=${CFLAGS}}
- : ${BUILD_CXXFLAGS:=${CXXFLAGS}}
- : ${BUILD_CPPFLAGS:=${CPPFLAGS}}
- : ${BUILD_LDFLAGS:=${LDFLAGS}}
+ : "${BUILD_CFLAGS:=${CFLAGS}}"
+ : "${BUILD_CXXFLAGS:=${CXXFLAGS}}"
+ : "${BUILD_CPPFLAGS:=${CPPFLAGS}}"
+ : "${BUILD_LDFLAGS:=${LDFLAGS}}"
fi
export BUILD_{C,CXX,CPP,LD}FLAGS
@@ -654,7 +654,7 @@ tc-has-tls() {
-l) ;;
-*) die "Usage: tc-has-tls [-c|-l] [toolchain prefix]";;
esac
- : ${flags:=-fPIC -shared -Wl,-z,defs}
+ : "${flags:=-fPIC -shared -Wl,-z,defs}"
[[ $1 == -* ]] && shift
$(tc-getCC "$@") ${flags} "${base}.c" -o "${base}" >&/dev/null
local ret=$?
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 51/61] toolchain.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (48 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 50/61] toolchain-funcs.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 52/61] unpacker.eclass: " Ulrich Müller
` (9 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/toolchain.eclass | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 8ffdd9e26f1e..afacbe31389a 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -53,9 +53,9 @@ if [[ ${CTARGET} = ${CHOST} ]] ; then
export CTARGET=${CATEGORY#cross-}
fi
fi
-: ${TARGET_ABI:=${ABI}}
-: ${TARGET_MULTILIB_ABIS:=${MULTILIB_ABIS}}
-: ${TARGET_DEFAULT_ABI:=${DEFAULT_ABI}}
+: "${TARGET_ABI:=${ABI}}"
+: "${TARGET_MULTILIB_ABIS:=${MULTILIB_ABIS}}"
+: "${TARGET_DEFAULT_ABI:=${DEFAULT_ABI}}"
is_crosscompile() {
[[ ${CHOST} != ${CTARGET} ]]
@@ -400,17 +400,17 @@ PDEPEND=">=sys-devel/gcc-config-2.3"
# Used to override compression used for for patchsets.
# Default is xz for EAPI 8+ and bz2 for older EAPIs.
if [[ ${EAPI} == 8 ]] ; then
- : ${TOOLCHAIN_PATCH_SUFFIX:=xz}
+ : "${TOOLCHAIN_PATCH_SUFFIX:=xz}"
else
# Older EAPIs
- : ${TOOLCHAIN_PATCH_SUFFIX:=bz2}
+ : "${TOOLCHAIN_PATCH_SUFFIX:=bz2}"
fi
# @ECLASS_VARIABLE: TOOLCHAIN_SET_S
# @DESCRIPTION:
# Used to override value of S for snapshots and such. Mainly useful
# if needing to set GCC_TARBALL_SRC_URI.
-: ${TOOLCHAIN_SET_S:=yes}
+: "${TOOLCHAIN_SET_S:=yes}"
# Set the source directory depending on whether we're using
# a live git tree, snapshot, or release tarball.
@@ -1305,7 +1305,7 @@ toolchain_src_configure() {
[[ ${arm_arch} == armv7? ]] && arm_arch=${arm_arch/7/7-}
# See if this is a valid --with-arch flag
if (srcdir=${S}/gcc target=${CTARGET} with_arch=${arm_arch};
- . "${srcdir}"/config.gcc) &>/dev/null
+ . "${srcdir}"/config.gcc) &>/dev/null
then
confgcc+=( --with-arch=${arm_arch} )
fi
@@ -1958,7 +1958,7 @@ gcc_do_make() {
LIBPATH="${LIBPATH}" \
BOOT_CFLAGS="${BOOT_CFLAGS}"
popd > /dev/null || die
- fi
+ fi
einfo "Compiling ${PN} (${GCC_MAKE_TARGET})..."
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 52/61] unpacker.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (49 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 51/61] toolchain.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 53/61] vala.eclass: " Ulrich Müller
` (8 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/unpacker.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index 2a0dcf45d76a..a3c388c6b9b7 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -421,7 +421,7 @@ _unpacker_get_decompressor() {
type -P lbzip2 || type -P pbzip2 || type -P bzip2
)}
local bzuncmd=${PORTAGE_BUNZIP2_COMMAND:-${bzcmd} -d}
- : ${UNPACKER_BZ2:=${bzuncmd}}
+ : "${UNPACKER_BZ2:=${bzuncmd}}"
echo "${UNPACKER_BZ2} -c"
;;
*.z|*.gz|*.tgz)
@@ -444,7 +444,7 @@ _unpacker_get_decompressor() {
done
}
- : ${UNPACKER_LZIP:=$(find_lz_unpacker)}
+ : "${UNPACKER_LZIP:=$(find_lz_unpacker)}"
echo "${UNPACKER_LZIP} -dc" ;;
*.zst)
echo "zstd -dc" ;;
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 53/61] vala.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (50 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 52/61] unpacker.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 54/61] verify-sig.eclass: " Ulrich Müller
` (7 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/vala.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/vala.eclass b/eclass/vala.eclass
index 20bf00ebd8bc..11f8e52f92dd 100644
--- a/eclass/vala.eclass
+++ b/eclass/vala.eclass
@@ -167,7 +167,7 @@ vala_setup() {
fi
done
done
- : ${PKG_CONFIG_PATH:="${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig"}
+ : "${PKG_CONFIG_PATH:="${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig"}"
export PKG_CONFIG_PATH="${T}/pkgconfig:${PKG_CONFIG_PATH}"
}
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 54/61] verify-sig.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (51 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 53/61] vala.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 55/61] vim-plugin.eclass: " Ulrich Müller
` (6 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/verify-sig.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass
index 5e757cdd6038..6472e995e827 100644
--- a/eclass/verify-sig.eclass
+++ b/eclass/verify-sig.eclass
@@ -57,7 +57,7 @@ IUSE="verify-sig"
#
# - openpgp -- verify PGP signatures using app-crypt/gnupg (the default)
# - signify -- verify signatures with Ed25519 public key using app-crypt/signify
-: ${VERIFY_SIG_METHOD:=openpgp}
+: "${VERIFY_SIG_METHOD:=openpgp}"
case ${VERIFY_SIG_METHOD} in
openpgp)
@@ -102,7 +102,7 @@ esac
# connection.
#
# Supported for OpenPGP only.
-: ${VERIFY_SIG_OPENPGP_KEY_REFRESH:=no}
+: "${VERIFY_SIG_OPENPGP_KEY_REFRESH:=no}"
# @FUNCTION: verify-sig_verify_detached
# @USAGE: <file> <sig-file> [<key-file>]
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 55/61] vim-plugin.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (52 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 54/61] verify-sig.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 56/61] vim-spell.eclass: " Ulrich Müller
` (5 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/vim-plugin.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass
index 81e1e54f638d..ee4f1b6e0f81 100644
--- a/eclass/vim-plugin.eclass
+++ b/eclass/vim-plugin.eclass
@@ -27,7 +27,7 @@ inherit vim-doc
# @ECLASS_VARIABLE: VIM_PLUGIN_VIM_VERSION
# @DESCRIPTION:
# Minimum Vim version the plugin supports.
-: ${VIM_PLUGIN_VIM_VERSION:=7.3}
+: "${VIM_PLUGIN_VIM_VERSION:=7.3}"
DEPEND="|| ( >=app-editors/vim-${VIM_PLUGIN_VIM_VERSION}
>=app-editors/gvim-${VIM_PLUGIN_VIM_VERSION} )"
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 56/61] vim-spell.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (53 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 55/61] vim-plugin.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 57/61] virtualx.eclass: " Ulrich Müller
` (4 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/vim-spell.eclass | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/eclass/vim-spell.eclass b/eclass/vim-spell.eclass
index 38db4ccda13f..1a241d2ba0d1 100644
--- a/eclass/vim-spell.eclass
+++ b/eclass/vim-spell.eclass
@@ -79,30 +79,30 @@ SLOT="0"
# This variable defines the language for the spell package being
# installed.
# The default value is "English".
-: ${VIM_SPELL_LANGUAGE:="English"}
+: "${VIM_SPELL_LANGUAGE:="English"}"
# @ECLASS_VARIABLE: VIM_SPELL_LOCALE
# @INTERNAL
# @DESCRIPTION:
# This variable defines the locale for the current ebuild.
# The default value is ${PN} stripped of the "vim-spell-" string.
-: ${VIM_SPELL_LOCALE:="${PN/vim-spell-/}"}
+: "${VIM_SPELL_LOCALE:="${PN/vim-spell-/}"}"
# @ECLASS_VARIABLE: VIM_SPELL_DIRECTORY
# @INTERNAL
# @DESCRIPTION:
# This variable defines the path to Vim spell files.
-: ${VIM_SPELL_DIRECTORY:="${EPREFIX}/usr/share/vim/vimfiles/spell/"}
+: "${VIM_SPELL_DIRECTORY:="${EPREFIX}/usr/share/vim/vimfiles/spell/"}"
# @ECLASS_VARIABLE: DESCRIPTION
# @DESCRIPTION:
# This variable defines the DESCRIPTION for Vim spell ebuilds.
-: ${DESCRIPTION:="vim spell files: ${VIM_SPELL_LANGUAGE} (${VIM_SPELL_LOCALE})"}
+: "${DESCRIPTION:="vim spell files: ${VIM_SPELL_LANGUAGE} (${VIM_SPELL_LOCALE})"}"
# @ECLASS_VARIABLE: HOMEPAGE
# @DESCRIPTION:
# This variable defines the HOMEPAGE for Vim spell ebuilds.
-: ${HOMEPAGE:="https://www.vim.org"}
+: "${HOMEPAGE:="https://www.vim.org"}"
# @FUNCTION: vim-spell_src_install
# @DESCRIPTION:
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 57/61] virtualx.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (54 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 56/61] vim-spell.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 58/61] waf-utils.eclass: " Ulrich Müller
` (3 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/virtualx.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass
index 2513f4e16256..e2bfee1dfeaa 100644
--- a/eclass/virtualx.eclass
+++ b/eclass/virtualx.eclass
@@ -26,7 +26,7 @@ _VIRTUALX_ECLASS=1
# Any other value is taken as useflag desired to be in control of
# the dependency (eg. VIRTUALX_REQUIRED="kde" will add the dependency
# into "kde? ( )" and add kde into IUSE.
-: ${VIRTUALX_REQUIRED:=test}
+: "${VIRTUALX_REQUIRED:=test}"
# @ECLASS_VARIABLE: VIRTUALX_DEPEND
# @OUTPUT_VARIABLE
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 58/61] waf-utils.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (55 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 57/61] virtualx.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 59/61] xdg-utils.eclass: " Ulrich Müller
` (2 subsequent siblings)
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/waf-utils.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/waf-utils.eclass b/eclass/waf-utils.eclass
index 1be02bbea3cb..88b822cb335e 100644
--- a/eclass/waf-utils.eclass
+++ b/eclass/waf-utils.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: waf-utils.eclass
@@ -30,7 +30,7 @@ inherit multilib toolchain-funcs multiprocessing
# @DESCRIPTION:
# Set to OFF to disable verbose messages during compilation
# this is _not_ meant to be set in ebuilds
-: ${WAF_VERBOSE:=ON}
+: "${WAF_VERBOSE:=ON}"
# @ECLASS_VARIABLE: WAF_BINARY
# @DESCRIPTION:
@@ -77,7 +77,7 @@ waf-utils_src_configure() {
[[ ${fail} ]] && die "Invalid use of waf-utils.eclass"
- : ${WAF_BINARY:="${S}/waf"}
+ : "${WAF_BINARY:="${S}/waf"}"
local conf_args=()
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 59/61] xdg-utils.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (56 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 58/61] waf-utils.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 60/61] xemacs-packages.eclass: " Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 61/61] xorg-3.eclass: " Ulrich Müller
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/xdg-utils.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass
index 9a58add23d36..34535a129e33 100644
--- a/eclass/xdg-utils.eclass
+++ b/eclass/xdg-utils.eclass
@@ -1,4 +1,4 @@
-# Copyright 2004-2022 Gentoo Authors
+# Copyright 2004-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: xdg-utils.eclass
@@ -26,13 +26,13 @@ esac
# @INTERNAL
# @DESCRIPTION:
# Directory where .desktop files database is stored
-: ${DESKTOP_DATABASE_DIR="/usr/share/applications"}
+: "${DESKTOP_DATABASE_DIR="/usr/share/applications"}"
# @ECLASS_VARIABLE: MIMEINFO_DATABASE_DIR
# @INTERNAL
# @DESCRIPTION:
# Directory where .desktop files database is stored
-: ${MIMEINFO_DATABASE_DIR:="/usr/share/mime"}
+: "${MIMEINFO_DATABASE_DIR:="/usr/share/mime"}"
# @FUNCTION: xdg_environment_reset
# @DESCRIPTION:
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 60/61] xemacs-packages.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (57 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 59/61] xdg-utils.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
2023-03-24 11:17 ` [gentoo-dev] [PATCH 61/61] xorg-3.eclass: " Ulrich Müller
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/xemacs-packages.eclass | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/eclass/xemacs-packages.eclass b/eclass/xemacs-packages.eclass
index 648f5146f47e..ca60e0c3b3b7 100644
--- a/eclass/xemacs-packages.eclass
+++ b/eclass/xemacs-packages.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: xemacs-packages.eclass
@@ -35,13 +35,13 @@ _XEMACS_PACKAGES_ECLASS=1
RDEPEND="app-editors/xemacs"
S="${WORKDIR}"
-: ${HOMEPAGE:="http://xemacs.org/"}
-: ${LICENSE:="GPL-2+"}
+: "${HOMEPAGE:="http://xemacs.org/"}"
+: "${LICENSE:="GPL-2+"}"
if [[ -n ${XEMACS_EXPERIMENTAL} ]]; then
- : ${SRC_URI:="http://ftp.xemacs.org/pub/xemacs/beta/experimental/packages/${P}-pkg.tar.gz"}
+ : "${SRC_URI:="http://ftp.xemacs.org/pub/xemacs/beta/experimental/packages/${P}-pkg.tar.gz"}"
else
- : ${SRC_URI:="http://ftp.xemacs.org/pub/xemacs/packages/${P}-pkg.tar.gz"}
+ : "${SRC_URI:="http://ftp.xemacs.org/pub/xemacs/packages/${P}-pkg.tar.gz"}"
fi
xemacs-packages_src_unpack() { :; }
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread
* [gentoo-dev] [PATCH 61/61] xorg-3.eclass: Quote argument of ":" command
2023-03-24 11:16 [gentoo-dev] [PATCH 01/61] acct-group.eclass: Quote argument of ":" command Ulrich Müller
` (58 preceding siblings ...)
2023-03-24 11:17 ` [gentoo-dev] [PATCH 60/61] xemacs-packages.eclass: " Ulrich Müller
@ 2023-03-24 11:17 ` Ulrich Müller
59 siblings, 0 replies; 61+ messages in thread
From: Ulrich Müller @ 2023-03-24 11:17 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/xorg-3.eclass | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass
index a68341591edd..2faccebba16c 100644
--- a/eclass/xorg-3.eclass
+++ b/eclass/xorg-3.eclass
@@ -33,7 +33,7 @@ _XORG_3_ECLASS=1
GIT_ECLASS=""
if [[ ${PV} == *9999* ]]; then
GIT_ECLASS="git-r3"
- : ${XORG_EAUTORECONF:="yes"}
+ : "${XORG_EAUTORECONF:="yes"}"
fi
# If we're a font package, but not the font.alias one
@@ -55,7 +55,7 @@ fi
# @DESCRIPTION:
# If set to 'yes', the multilib support for package will be enabled. Set
# before inheriting this eclass.
-: ${XORG_MULTILIB:="no"}
+: "${XORG_MULTILIB:="no"}"
# we need to inherit autotools first to get the deps
inherit autotools libtool multilib toolchain-funcs flag-o-matic \
@@ -69,14 +69,14 @@ unset FONT_ECLASS GIT_ECLASS
# @DESCRIPTION:
# If set to 'yes' and configure.ac exists, eautoreconf will run. Set
# before inheriting this eclass.
-: ${XORG_EAUTORECONF:="no"}
+: "${XORG_EAUTORECONF:="no"}"
# @ECLASS_VARIABLE: XORG_BASE_INDIVIDUAL_URI
# @PRE_INHERIT
# @DESCRIPTION:
# Set up SRC_URI for individual modular releases. If set to an empty
# string, no SRC_URI will be provided by the eclass.
-: ${XORG_BASE_INDIVIDUAL_URI="https://www.x.org/releases/individual"}
+: "${XORG_BASE_INDIVIDUAL_URI="https://www.x.org/releases/individual"}"
# @ECLASS_VARIABLE: XORG_MODULE
# @PRE_INHERIT
@@ -84,7 +84,7 @@ unset FONT_ECLASS GIT_ECLASS
# The subdirectory to download source from. Possible settings are app,
# doc, data, util, driver, font, lib, proto, xserver. Set above the
# inherit to override the default autoconfigured module.
-: ${XORG_MODULE:="auto"}
+: "${XORG_MODULE:="auto"}"
if [[ ${XORG_MODULE} == auto ]]; then
case "${CATEGORY}/${P}" in
app-doc/*) XORG_MODULE=doc/ ;;
@@ -104,7 +104,7 @@ fi
# @DESCRIPTION:
# For git checkout the git repository might differ from package name.
# This variable can be used for proper directory specification
-: ${XORG_PACKAGE_NAME:=${PN}}
+: "${XORG_PACKAGE_NAME:=${PN}}"
HOMEPAGE="https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}"
@@ -113,20 +113,20 @@ HOMEPAGE="https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/${XORG_MOD
# @DESCRIPTION:
# Most X11 projects provide tarballs as tar.bz2 or tar.xz. This eclass defaults
# to bz2.
-: ${XORG_TARBALL_SUFFIX:="bz2"}
+: "${XORG_TARBALL_SUFFIX:="bz2"}"
if [[ ${PV} == *9999* ]]; then
- : ${EGIT_REPO_URI:="https://gitlab.freedesktop.org/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}.git"}
+ : "${EGIT_REPO_URI:="https://gitlab.freedesktop.org/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}.git"}"
elif [[ -n ${XORG_BASE_INDIVIDUAL_URI} ]]; then
SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/${XORG_MODULE}${P}.tar.${XORG_TARBALL_SUFFIX}"
fi
-: ${SLOT:=0}
+: "${SLOT:=0}"
# Set the license for the package. This can be overridden by setting
# LICENSE after the inherit. Nearly all FreeDesktop-hosted X packages
# are under the MIT license. (This is what Red Hat does in their rpms)
-: ${LICENSE:=MIT}
+: "${LICENSE:=MIT}"
# Set up autotools shared dependencies
# Remember that all versions here MUST be stable
@@ -181,7 +181,7 @@ BDEPEND+=" virtual/pkgconfig"
# are required for. Default value is "no"
#
# Eg. XORG_DRI="opengl" will pull all dri dependent deps for opengl useflag
-: ${XORG_DRI:="no"}
+: "${XORG_DRI:="no"}"
DRI_COMMON_DEPEND="
x11-base/xorg-server[-minimal]
@@ -215,7 +215,7 @@ fi
# are required for. Default value is "no"
#
# Eg. XORG_DOC="manual" will pull all doc dependent deps for manual useflag
-: ${XORG_DOC:="no"}
+: "${XORG_DOC:="no"}"
DOC_DEPEND="
doc? (
--
2.40.0
^ permalink raw reply related [flat|nested] 61+ messages in thread