[gentoo-dev] [PATCH v2] elisp.eclass: New function elisp_pkg_info

2024-09-05 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/elisp.eclass | 14 --
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass
index 20139491c976..5b08d34a867f 100644
--- a/eclass/elisp.eclass
+++ b/eclass/elisp.eclass
@@ -1,4 +1,4 @@
-# Copyright 2002-2023 Gentoo Authors
+# Copyright 2002-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: elisp.eclass
@@ -205,5 +205,15 @@ elisp_pkg_postrm() {
elisp-site-regen
 }
 
+# @FUNCTION: elisp_pkg_info
+# @DESCRIPTION:
+# Display information about the Emacs version used to build the package.
+
+elisp_pkg_info() {
+   if [[ -n ${_ELISP_EMACS_VERSION} ]]; then
+   echo "Built with Emacs version: ${_ELISP_EMACS_VERSION}"
+   fi
+}
+
 EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,test,install} \
-   pkg_{setup,postinst,postrm}
+   pkg_{setup,postinst,postrm,info}
-- 
2.46.0




[gentoo-dev] [PATCH] elisp.eclass: New function elisp_pkg_info

2024-09-05 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/elisp.eclass | 10 --
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass
index 20139491c976..1fa8aab29753 100644
--- a/eclass/elisp.eclass
+++ b/eclass/elisp.eclass
@@ -1,4 +1,4 @@
-# Copyright 2002-2023 Gentoo Authors
+# Copyright 2002-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: elisp.eclass
@@ -205,5 +205,11 @@ elisp_pkg_postrm() {
elisp-site-regen
 }
 
+elisp_pkg_info() {
+   if [[ -n ${_ELISP_EMACS_VERSION} ]]; then
+   echo "Built with Emacs version: ${_ELISP_EMACS_VERSION}"
+   fi
+}
+
 EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,test,install} \
-   pkg_{setup,postinst,postrm}
+   pkg_{setup,postinst,postrm,info}
-- 
2.46.0




[gentoo-dev] [PATCH] savedconfig.eclass: Drop support for EAPI 6

2024-07-24 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/savedconfig.eclass | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/eclass/savedconfig.eclass b/eclass/savedconfig.eclass
index cc5748543078..65a1f3bfd800 100644
--- a/eclass/savedconfig.eclass
+++ b/eclass/savedconfig.eclass
@@ -1,10 +1,10 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: savedconfig.eclass
 # @MAINTAINER:
 # base-sys...@gentoo.org
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: common API for saving/restoring complex configuration files
 # @DESCRIPTION:
 # It is not uncommon to come across a package which has a very fine
@@ -31,7 +31,7 @@
 # build.
 
 case ${EAPI} in
-   6|7|8) ;;
+   7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -60,12 +60,12 @@ save_config() {
if [[ $# -eq 1 && -f $1 ]] ; then
# Just one file, so have the ${configfile} be that config file
dodir "${configfile%/*}"
-   cp "$@" "${ED%/}/${configfile}" || die "failed to save $*"
+   cp "$@" "${ED}/${configfile}" || die "failed to save $*"
else
# A dir, or multiple files, so have the ${configfile} be a dir
# with all the saved stuff below it
dodir "${configfile}"
-   treecopy "$@" "${ED%/}/${configfile}" || die "failed to save $*"
+   treecopy "$@" "${ED}/${configfile}" || die "failed to save $*"
fi
 
elog "Your configuration for ${CATEGORY}/${PF} has been saved in "
@@ -150,7 +150,7 @@ savedconfig_pkg_postinst() {
# are worse :/.
 
if use savedconfig ; then
-   find "${EROOT%/}/etc/portage/savedconfig/${CATEGORY}/${PF}" \
+   find "${EROOT}/etc/portage/savedconfig/${CATEGORY}/${PF}" \
-exec touch {} + 2>/dev/null
fi
 }
-- 
2.45.2




[gentoo-dev] [PATCH] git-r3.eclass: Drop support for EAPI 6

2024-07-09 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/git-r3.eclass | 13 -
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
index 565f6ada8382..35ad6afe8e88 100644
--- a/eclass/git-r3.eclass
+++ b/eclass/git-r3.eclass
@@ -4,7 +4,7 @@
 # @ECLASS: git-r3.eclass
 # @MAINTAINER:
 # Michał Górny 
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: Eclass for fetching and unpacking git repositories.
 # @DESCRIPTION:
 # Third generation eclass for easing maintenance of live ebuilds using
@@ -26,7 +26,7 @@
 # If non-empty, then the repo likely needs EGIT_LFS to clone properly.
 
 case ${EAPI} in
-   6|7|8) ;;
+   7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -35,13 +35,8 @@ _GIT_R3_ECLASS=1
 
 PROPERTIES+=" live"
 
-if [[ ${EAPI} != 6 ]]; then
-   BDEPEND=">=dev-vcs/git-1.8.2.1[curl]"
-   [[ ${EGIT_LFS} ]] && BDEPEND+=" dev-vcs/git-lfs"
-else
-   DEPEND=">=dev-vcs/git-1.8.2.1[curl]"
-   [[ ${EGIT_LFS} ]] && DEPEND+=" dev-vcs/git-lfs"
-fi
+BDEPEND=">=dev-vcs/git-1.8.2.1[curl]"
+[[ ${EGIT_LFS} ]] && BDEPEND+=" dev-vcs/git-lfs"
 
 # @ECLASS_VARIABLE: EGIT_CLONE_TYPE
 # @USER_VARIABLE
-- 
2.45.2




[gentoo-dev] [PATCH v2 4/4] kernel-2.eclass: Drop reference to BUILD_FIXES variable

2024-07-03 Thread Ulrich Müller
Undocumented, and not used by any ebuilds inheriting this eclass.

Signed-off-by: Ulrich Müller 
---
 eclass/kernel-2.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index ffbe986f3e87..c60fcb04dd73 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1332,7 +1332,7 @@ getfilevar() {
unset ARCH
 
echo -e "include ${basefname}\ne:\n\t@echo \$(${1})" |
-   make -C "${basedname}" ${BUILD_FIXES} -s -f - e 
2>/dev/null
+   make -C "${basedname}" -s -f - e 2>/dev/null
 
ARCH=${xarch}
fi
-- 
2.45.2




[gentoo-dev] [PATCH v2 3/4] linux-info.eclass: Drop reference to BUILD_FIXES variable

2024-07-03 Thread Ulrich Müller
Undocumented, and not used by any ebuilds inheriting this eclass.

Signed-off-by: Ulrich Müller 
---
 eclass/linux-info.eclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 154be2a46888..0f6138150144 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -239,8 +239,7 @@ getfilevar() {
# Pass dot-config=0 to avoid the config check in kernels prior 
to 5.4.
echo -e "e:\\n\\t@echo \$(${1})\\ninclude ${basefname}" | \
nonfatal emake -C "${basedname}" --no-print-directory 
M="${T}" \
-   dot-config=0 need-config= need-compiler= \
-   ${BUILD_FIXES} -s -f - 2>/dev/null
+   dot-config=0 need-config= need-compiler= -s -f - 
2>/dev/null
 
ARCH=${myARCH}
fi
-- 
2.45.2




[gentoo-dev] [PATCH v2 2/4] linux-info.eclass: Drop support for EAPI 6

2024-07-03 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/linux-info.eclass | 20 
 1 file changed, 8 insertions(+), 12 deletions(-)

diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 90982445fdab..154be2a46888 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -6,7 +6,7 @@
 # ker...@gentoo.org
 # @AUTHOR:
 # Original author: John Mylchreest 
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: eclass used for accessing kernel related information
 # @DESCRIPTION:
 # This eclass is used as a central eclass for accessing kernel
@@ -28,7 +28,7 @@
 # get_running_version
 
 case ${EAPI} in
-   6|7|8) ;;
+   7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -38,7 +38,6 @@ _LINUX_INFO_ECLASS=1
 # A Couple of env vars are available to effect usage of this eclass
 # These are as follows:
 
-
 # @ECLASS_VARIABLE: CHECKCONFIG_DONOTHING
 # @USER_VARIABLE
 # @DEFAULT_UNSET
@@ -51,7 +50,7 @@ _LINUX_INFO_ECLASS=1
 # @DESCRIPTION:
 # A string containing the directory of the target kernel sources. The default 
value is
 # "/usr/src/linux"
-KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}"
+KERNEL_DIR="${KERNEL_DIR:-${ROOT}/usr/src/linux}"
 
 # @ECLASS_VARIABLE: CONFIG_CHECK
 # @DEFAULT_UNSET
@@ -88,7 +87,6 @@ KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}"
 # CONFIG_CHECK="~CFG" with ERROR_="Error Message" calls eerror without 
dying
 # CONFIG_CHECK="~CFG" with WARNING_="Warning Message" calls ewarn without 
dying
 
-
 # @ECLASS_VARIABLE: KBUILD_OUTPUT
 # @DEFAULT_UNSET
 # @DESCRIPTION:
@@ -168,7 +166,6 @@ KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}"
 
 # And to ensure all the weirdness with crosscompile
 inherit toolchain-funcs
-[[ ${EAPI} == 6 ]] && inherit eapi7-ver
 
 # @FUNCTION: set_arch_to_kernel
 # @DESCRIPTION:
@@ -636,7 +633,7 @@ get_version() {
# caught before this if they are.
if [[ -z ${OUTPUT_DIR} ]] ; then
# Try to locate a kernel that is most relevant for us.
-   for OUTPUT_DIR in "${SYSROOT}" "${ROOT%/}" "" ; do
+   for OUTPUT_DIR in "${SYSROOT}" "${ROOT}" "" ; do

OUTPUT_DIR+="/lib/modules/${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${KV_EXTRA}${KV_LOCAL}/build"
if [[ -e ${OUTPUT_DIR} ]] ; then
break
@@ -664,10 +661,10 @@ get_running_version() {
 
local kv=$(uname -r)
 
-   if [[ -f ${ROOT%/}/lib/modules/${kv}/source/Makefile ]]; then
-   KERNEL_DIR=$(readlink -f "${ROOT%/}/lib/modules/${kv}/source")
-   if [[ -f ${ROOT%/}/lib/modules/${kv}/build/Makefile ]]; then
-   KBUILD_OUTPUT=$(readlink -f 
"${ROOT%/}/lib/modules/${kv}/build")
+   if [[ -f ${ROOT}/lib/modules/${kv}/source/Makefile ]]; then
+   KERNEL_DIR=$(readlink -f "${ROOT}/lib/modules/${kv}/source")
+   if [[ -f ${ROOT}/lib/modules/${kv}/build/Makefile ]]; then
+   KBUILD_OUTPUT=$(readlink -f 
"${ROOT}/lib/modules/${kv}/build")
fi
get_version && return 0
fi
@@ -712,7 +709,6 @@ linux-info_get_any_version() {
fi
 }
 
-
 # ebuild check functions
 # ---
 
-- 
2.45.2




[gentoo-dev] [PATCH v2 1/4] linux-info.eclass: Drop temporary fix for powerpc

2024-07-03 Thread Ulrich Müller
Apparently there is no reference to a .tmp_gas_check file or to a TOUT
variable in Linux sources any more.

Bug: https://bugs.gentoo.org/75034#c14
Signed-off-by: Ulrich Müller 
---
 eclass/linux-info.eclass | 6 --
 1 file changed, 6 deletions(-)

diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 9449a6359d2a..90982445fdab 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -170,12 +170,6 @@ KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}"
 inherit toolchain-funcs
 [[ ${EAPI} == 6 ]] && inherit eapi7-ver
 
-# bug #75034
-case ${ARCH} in
-   ppc)BUILD_FIXES="${BUILD_FIXES} TOUT=${T}/.tmp_gas_check";;
-   ppc64)  BUILD_FIXES="${BUILD_FIXES} TOUT=${T}/.tmp_gas_check";;
-esac
-
 # @FUNCTION: set_arch_to_kernel
 # @DESCRIPTION:
 # Set the env ARCH to match what the kernel expects.
-- 
2.45.2




[gentoo-dev] [PATCH] vcs-snapshot.eclass: Drop support for EAPI 6

2024-07-01 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/vcs-snapshot.eclass | 16 ++--
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/eclass/vcs-snapshot.eclass b/eclass/vcs-snapshot.eclass
index 1b7299b92a3b..0279e89ec3ab 100644
--- a/eclass/vcs-snapshot.eclass
+++ b/eclass/vcs-snapshot.eclass
@@ -1,10 +1,10 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: vcs-snapshot.eclass
 # @MAINTAINER:
 # mgo...@gentoo.org
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: support eclass for unpacking VCS snapshot tarballs
 # @DESCRIPTION:
 # THIS ECLASS IS NOT NECESSARY FOR MODERN GITHUB AND GITLAB SNAPSHOTS.
@@ -43,7 +43,6 @@
 # in ${WORKDIR}/${P} and ${WORKDIR}/${P}-otherstuff respectively.
 
 case ${EAPI} in
-   6) inherit eqawarn ;;
7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
@@ -103,13 +102,10 @@ vcs-snapshot_src_unpack() {
done
 
if [[ ! ${renamed_any} ]]; then
-   local w=eerror
-   [[ ${EAPI} == 6 ]] && w=eqawarn
-   "${w}" "${FUNCNAME} did not find any archives that needed 
renaming."
-   "${w}" "Please verify that its usage is really necessary, and 
remove"
-   "${w}" "the inherit if it is not."
-
-   [[ ${w} == eerror ]] && die "${FUNCNAME}: Unnecessary usage 
detected"
+   eerror "${FUNCNAME} did not find any archives that needed 
renaming."
+   eerror "Please verify that its usage is really necessary, and 
remove"
+   eerror "the inherit if it is not."
+   die "${FUNCNAME}: Unnecessary usage detected"
fi
 }
 
-- 
2.45.2




[gentoo-dev] [PATCH] unpacker.eclass: Drop support for EAPI 6

2024-07-01 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/unpacker.eclass | 11 ---
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index 2957ca02d3f4..91520a36d16a 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -4,7 +4,7 @@
 # @ECLASS: unpacker.eclass
 # @MAINTAINER:
 # base-sys...@gentoo.org
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: helpers for extraneous file formats and consistent behavior across 
EAPIs
 # @DESCRIPTION:
 # Some extraneous file formats are not part of PMS, or are only in certain
@@ -16,7 +16,7 @@
 #  - support partial unpacks?
 
 case ${EAPI} in
-   6|7|8) ;;
+   7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -430,10 +430,7 @@ _unpacker_get_decompressor() {
echo "xz -T$(makeopts_jobs) -dc" ;;
*.lz)
find_lz_unpacker() {
-   local has_version_arg="-b"
-
-   [[ ${EAPI} == 6 ]] && has_version_arg="--host-root"
-   if has_version "${has_version_arg}" 
">=app-arch/xz-utils-5.4.0" ; then
+   if has_version -b ">=app-arch/xz-utils-5.4.0" ; then
echo xz
return
fi
@@ -537,7 +534,7 @@ _unpacker() {
esac
 
# 7z, rar and lha/lzh are handled by package manager in EAPI < 8
-   if [[ ${EAPI} != [67] ]]; then
+   if [[ ${EAPI} != 7 ]]; then
case ${m} in
*.7z)
arch="unpack_7z" ;;
-- 
2.45.2




[gentoo-dev] [PATCH 2/2] linux-info.eclass: Drop support for EAPI 6

2024-07-01 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/linux-info.eclass | 20 
 1 file changed, 8 insertions(+), 12 deletions(-)

diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 90982445fdab..154be2a46888 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -6,7 +6,7 @@
 # ker...@gentoo.org
 # @AUTHOR:
 # Original author: John Mylchreest 
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: eclass used for accessing kernel related information
 # @DESCRIPTION:
 # This eclass is used as a central eclass for accessing kernel
@@ -28,7 +28,7 @@
 # get_running_version
 
 case ${EAPI} in
-   6|7|8) ;;
+   7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -38,7 +38,6 @@ _LINUX_INFO_ECLASS=1
 # A Couple of env vars are available to effect usage of this eclass
 # These are as follows:
 
-
 # @ECLASS_VARIABLE: CHECKCONFIG_DONOTHING
 # @USER_VARIABLE
 # @DEFAULT_UNSET
@@ -51,7 +50,7 @@ _LINUX_INFO_ECLASS=1
 # @DESCRIPTION:
 # A string containing the directory of the target kernel sources. The default 
value is
 # "/usr/src/linux"
-KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}"
+KERNEL_DIR="${KERNEL_DIR:-${ROOT}/usr/src/linux}"
 
 # @ECLASS_VARIABLE: CONFIG_CHECK
 # @DEFAULT_UNSET
@@ -88,7 +87,6 @@ KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}"
 # CONFIG_CHECK="~CFG" with ERROR_="Error Message" calls eerror without 
dying
 # CONFIG_CHECK="~CFG" with WARNING_="Warning Message" calls ewarn without 
dying
 
-
 # @ECLASS_VARIABLE: KBUILD_OUTPUT
 # @DEFAULT_UNSET
 # @DESCRIPTION:
@@ -168,7 +166,6 @@ KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}"
 
 # And to ensure all the weirdness with crosscompile
 inherit toolchain-funcs
-[[ ${EAPI} == 6 ]] && inherit eapi7-ver
 
 # @FUNCTION: set_arch_to_kernel
 # @DESCRIPTION:
@@ -636,7 +633,7 @@ get_version() {
# caught before this if they are.
if [[ -z ${OUTPUT_DIR} ]] ; then
# Try to locate a kernel that is most relevant for us.
-   for OUTPUT_DIR in "${SYSROOT}" "${ROOT%/}" "" ; do
+   for OUTPUT_DIR in "${SYSROOT}" "${ROOT}" "" ; do

OUTPUT_DIR+="/lib/modules/${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${KV_EXTRA}${KV_LOCAL}/build"
if [[ -e ${OUTPUT_DIR} ]] ; then
break
@@ -664,10 +661,10 @@ get_running_version() {
 
local kv=$(uname -r)
 
-   if [[ -f ${ROOT%/}/lib/modules/${kv}/source/Makefile ]]; then
-   KERNEL_DIR=$(readlink -f "${ROOT%/}/lib/modules/${kv}/source")
-   if [[ -f ${ROOT%/}/lib/modules/${kv}/build/Makefile ]]; then
-   KBUILD_OUTPUT=$(readlink -f 
"${ROOT%/}/lib/modules/${kv}/build")
+   if [[ -f ${ROOT}/lib/modules/${kv}/source/Makefile ]]; then
+   KERNEL_DIR=$(readlink -f "${ROOT}/lib/modules/${kv}/source")
+   if [[ -f ${ROOT}/lib/modules/${kv}/build/Makefile ]]; then
+   KBUILD_OUTPUT=$(readlink -f 
"${ROOT}/lib/modules/${kv}/build")
fi
get_version && return 0
fi
@@ -712,7 +709,6 @@ linux-info_get_any_version() {
fi
 }
 
-
 # ebuild check functions
 # ---
 
-- 
2.45.2




[gentoo-dev] [PATCH 1/2] linux-info.eclass: Drop temporary fix for powerpc

2024-07-01 Thread Ulrich Müller
Apparently there is no reference to a .tmp_gas_check file or to a TOUT
variable in Linux sources any more.

Bug: https://bugs.gentoo.org/75034#c14
Signed-off-by: Ulrich Müller 
---
 eclass/linux-info.eclass | 6 --
 1 file changed, 6 deletions(-)

diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 9449a6359d2a..90982445fdab 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -170,12 +170,6 @@ KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}"
 inherit toolchain-funcs
 [[ ${EAPI} == 6 ]] && inherit eapi7-ver
 
-# bug #75034
-case ${ARCH} in
-   ppc)BUILD_FIXES="${BUILD_FIXES} TOUT=${T}/.tmp_gas_check";;
-   ppc64)  BUILD_FIXES="${BUILD_FIXES} TOUT=${T}/.tmp_gas_check";;
-esac
-
 # @FUNCTION: set_arch_to_kernel
 # @DESCRIPTION:
 # Set the env ARCH to match what the kernel expects.
-- 
2.45.2




[gentoo-dev] [PATCH] common-lisp-3.eclass: Drop support for EAPI 6

2024-06-23 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/common-lisp-3.eclass | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/eclass/common-lisp-3.eclass b/eclass/common-lisp-3.eclass
index 99825190f32e..cc906d0d5cca 100644
--- a/eclass/common-lisp-3.eclass
+++ b/eclass/common-lisp-3.eclass
@@ -4,14 +4,14 @@
 # @ECLASS: common-lisp-3.eclass
 # @MAINTAINER:
 # Common Lisp project 
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: functions to support the installation of Common Lisp libraries
 # @DESCRIPTION:
 # Since Common Lisp libraries share similar structure, this eclass aims
 # to provide a simple way to write ebuilds with these characteristics.
 
 case ${EAPI} in
-   6|7|8) ;;
+   7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -27,14 +27,14 @@ CLIMPLEMENTATIONS="sbcl clisp clozurecl cmucl ecl gcl abcl"
 # @DESCRIPTION:
 # Default path of Common Lisp libraries sources. Sources will
 # be installed into ${CLSOURCEROOT}/${CLPACKAGE}.
-CLSOURCEROOT="${ROOT%/}"/usr/share/common-lisp/source
+CLSOURCEROOT="${ROOT}"/usr/share/common-lisp/source
 
 # @ECLASS_VARIABLE: CLSYSTEMROOT
 # @DESCRIPTION:
 # Default path to find any asdf file. Any asdf files will be
 # symlinked in ${CLSYSTEMROOT}/${CLSYSTEM} as they may be in
 # an arbitrarily deeply nested directory under ${CLSOURCEROOT}/${CLPACKAGE}.
-CLSYSTEMROOT="${ROOT%/}"/usr/share/common-lisp/systems
+CLSYSTEMROOT="${ROOT}"/usr/share/common-lisp/systems
 
 # @ECLASS_VARIABLE: CLPACKAGE
 # @DESCRIPTION:
-- 
2.45.2




[gentoo-dev] [PATCH 3/3] rebar.eclass: Drop support for EAPI 6

2024-06-12 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/rebar.eclass | 9 +++--
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/eclass/rebar.eclass b/eclass/rebar.eclass
index 1c131dd496be..97638c761814 100644
--- a/eclass/rebar.eclass
+++ b/eclass/rebar.eclass
@@ -6,7 +6,7 @@
 # maintainer-nee...@gentoo.org
 # @AUTHOR:
 # Amadeusz Żołnowski 
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: Build Erlang/OTP projects using dev-util/rebar.
 # @DESCRIPTION:
 # An eclass providing functions to build Erlang/OTP projects using
@@ -20,7 +20,7 @@
 # installation in a generic way for Erlang/OTP structured projects.
 
 case ${EAPI} in
-   6|7|8) ;;
+   7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -33,9 +33,6 @@ BDEPEND="
dev-util/rebar:0
>=sys-apps/gawk-4.1
 "
-if [[ ${EAPI} == 6 ]]; then
-   DEPEND+=" ${BDEPEND}"
-fi
 
 # @ECLASS_VARIABLE: REBAR_APP_SRC
 # @DESCRIPTION:
@@ -252,7 +249,7 @@ rebar_src_install() {
[[ -d bin ]] && for bin in bin/*; do dobin "$bin"; done
 
if [[ -d priv ]]; then
-   cp -pR priv "${ED%/}${dest}/" || die "failed to install priv/"
+   cp -pR priv "${ED}${dest}/" || die "failed to install priv/"
fi
 
einstalldocs
-- 
2.45.2




[gentoo-dev] [PATCH 2/3] rebar.eclass: Fix EPREFIX and ED usage

2024-06-12 Thread Ulrich Müller
The path returned by $(get_erl_libs) starts with a slash, so
${EPREFIX}/$(get_erl_libs) resulted in a double slash.

Fixes: 7ee6937e6219f250559ee26eb64e5991b27cd289
Closes: https://bugs.gentoo.org/770283
Signed-off-by: Ulrich Müller 
---
 eclass/rebar.eclass | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/eclass/rebar.eclass b/eclass/rebar.eclass
index c1a3aca67b54..1c131dd496be 100644
--- a/eclass/rebar.eclass
+++ b/eclass/rebar.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: rebar.eclass
@@ -63,7 +63,7 @@ _rebar_find_dep() {
local p
local result
 
-   pushd "${EPREFIX}/$(get_erl_libs)" >/dev/null || return 1
+   pushd "${EPREFIX}$(get_erl_libs)" >/dev/null || return 1
for p in ${pn} ${pn}-*; do
if [[ -d ${p} ]]; then
# Ensure there's at most one matching.
@@ -102,7 +102,7 @@ erebar() {
 
(( $# > 0 )) || die "erebar: at least one target is required"
 
-   local -x ERL_LIBS="${EPREFIX}/$(get_erl_libs)"
+   local -x ERL_LIBS="${EPREFIX}$(get_erl_libs)"
[[ ${1} == eunit ]] && local -x ERL_LIBS="."
 
rebar -v skip_deps=true "$@" || die -n "rebar $@ failed"
@@ -123,7 +123,7 @@ rebar_fix_include_path() {
 
local pn="${1}"
local rebar_config="${2:-rebar.config}"
-   local erl_libs="${EPREFIX}/$(get_erl_libs)"
+   local erl_libs="${EPREFIX}$(get_erl_libs)"
local p
 
p="$(_rebar_find_dep "${pn}")" \
@@ -212,7 +212,7 @@ rebar_src_prepare() {
 rebar_src_configure() {
debug-print-function ${FUNCNAME} "${@}"
 
-   local -x ERL_LIBS="${EPREFIX}/$(get_erl_libs)"
+   local -x ERL_LIBS="${EPREFIX}$(get_erl_libs)"
default
 }
 
@@ -252,7 +252,7 @@ rebar_src_install() {
[[ -d bin ]] && for bin in bin/*; do dobin "$bin"; done
 
if [[ -d priv ]]; then
-   cp -pR priv "${ED%/}/${dest}/" || die "failed to install priv/"
+   cp -pR priv "${ED%/}${dest}/" || die "failed to install priv/"
fi
 
einstalldocs
-- 
2.45.2




[gentoo-dev] [PATCH 1/3] eclass/tests: Update rebar_*.sh to EAPI 8

2024-06-12 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/tests/rebar_fix_include_path.sh | 8 ++--
 eclass/tests/rebar_remove_deps.sh  | 4 ++--
 eclass/tests/rebar_set_vsn.sh  | 4 ++--
 3 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/eclass/tests/rebar_fix_include_path.sh 
b/eclass/tests/rebar_fix_include_path.sh
index 339633e91e3a..46c5712104b1 100755
--- a/eclass/tests/rebar_fix_include_path.sh
+++ b/eclass/tests/rebar_fix_include_path.sh
@@ -1,16 +1,20 @@
 #!/bin/bash
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 source tests-common.sh || exit
 
-EAPI=6
+EAPI=8
 
 inherit rebar
 
 EPREFIX="${tmpdir}/fakeroot"
 S="${WORKDIR}/${P}"
 
+get_libdir() {
+   echo lib
+}
+
 setup() {
mkdir -p "${S}" || die
 
diff --git a/eclass/tests/rebar_remove_deps.sh 
b/eclass/tests/rebar_remove_deps.sh
index b544a3078dbb..e2717b59eaf9 100755
--- a/eclass/tests/rebar_remove_deps.sh
+++ b/eclass/tests/rebar_remove_deps.sh
@@ -1,10 +1,10 @@
 #!/bin/bash
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 source tests-common.sh || exit
 
-EAPI=6
+EAPI=8
 
 inherit rebar
 
diff --git a/eclass/tests/rebar_set_vsn.sh b/eclass/tests/rebar_set_vsn.sh
index c828732b0079..6cc4600695a6 100755
--- a/eclass/tests/rebar_set_vsn.sh
+++ b/eclass/tests/rebar_set_vsn.sh
@@ -1,10 +1,10 @@
 #!/bin/bash
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 source tests-common.sh || exit
 
-EAPI=6
+EAPI=8
 
 inherit rebar
 
-- 
2.45.2




[gentoo-dev] [PATCH v2 2/2] common-lisp-3.eclass: sbcl supports --no-sysinit --no-userinit

2024-06-08 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/common-lisp-3.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/common-lisp-3.eclass b/eclass/common-lisp-3.eclass
index b859c7859bfb..99825190f32e 100644
--- a/eclass/common-lisp-3.eclass
+++ b/eclass/common-lisp-3.eclass
@@ -215,7 +215,7 @@ common-lisp-export-impl-args() {
case "${CL_BINARY}" in
sbcl)
CL_BINARY="${CL_BINARY} --non-interactive"
-   CL_NORC="--sysinit /dev/null --userinit /dev/null"
+   CL_NORC="--no-sysinit --no-userinit"
CL_LOAD="--load"
CL_EVAL="--eval"
;;
-- 
2.45.2




[gentoo-dev] [PATCH v2 1/2] common-lisp-3.eclass: Support EAPI 8

2024-06-08 Thread Ulrich Müller
Minor stylistic changes.

Signed-off-by: Ulrich Müller 
---
 eclass/common-lisp-3.eclass | 22 +-
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/eclass/common-lisp-3.eclass b/eclass/common-lisp-3.eclass
index 26d31268a598..b859c7859bfb 100644
--- a/eclass/common-lisp-3.eclass
+++ b/eclass/common-lisp-3.eclass
@@ -1,17 +1,17 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: common-lisp-3.eclass
 # @MAINTAINER:
 # Common Lisp project 
-# @SUPPORTED_EAPIS: 6 7
+# @SUPPORTED_EAPIS: 6 7 8
 # @BLURB: functions to support the installation of Common Lisp libraries
 # @DESCRIPTION:
 # Since Common Lisp libraries share similar structure, this eclass aims
 # to provide a simple way to write ebuilds with these characteristics.
 
 case ${EAPI} in
-   6|7) ;;
+   6|7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -121,7 +121,8 @@ common-lisp-install-sources() {
 
local fpredicate=$(common-lisp-get-fpredicate "${ftype}")
 
-   for path in "${@}" ; do
+   local path
+   for path ; do
if [[ -f ${path} ]] ; then
common-lisp-install-one-source ${fpredicate} "${path}" 
"$(dirname "${path}")"
elif [[ -d ${path} ]] ; then
@@ -148,7 +149,7 @@ common-lisp-install-sources() {
 # Installs ${1} asdf file in CLSOURCEROOT/CLPACKAGE and symlinks it in
 # CLSYSTEMROOT.
 common-lisp-install-one-asdf() {
-   [[ $# != 1 ]] && die "${FUNCNAME[0]} must receive exactly one argument"
+   [[ $# -eq 1 ]] || die "${FUNCNAME[0]} must receive exactly one argument"
 
# the suffix «.asd» is optional
local source=${1%.asd}.asd
@@ -166,9 +167,11 @@ common-lisp-install-one-asdf() {
 common-lisp-install-asdf() {
dodir "${CLSYSTEMROOT}"
 
-   [[ $# = 0 ]] && set - ${CLSYSTEMS}
-   [[ $# = 0 ]] && set - $(find . -type f -name \*.asd)
-   for sys in "${@}" ; do
+   [[ $# -eq 0 ]] && set - ${CLSYSTEMS}
+   [[ $# -eq 0 ]] && set - $(find . -type f -name \*.asd)
+
+   local sys
+   for sys ; do
common-lisp-install-one-asdf ${sys}
done
 }
@@ -187,6 +190,7 @@ common-lisp-3_src_install() {
 # Outputs an installed Common Lisp implementation. Transverses
 # CLIMPLEMENTATIONS to find it.
 common-lisp-find-lisp-impl() {
+   local lisp
for lisp in ${CLIMPLEMENTATIONS} ; do
[[ "$(best_version dev-lisp/${lisp})" ]] && echo "${lisp}" && 
return
done
@@ -203,7 +207,7 @@ common-lisp-find-lisp-impl() {
 #   * CL_LOAD: load a certain file
 #   * CL_EVAL: eval a certain expression at startup
 common-lisp-export-impl-args() {
-   if [[ $# != 1 ]]; then
+   if [[ $# -ne 1 ]]; then
eerror "Usage: ${FUNCNAME[0]} lisp-implementation"
die "${FUNCNAME[0]}: wrong number of arguments: $#"
fi
-- 
2.45.2




[gentoo-dev] [PATCH 2/2] common-lisp-3.eclass: sbcl supports --no-sysinit --no-userinit

2024-06-08 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/common-lisp-3.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/common-lisp-3.eclass b/eclass/common-lisp-3.eclass
index 12c7221e41ce..f8bcd33de72b 100644
--- a/eclass/common-lisp-3.eclass
+++ b/eclass/common-lisp-3.eclass
@@ -211,7 +211,7 @@ common-lisp-export-impl-args() {
case "${CL_BINARY}" in
sbcl)
CL_BINARY="${CL_BINARY} --non-interactive"
-   CL_NORC="--sysinit /dev/null --userinit /dev/null"
+   CL_NORC="--no-sysinit --no-userinit"
CL_LOAD="--load"
CL_EVAL="--eval"
;;
-- 
2.45.2




[gentoo-dev] [PATCH 1/2] common-lisp-3.eclass: Support EAPI 8

2024-06-08 Thread Ulrich Müller
Minor stylistic changes.

Signed-off-by: Ulrich Müller 
---
 eclass/common-lisp-3.eclass | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/eclass/common-lisp-3.eclass b/eclass/common-lisp-3.eclass
index 26d31268a598..12c7221e41ce 100644
--- a/eclass/common-lisp-3.eclass
+++ b/eclass/common-lisp-3.eclass
@@ -1,17 +1,17 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: common-lisp-3.eclass
 # @MAINTAINER:
 # Common Lisp project 
-# @SUPPORTED_EAPIS: 6 7
+# @SUPPORTED_EAPIS: 6 7 8
 # @BLURB: functions to support the installation of Common Lisp libraries
 # @DESCRIPTION:
 # Since Common Lisp libraries share similar structure, this eclass aims
 # to provide a simple way to write ebuilds with these characteristics.
 
 case ${EAPI} in
-   6|7) ;;
+   6|7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -121,7 +121,7 @@ common-lisp-install-sources() {
 
local fpredicate=$(common-lisp-get-fpredicate "${ftype}")
 
-   for path in "${@}" ; do
+   for path ; do
if [[ -f ${path} ]] ; then
common-lisp-install-one-source ${fpredicate} "${path}" 
"$(dirname "${path}")"
elif [[ -d ${path} ]] ; then
@@ -148,7 +148,7 @@ common-lisp-install-sources() {
 # Installs ${1} asdf file in CLSOURCEROOT/CLPACKAGE and symlinks it in
 # CLSYSTEMROOT.
 common-lisp-install-one-asdf() {
-   [[ $# != 1 ]] && die "${FUNCNAME[0]} must receive exactly one argument"
+   [[ $# = 1 ]] || die "${FUNCNAME[0]} must receive exactly one argument"
 
# the suffix «.asd» is optional
local source=${1%.asd}.asd
@@ -168,7 +168,7 @@ common-lisp-install-asdf() {
 
[[ $# = 0 ]] && set - ${CLSYSTEMS}
[[ $# = 0 ]] && set - $(find . -type f -name \*.asd)
-   for sys in "${@}" ; do
+   for sys ; do
common-lisp-install-one-asdf ${sys}
done
 }
-- 
2.45.2




[gentoo-dev] [PATCH 2/2] Revert "elisp-common.eclass: Set no-native-compile in generated files"

2024-05-05 Thread Ulrich Müller
"no-byte-compile: t" implies "no-native-compile: t", therefore this was
redundant.

This reverts commit 2ab9bda58e464656cdf1e31b7e8b293cf1ec0caf.

Signed-off-by: Ulrich Müller 
---
 eclass/elisp-common.eclass | 2 --
 1 file changed, 2 deletions(-)

diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index dfc8168d6869..ad9d3c7e60c6 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -333,7 +333,6 @@ elisp-make-autoload-file() {
;; Local ${null}Variables:
;; version-control: never
;; no-byte-compile: t
-   ;; no-native-compile: t
;; no-update-autoloads: t
;; End:
 
@@ -723,7 +722,6 @@ elisp-site-regen() {
 
;; Local ${null}Variables:
;; no-byte-compile: t
-   ;; no-native-compile: t
;; buffer-read-only: t
;; End:
 
-- 
2.45.0




[gentoo-dev] [PATCH 1/2] elisp-common.eclass: Add lexical-binding cookies to generated Lisp files

2024-05-05 Thread Ulrich Müller
This suppresses the warning spam in recent Emacs from Git.

Signed-off-by: Ulrich Müller 
---
 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 3d99838a0221..dfc8168d6869 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -322,7 +322,7 @@ elisp-make-autoload-file() {
ebegin "Generating autoload file for GNU Emacs"
 
cat >"${f}" <<-EOF
-   ;;; ${f##*/} --- autoloads for ${PN}
+   ;;; ${f##*/} --- autoloads for ${PN}  -*-lexical-binding:t-*-
 
;;; Commentary:
;; Automatically generated by elisp-common.eclass
@@ -706,7 +706,7 @@ elisp-site-regen() {
done
 
cat <<-EOF >"${T}"/site-gentoo.el || ret=$?
-   ;;; site-gentoo.el --- site initialisation for Gentoo-installed packages
+   ;;; site-gentoo.el --- Gentoo site initialisation  
-*-lexical-binding:t-*-
 
;;; Commentary:
;; Automatically generated by elisp-common.eclass
-- 
2.45.0




[gentoo-dev] [PATCH] rpm.eclass: Drop support for EAPI 6

2024-04-12 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/rpm.eclass | 63 +++
 1 file changed, 3 insertions(+), 60 deletions(-)

diff --git a/eclass/rpm.eclass b/eclass/rpm.eclass
index b9187167eb8f..c9c21aa6ebbd 100644
--- a/eclass/rpm.eclass
+++ b/eclass/rpm.eclass
@@ -1,14 +1,13 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: rpm.eclass
 # @MAINTAINER:
 # base-sys...@gentoo.org
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: convenience class for extracting RPMs
 
 case ${EAPI} in
-   6) inherit epatch eqawarn ;;
7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
@@ -18,10 +17,7 @@ _RPM_ECLASS=1
 
 inherit estack
 
-case ${EAPI} in
-   6) DEPEND="app-arch/rpm2targz" ;;
-   *) BDEPEND="app-arch/rpm2targz" ;;
-esac
+BDEPEND="app-arch/rpm2targz"
 
 # @FUNCTION: rpm_unpack
 # @USAGE: 
@@ -88,59 +84,6 @@ rpm_src_unpack() {
done
 }
 
-# @FUNCTION: rpm_spec_epatch
-# @USAGE: [spec]
-# @DEPRECATED: none
-# @DESCRIPTION:
-# Read the specified spec (defaults to ${PN}.spec) and attempt to apply
-# all the patches listed in it.  If the spec does funky things like moving
-# files around, well this won't handle that.
-rpm_spec_epatch() {
-   # no epatch in EAPI 7 and later
-   [[ ${EAPI} == 6 ]] || die "${FUNCNAME} is banned in EAPI ${EAPI}"
-
-   local p spec=$1
-   local dir
-
-   if [[ -z ${spec} ]] ; then
-   # search likely places for the spec file
-   for spec in "${PWD}" "${S}" "${WORKDIR}" ; do
-   spec+="/${PN}.spec"
-   [[ -e ${spec} ]] && break
-   done
-   fi
-   [[ ${spec} == */* ]] \
-   && dir=${spec%/*} \
-   || dir=
-
-   ebegin "Applying patches from ${spec}"
-
-   grep '^%patch' "${spec}" | \
-   while read line ; do
-   # expand the %patch line
-   set -- ${line}
-   p=$1
-   shift
-
-   # process the %patch arguments
-   local arg
-   EPATCH_OPTS=
-   for arg in "$@" ; do
-   case ${arg} in
-   -b) EPATCH_OPTS+=" --suffix" ;;
-   *)  EPATCH_OPTS+=" ${arg}" ;;
-   esac
-   done
-
-   # extract the patch name from the Patch# line
-   set -- $(grep "^P${p#%p}: " "${spec}")
-   shift
-   epatch "${dir:+${dir}/}$*"
-   done
-
-   eend
-}
-
 fi
 
 EXPORT_FUNCTIONS src_unpack
-- 
2.44.0




[gentoo-dev] [PATCH] gnustep-*.eclass: Drop support for EAPI 6

2024-04-09 Thread Ulrich Müller
In EAPI 6, gnustep-base inherits eutils which is going to be last-rited.

Signed-off-by: Ulrich Müller 
---
 eclass/gnustep-2.eclass| 20 ++--
 eclass/gnustep-base.eclass |  5 ++---
 2 files changed, 8 insertions(+), 17 deletions(-)

diff --git a/eclass/gnustep-2.eclass b/eclass/gnustep-2.eclass
index 9750efa8d5c8..3797dd80151e 100644
--- a/eclass/gnustep-2.eclass
+++ b/eclass/gnustep-2.eclass
@@ -1,10 +1,10 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: gnustep-2.eclass
 # @MAINTAINER:
 # GNUstep Herd 
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @PROVIDES: gnustep-base
 # @BLURB: eclass for GNUstep Apps, Frameworks, and Bundles build
 # @DESCRIPTION:
@@ -12,7 +12,7 @@
 # GNUstep packages
 
 case ${EAPI} in
-   6|7|8) ;;
+   7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -21,17 +21,9 @@ _GNUSTEP_2_ECLASS=1
 
 inherit gnustep-base
 
-case ${EAPI} in
-   6)
-   DEPEND=">=gnustep-base/gnustep-make-2.0"
-   ;;
-   *)
-   BDEPEND=">=gnustep-base/gnustep-make-2.0"
-   ;;
-esac
-
-DEPEND+=" virtual/gnustep-back"
-RDEPEND="${DEPEND}"
+RDEPEND="virtual/gnustep-back"
+DEPEND="${RDEPEND}"
+BDEPEND=">=gnustep-base/gnustep-make-2.0"
 
 # The following gnustep-based exported functions are available:
 # * gnustep-base_pkg_setup
diff --git a/eclass/gnustep-base.eclass b/eclass/gnustep-base.eclass
index b5b350106471..a0a877bf8e13 100644
--- a/eclass/gnustep-base.eclass
+++ b/eclass/gnustep-base.eclass
@@ -1,17 +1,16 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: gnustep-base.eclass
 # @MAINTAINER:
 # GNUstep Herd 
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: Internal handling of GNUstep packages
 # @DESCRIPTION:
 # Inner gnustep eclass, should only be inherited directly by gnustep-base
 # packages
 
 case ${EAPI} in
-   6) inherit eutils ;;
7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
-- 
2.44.0




[gentoo-dev] [PATCH 2/2] elisp-common.eclass: Drop test for existence of ${T}

2024-04-03 Thread Ulrich Müller
This was the remnant of a 2008 workaround for Paludis (bug #517),
which didn't define T in the postrm phase.

Signed-off-by: Ulrich Müller 
---
 eclass/elisp-common.eclass | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 1ea2aa111d7e..3d99838a0221 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -699,9 +699,6 @@ elisp-site-regen() {
[[ -d ${sitelisp} ]] \
|| die "elisp-site-regen: Directory ${sitelisp} does not exist"
 
-   [[ -d ${T} ]] \
-   || die "elisp-site-regen: Temporary directory ${T} does not 
exist"
-
ebegin "Regenerating site-gentoo.el for GNU Emacs (${EBUILD_PHASE})"
 
for sf in "${sitelisp}"/site-gentoo.d/[0-9][0-9]*.el; do
-- 
2.44.0




[gentoo-dev] [PATCH 1/2] elisp-common.eclass: Use EROOT instead of ROOT+EPREFIX

2024-04-03 Thread Ulrich Müller
This was a leftover of pre-EAPI-3 compatibility.

Signed-off-by: Ulrich Müller 
---
 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 bab7250a6818..1ea2aa111d7e 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: elisp-common.eclass
@@ -687,7 +687,7 @@ elisp-make-site-file() {
 # directory.
 
 elisp-site-regen() {
-   local sitelisp=${ROOT%/}${EPREFIX}${SITELISP}
+   local sitelisp=${EROOT}${SITELISP}
local sf i ret=0 null="" page=$'\f'
local -a sflist
 
-- 
2.44.0




[gentoo-dev] [PATCH v2 2/2] ssl-cert.eclass: Drop openssl slot dependency

2023-12-29 Thread Ulrich Müller
Suggested-by: David Seifert 
Signed-off-by: Ulrich Müller 
---
 eclass/ssl-cert.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass
index 48cb10db16e8..240f9f12cc91 100644
--- a/eclass/ssl-cert.eclass
+++ b/eclass/ssl-cert.eclass
@@ -42,10 +42,10 @@ _SSL_CERT_ECLASS=1
 
 if [[ "${SSL_DEPS_SKIP}" == "0" ]]; then
if [[ "${SSL_CERT_MANDATORY}" == "0" ]]; then
-   BDEPEND="${SSL_CERT_USE}? ( dev-libs/openssl:0 )"
+   BDEPEND="${SSL_CERT_USE}? ( dev-libs/openssl )"
IUSE="${SSL_CERT_USE}"
else
-   BDEPEND="dev-libs/openssl:0"
+   BDEPEND="dev-libs/openssl"
fi
 fi
 
-- 
2.43.0




[gentoo-dev] [PATCH v2 1/2] ssl-cert.eclass: Drop support for EAPI 6

2023-12-29 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/ssl-cert.eclass | 19 ---
 1 file changed, 4 insertions(+), 15 deletions(-)

diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass
index 0453f0fbf665..48cb10db16e8 100644
--- a/eclass/ssl-cert.eclass
+++ b/eclass/ssl-cert.eclass
@@ -6,7 +6,7 @@
 # maintainer-nee...@gentoo.org
 # @AUTHOR:
 # Max Kalika 
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: Eclass for SSL certificates
 # @DESCRIPTION:
 # This eclass implements a standard installation procedure for installing
@@ -15,7 +15,7 @@
 # "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem}
 
 case ${EAPI} in
-   6|7|8) ;;
+   7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -42,22 +42,11 @@ _SSL_CERT_ECLASS=1
 
 if [[ "${SSL_DEPS_SKIP}" == "0" ]]; then
if [[ "${SSL_CERT_MANDATORY}" == "0" ]]; then
-   SSL_DEPEND="${SSL_CERT_USE}? ( dev-libs/openssl:0 )"
+   BDEPEND="${SSL_CERT_USE}? ( dev-libs/openssl:0 )"
IUSE="${SSL_CERT_USE}"
else
-   SSL_DEPEND="dev-libs/openssl:0"
+   BDEPEND="dev-libs/openssl:0"
fi
-
-   case "${EAPI}" in
-   6)
-   DEPEND="${SSL_DEPEND}"
-   ;;
-   *)
-   BDEPEND="${SSL_DEPEND}"
-   ;;
-   esac
-
-   unset SSL_DEPEND
 fi
 
 # @FUNCTION: gen_cnf
-- 
2.43.0




[gentoo-dev] [PATCH] ssl-cert.eclass: Drop support for EAPI 6

2023-12-29 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/ssl-cert.eclass | 19 ---
 1 file changed, 4 insertions(+), 15 deletions(-)

diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass
index 0453f0fbf665..48cb10db16e8 100644
--- a/eclass/ssl-cert.eclass
+++ b/eclass/ssl-cert.eclass
@@ -6,7 +6,7 @@
 # maintainer-nee...@gentoo.org
 # @AUTHOR:
 # Max Kalika 
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: Eclass for SSL certificates
 # @DESCRIPTION:
 # This eclass implements a standard installation procedure for installing
@@ -15,7 +15,7 @@
 # "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem}
 
 case ${EAPI} in
-   6|7|8) ;;
+   7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -42,22 +42,11 @@ _SSL_CERT_ECLASS=1
 
 if [[ "${SSL_DEPS_SKIP}" == "0" ]]; then
if [[ "${SSL_CERT_MANDATORY}" == "0" ]]; then
-   SSL_DEPEND="${SSL_CERT_USE}? ( dev-libs/openssl:0 )"
+   BDEPEND="${SSL_CERT_USE}? ( dev-libs/openssl:0 )"
IUSE="${SSL_CERT_USE}"
else
-   SSL_DEPEND="dev-libs/openssl:0"
+   BDEPEND="dev-libs/openssl:0"
fi
-
-   case "${EAPI}" in
-   6)
-   DEPEND="${SSL_DEPEND}"
-   ;;
-   *)
-   BDEPEND="${SSL_DEPEND}"
-   ;;
-   esac
-
-   unset SSL_DEPEND
 fi
 
 # @FUNCTION: gen_cnf
-- 
2.43.0




[gentoo-dev] [PATCH 2/2] rpm.eclass: Replace eutils inherit by eqawarn in EAPI 6

2023-12-07 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/rpm.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/rpm.eclass b/eclass/rpm.eclass
index d8bb0ad2814d..b9187167eb8f 100644
--- a/eclass/rpm.eclass
+++ b/eclass/rpm.eclass
@@ -8,7 +8,7 @@
 # @BLURB: convenience class for extracting RPMs
 
 case ${EAPI} in
-   6) inherit epatch eutils ;; # eutils for eqawarn
+   6) inherit epatch eqawarn ;;
7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
-- 
2.43.0




[gentoo-dev] [PATCH 1/2] flag-o-matic.eclass: Replace eutils inherit by eqawarn in EAPI 6

2023-12-07 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/flag-o-matic.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index d377568327e6..40662f4f7d7b 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -20,7 +20,7 @@ _FLAG_O_MATIC_ECLASS=1
 
 inherit toolchain-funcs
 
-[[ ${EAPI} == 6 ]] && inherit eutils
+[[ ${EAPI} == 6 ]] && inherit eqawarn
 
 # @FUNCTION: all-flag-vars
 # @DESCRIPTION:
-- 
2.43.0




[gentoo-dev] [PATCH 0/2] *.eclass: Replace eutils inherit by eqawarn in EAPI 6

2023-12-07 Thread Ulrich Müller
These trivial patches replace "inherit eutils" by "inherit eqawarn"
which is the only function that is actually needed. This will allow
dropping EAPI 6 from indirectly (via eutils) inherited eclasses in a
second step.

I've verified that none of the affected 53 ebuilds in the Gentoo
repository call any functions of the indirectly inherited eclasses.

Ulrich Müller (2):
  flag-o-matic.eclass: Replace eutils inherit by eqawarn in EAPI 6
  rpm.eclass: Replace eutils inherit by eqawarn in EAPI 6

 eclass/flag-o-matic.eclass | 2 +-
 eclass/rpm.eclass  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.43.0




[gentoo-dev] [PATCH v2] acct-user.eclass: Warn when the user is removed from a group

2023-10-23 Thread Ulrich Müller
Acked-by: Mike Gilbert 
Signed-off-by: Ulrich Müller 
---
v2: Add explanation and documentation reference to warning message

 eclass/acct-user.eclass | 14 ++
 1 file changed, 14 insertions(+)

diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass
index f658aa0eabc3..c9d335c4e558 100644
--- a/eclass/acct-user.eclass
+++ b/eclass/acct-user.eclass
@@ -431,6 +431,20 @@ acct-user_pkg_postinst() {
opts+=( --prefix "${ROOT}" )
fi
 
+   local g old_groups del_groups=""
+   old_groups=$(egetgroups "${ACCT_USER_NAME}")
+   for g in ${old_groups//,/ }; do
+   has "${g}" "${groups[@]}" || del_groups+="${del_groups:+, }${g}"
+   done
+   if [[ -n ${del_groups} ]]; then
+   ewarn "Removing user ${ACCT_USER_NAME} from group(s): 
${del_groups}"
+   ewarn "To retain the user's group membership in the local 
system"
+   ewarn "config, override with 
ACCT_USER_${ACCT_USER_NAME^^}_GROUPS"
+   ewarn "or ACCT_USER_${ACCT_USER_NAME^^}_GROUPS_ADD in 
make.conf."
+   ewarn "Documentation reference:"
+   ewarn 
"https://wiki.gentoo.org/wiki/Practical_guide_to_the_GLEP_81_migration#Override_user_groups";
+   fi
+
elog "Updating user ${ACCT_USER_NAME}"
# usermod outputs a warning if unlocking the account would result in an
# empty password. Hide stderr in a text file and display it if usermod 
fails.
-- 
2.42.0




[gentoo-dev] [PATCH] acct-user.eclass: Warn when the user is removed from a group

2023-10-23 Thread Ulrich Müller
Acked-by: Mike Gilbert 
Signed-off-by: Ulrich Müller 
---
 eclass/acct-user.eclass | 8 
 1 file changed, 8 insertions(+)

diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass
index f658aa0eabc3..67fdf509b3b1 100644
--- a/eclass/acct-user.eclass
+++ b/eclass/acct-user.eclass
@@ -431,6 +431,14 @@ acct-user_pkg_postinst() {
opts+=( --prefix "${ROOT}" )
fi
 
+   local g old_groups del_groups=""
+   old_groups=$(egetgroups "${ACCT_USER_NAME}")
+   for g in ${old_groups//,/ }; do
+   has "${g}" "${groups[@]}" || del_groups+="${del_groups:+, }${g}"
+   done
+   [[ -n ${del_groups} ]] &&
+   ewarn "Removing user ${ACCT_USER_NAME} from group(s): 
${del_groups}"
+
elog "Updating user ${ACCT_USER_NAME}"
# usermod outputs a warning if unlocking the account would result in an
# empty password. Hide stderr in a text file and display it if usermod 
fails.
-- 
2.42.0




[gentoo-dev] [PATCH] eutils.eclass: Drop EAPI 7

2023-08-26 Thread Ulrich Müller
Remove placeholders for emktemp, path_exists and use_if_iuse, which are
all non-functional since more than one year.

Signed-off-by: Ulrich Müller 
---
 eclass/eutils.eclass | 26 ++
 1 file changed, 2 insertions(+), 24 deletions(-)

diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 3b6a90fecb81..b48c18f97904 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,10 +1,10 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: eutils.eclass
 # @MAINTAINER:
 # base-sys...@gentoo.org
-# @SUPPORTED_EAPIS: 6 7
+# @SUPPORTED_EAPIS: 6
 # @BLURB: many extra (but common) functions that are used in ebuilds
 # @DEPRECATED: native package manager functions, more specific eclasses
 
@@ -15,28 +15,6 @@ _EUTILS_ECLASS=1
 case ${EAPI} in
6) inherit desktop edos2unix epatch eqawarn estack ltprune multilib \
preserve-libs strip-linguas toolchain-funcs vcs-clean 
wrapper ;;
-   7) inherit edos2unix strip-linguas wrapper ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
-
-emktemp() {
-   eerror "emktemp has been removed."
-   eerror "Create a temporary file in \${T} instead."
-   die "emktemp is banned"
-}
-
-path_exists() {
-   eerror "path_exists has been removed.  Please see the following post"
-   eerror "for a replacement snippet:"
-   eerror 
"https://blogs.gentoo.org/mgorny/2018/08/09/inlining-path_exists/";
-   die "path_exists is banned"
-}
-
-use_if_iuse() {
-   eerror "use_if_iuse has been removed."
-   eerror "Define it as a local function, or inline it:"
-   eerror "in_iuse foo && use foo"
-   die "use_if_iuse is banned"
-}
-
 fi
-- 
2.42.0




[gentoo-dev] [PATCH] elisp-common.eclass: Document sed script in elisp-site-file-install

2023-08-22 Thread Ulrich Müller
Even though it is a simple one-liner, some people find it difficult
to read.

Signed-off-by: Ulrich Müller 
---
 eclass/elisp-common.eclass | 10 --
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 1958b4a07e18..03e47d931f44 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -590,7 +590,13 @@ elisp-modules-install() {
 
 elisp-site-file-install() {
local sf="${1##*/}" my_pn="${2:-${PN}}" modules ret
-   local header=" ${PN} site-lisp configuration"
+   local add_header="1 {
+   # Find first non-empty line
+   :x; /^\$/ { n; bx; }
+   # Insert a header, unless we already look at one
+   /^;.*${PN}/I! s/^/;;; ${PN} site-lisp configuration\n\n/
+   1 s/^/\n/
+   }"
 
[[ ${sf} == [0-9][0-9]*-gentoo*.el ]] \
|| ewarn "elisp-site-file-install: bad name of site-init file"
@@ -599,7 +605,7 @@ elisp-site-file-install() {
ebegin "Installing site initialisation file for GNU Emacs"
[[ $1 == "${sf}" ]] || cp "$1" "${sf}"
modules=${EMACSMODULES//@libdir@/$(get_libdir)}
-   sed -i -e 
"1{:x;/^\$/{n;bx;};/^;.*${PN}/I!s:^:${header}\n\n:;1s:^:\n:;}" \
+   sed -i -e "${add_header}" \
-e "s:@SITELISP@:${EPREFIX}${SITELISP}/${my_pn}:g" \
-e "s:@SITEETC@:${EPREFIX}${SITEETC}/${my_pn}:g" \
-e "s:@EMACSMODULES@:${EPREFIX}${modules}/${my_pn}:g;\$q" 
"${sf}"
-- 
2.41.0




[gentoo-dev] [PATCH 2/2] elisp.eclass: Update elisp_src_install

2023-06-29 Thread Ulrich Müller
Call the new elisp-make-site-file function when no explicit site-init
file is found.

Signed-off-by: Ulrich Müller 
---
 eclass/elisp.eclass | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass
index 1ac1a2dbfabf..72e623a12179 100644
--- a/eclass/elisp.eclass
+++ b/eclass/elisp.eclass
@@ -166,7 +166,11 @@ elisp_src_test() {
 elisp_src_install() {
elisp-install ${PN} *.el *.elc
if [[ -n ${SITEFILE} ]]; then
-   elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+   if [[ -f "${FILESDIR}/${SITEFILE}" ]]; then
+   elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+   else
+   elisp-make-site-file "${SITEFILE}"
+   fi
fi
if [[ -n ${ELISP_TEXINFO} ]]; then
set -- ${ELISP_TEXINFO}
-- 
2.41.0




[gentoo-dev] [PATCH 1/2] elisp-common.eclass: New function elisp-make-site-file

2023-06-29 Thread Ulrich Müller
This creates and installs a site-init file for the package. The default
case will add the package's SITELISP subdirectory to Emacs' load-path.
This allows to remove all trivial site-init files (consisting only of a
load-path line).

More complicated cases can be handled by providing additional arguments,
which are appended as lines to the site-init file.

Signed-off-by: Ulrich Müller 
---
 eclass/elisp-common.eclass | 35 +++
 1 file changed, 35 insertions(+)

diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 1f60d3c337b9..ff1b2d0da0f3 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -132,6 +132,17 @@
 # "50${PN}-gentoo.el".  If your subdirectory is not named ${PN}, give
 # the differing name as second argument.
 #
+# For the simple case that only the package's subdirectory needs to be
+# added to the load-path, function elisp-make-site-file() will create
+# and install a site-init file that does just that:
+#
+# @CODE
+#  elisp-make-site-file "${SITEFILE}"
+# @CODE
+#
+# Again, this must be called in src_install().  See the function's
+# documentation for more details on its usage.
+#
 # @SUBSECTION pkg_setup() usage:
 #
 # If your ebuild uses the elisp-compile eclass function to compile
@@ -601,6 +612,30 @@ elisp-site-file-install() {
eend ${ret} "elisp-site-file-install: doins failed" || die
 }
 
+# @FUNCTION: elisp-make-site-file
+# @USAGE:  [subdirectory] [line]...
+# @DESCRIPTION:
+# Create and install a site-init file for the package.  By default,
+# this will add the package's SITELISP subdirectory to Emacs' load-path:
+#
+# @CODE
+#  (add-to-list 'load-path "@SITELISP@")
+# @CODE
+#
+# Additional arguments are appended as lines to the destination file.
+# Any @SITELISP@, @SITEETC@, and @EMACSMODULES@ tokens in these
+# arguments are replaced, as described for elisp-site-file-install.
+
+elisp-make-site-file() {
+   [[ $1 == [0-9][0-9]*-gentoo.el ]] \
+   || die "elisp-make-site-file: bad name of site-init file"
+
+   local f="${T}/$1" my_pn="${2:-${PN}}"
+   shift; shift
+   printf "%s\n" "(add-to-list 'load-path \"@SITELISP@\")" "$@" >"${f}" || 
die
+   elisp-site-file-install "${f}" "${my_pn}"
+}
+
 # @FUNCTION: elisp-site-regen
 # @DESCRIPTION:
 # Regenerate the site-gentoo.el file, based on packages' site
-- 
2.41.0




[gentoo-dev] [PATCH] common-lisp-3.eclass: Don't inherit eutils

2023-06-16 Thread Ulrich Müller
Neither the eclass nor any of the ebuilds inheriting common-lisp-3 needs
eutils features.

Signed-off-by: Ulrich Müller 
---
 eclass/common-lisp-3.eclass | 2 --
 1 file changed, 2 deletions(-)

diff --git a/eclass/common-lisp-3.eclass b/eclass/common-lisp-3.eclass
index 6c87ef3db842..cd654f37b904 100644
--- a/eclass/common-lisp-3.eclass
+++ b/eclass/common-lisp-3.eclass
@@ -18,8 +18,6 @@ esac
 if [[ -z ${_COMMON_LISP_3_ECLASS} ]]; then
 _COMMON_LISP_3_ECLASS=1
 
-inherit eutils
-
 # @ECLASS_VARIABLE: CLIMPLEMENTATIONS
 # @DESCRIPTION:
 # Common Lisp implementations
-- 
2.41.0




[gentoo-dev] [PATCH 2/2] rpm.eclass: Don't inherit eutils in EAPI 7

2023-06-16 Thread Ulrich Müller
None of the ebuilds inheriting rpm in EAPI 7 needs any of the remaining
eutils features.

Signed-off-by: Ulrich Müller 
---
 eclass/rpm.eclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/eclass/rpm.eclass b/eclass/rpm.eclass
index d03493466e1e..d8bb0ad2814d 100644
--- a/eclass/rpm.eclass
+++ b/eclass/rpm.eclass
@@ -9,8 +9,7 @@
 
 case ${EAPI} in
6) inherit epatch eutils ;; # eutils for eqawarn
-   7) inherit eutils ;; # not needed, but ebuilds may still rely on it
-   8) ;;
+   7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
-- 
2.41.0




[gentoo-dev] [PATCH 1/2] rpm.eclass: Drop support for EAPI 5

2023-06-16 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/rpm.eclass | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/eclass/rpm.eclass b/eclass/rpm.eclass
index c97e23144c2b..d03493466e1e 100644
--- a/eclass/rpm.eclass
+++ b/eclass/rpm.eclass
@@ -1,14 +1,14 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: rpm.eclass
 # @MAINTAINER:
 # base-sys...@gentoo.org
-# @SUPPORTED_EAPIS: 5 6 7 8
+# @SUPPORTED_EAPIS: 6 7 8
 # @BLURB: convenience class for extracting RPMs
 
 case ${EAPI} in
-   5|6) inherit epatch eutils ;; # eutils for eqawarn
+   6) inherit epatch eutils ;; # eutils for eqawarn
7) inherit eutils ;; # not needed, but ebuilds may still rely on it
8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
@@ -20,7 +20,7 @@ _RPM_ECLASS=1
 inherit estack
 
 case ${EAPI} in
-   5|6) DEPEND="app-arch/rpm2targz" ;;
+   6) DEPEND="app-arch/rpm2targz" ;;
*) BDEPEND="app-arch/rpm2targz" ;;
 esac
 
@@ -98,7 +98,7 @@ rpm_src_unpack() {
 # files around, well this won't handle that.
 rpm_spec_epatch() {
# no epatch in EAPI 7 and later
-   [[ ${EAPI} == [56] ]] || die "${FUNCNAME} is banned in EAPI ${EAPI}"
+   [[ ${EAPI} == 6 ]] || die "${FUNCNAME} is banned in EAPI ${EAPI}"
 
local p spec=$1
local dir
-- 
2.41.0




[gentoo-dev] [PATCH 2/2] mercurial.eclass: Don't inherit eutils

2023-06-15 Thread Ulrich Müller
None of the ebuilds inheriting mercurial.eclass needs any of the
remaining eutils features in EAPI 7.

Signed-off-by: Ulrich Müller 
---
 eclass/mercurial.eclass | 8 
 1 file changed, 8 deletions(-)

diff --git a/eclass/mercurial.eclass b/eclass/mercurial.eclass
index 472d7448d513..16d9fc87cb0a 100644
--- a/eclass/mercurial.eclass
+++ b/eclass/mercurial.eclass
@@ -25,14 +25,6 @@ _MERCURIAL_ECLASS=1
 
 PROPERTIES+=" live"
 
-case ${EAPI:-0} in
-   7)
-   # For compatibiilty only (indirect inherits).
-   # Eclass itself doesn't need it.
-   inherit eutils
-   ;;
-esac
-
 BDEPEND="dev-vcs/mercurial"
 
 # @ECLASS_VARIABLE: EHG_REPO_URI
-- 
2.41.0




[gentoo-dev] [PATCH 1/2] mercurial.eclass: Fix typo in eclassdoc

2023-06-15 Thread Ulrich Müller
Fixes: 216f39ea557e3950aa4d0c174f36df737afcb5fe
Signed-off-by: Ulrich Müller 
---
 eclass/mercurial.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/mercurial.eclass b/eclass/mercurial.eclass
index 27fb525bcbd6..472d7448d513 100644
--- a/eclass/mercurial.eclass
+++ b/eclass/mercurial.eclass
@@ -3,7 +3,7 @@
 
 # @ECLASS: mercurial.eclass
 # @MAINTAINER:
-# No maintainer 
 # @AUTHOR:
 # Next gen author: Krzysztof Pawlik 
 # Original author: Aron Griffis 
-- 
2.41.0




[gentoo-dev] [PATCH] flag-o-matic.eclass: Don't inherit eutils in EAPI 7

2023-06-15 Thread Ulrich Müller
None of the ebuilds inheriting flag-o-matic in EAPI 7 needs any of the
remaining eutils features.

Signed-off-by: Ulrich Müller 
---
 eclass/flag-o-matic.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index bef3abf69dde..0558e639b981 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -20,7 +20,7 @@ _FLAG_O_MATIC_ECLASS=1
 
 inherit toolchain-funcs
 
-[[ ${EAPI} == [67] ]] && inherit eutils
+[[ ${EAPI} == 6 ]] && inherit eutils
 
 # @FUNCTION: all-flag-vars
 # @DESCRIPTION:
-- 
2.41.0




[gentoo-dev] [PATCH] estack.eclass: Fix bug in eshopts_push()

2023-06-14 Thread Ulrich Müller
"eshopts_push -s autocd; eshopts_pop" (i.e. the first option listed
by "shopt -p") would not restore the option because of bogus whitespace
in the saved string.

Signed-off-by: Ulrich Müller 
---
 eclass/estack.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/estack.eclass b/eclass/estack.eclass
index c0823adb03f7..d00c931e117d 100644
--- a/eclass/estack.eclass
+++ b/eclass/estack.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: estack.eclass
@@ -156,7 +156,7 @@ evar_pop() {
 eshopts_push() {
# Save both "shopt" and "set -o" option sets, because otherwise
# restoring posix would disable expand_aliases by side effect. #662586
-   estack_push eshopts "$(shopt -p -o) $(shopt -p)"
+   estack_push eshopts "$(shopt -p -o; shopt -p)"
if [[ $1 == -[su] ]] ; then
[[ $# -le 1 ]] && return 0
shopt "$@" || die "${FUNCNAME}: bad options to shopt: $*"
-- 
2.41.0




[gentoo-dev] [PATCH] eapi8-dosym.eclass: Prevent globbing of argument in _dosym8_canonicalize

2023-06-05 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/eapi8-dosym.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/eapi8-dosym.eclass b/eclass/eapi8-dosym.eclass
index 4e3977ef54cf..93b11dda7fd6 100644
--- a/eclass/eapi8-dosym.eclass
+++ b/eclass/eapi8-dosym.eclass
@@ -31,7 +31,7 @@ esac
 _dosym8_canonicalize() {
local path slash i prev out IFS=/
 
-   path=( $1 )
+   read -r -d '' -a path <<< "$1"
[[ $1 == /* ]] && slash=/
 
while true; do
@@ -39,7 +39,7 @@ _dosym8_canonicalize() {
# or as a special case, "/.." at the beginning of the path.
# Also drop empty and "." path components as we go along.
prev=
-   for i in ${!path[@]}; do
+   for i in "${!path[@]}"; do
if [[ -z ${path[i]} || ${path[i]} == . ]]; then
unset "path[i]"
elif [[ ${path[i]} != .. ]]; then
-- 
2.41.0




[gentoo-dev] [PATCH 1/3] texlive-module.eclass: Speed up SRC_URI calculation

2023-06-02 Thread Ulrich Müller
For texlive-latexextra-2021, SRC_URI calculation ran for 37 seconds
here. Reduced it to 0.025 seconds (i.e. more than a factor 1000) by
using bash arrays and parameter expansion instead of nested loops.

Reported-by: Tim Harder 
Signed-off-by: Ulrich Müller 
---
 eclass/texlive-module.eclass | 39 +---
 1 file changed, 23 insertions(+), 16 deletions(-)

diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index fea4003c37a8..99a90d91654f 100644
--- a/eclass/texlive-module.eclass
+++ b/eclass/texlive-module.eclass
@@ -99,32 +99,39 @@ TEXLIVE_DEVS=${TEXLIVE_DEVS:- zlogene dilfridge sam }
 BDEPEND="${COMMON_DEPEND}
app-arch/xz-utils"
 
-for i in ${TEXLIVE_MODULE_CONTENTS}; do
-   for tldev in ${TEXLIVE_DEVS}; do
-   SRC_URI="${SRC_URI} 
https://dev.gentoo.org/~${tldev}/distfiles/texlive/tl-${i}-${PV}.${PKGEXT}";
-   done
+tl_uri_prefix="https://dev.gentoo.org/~@dev@/distfiles/texlive/tl-";
+tl_uri_suffix="-${PV}.${PKGEXT}"
+
+tl_uri=( ${TEXLIVE_MODULE_CONTENTS} )
+tl_uri=( "${tl_uri[@]/%/${tl_uri_suffix}}" )
+for tldev in ${TEXLIVE_DEVS}; do
+   SRC_URI+=" ${tl_uri[@]/#/${tl_uri_prefix/@dev@/${tldev}}}"
 done
 
 # Forge doc SRC_URI
-[[ -n ${TEXLIVE_MODULE_DOC_CONTENTS} ]] && SRC_URI="${SRC_URI} doc? ("
-for i in ${TEXLIVE_MODULE_DOC_CONTENTS}; do
+if [[ -n ${TEXLIVE_MODULE_DOC_CONTENTS} ]]; then
+   SRC_URI+=" doc? ("
+   tl_uri=( ${TEXLIVE_MODULE_DOC_CONTENTS} )
+   tl_uri=( "${tl_uri[@]/%/${tl_uri_suffix}}" )
for tldev in ${TEXLIVE_DEVS}; do
-   SRC_URI="${SRC_URI} 
https://dev.gentoo.org/~${tldev}/distfiles/texlive/tl-${i}-${PV}.${PKGEXT}";
+   SRC_URI+=" ${tl_uri[@]/#/${tl_uri_prefix/@dev@/${tldev}}}"
done
-done
-[[ -n ${TEXLIVE_MODULE_DOC_CONTENTS} ]] && SRC_URI="${SRC_URI} )"
+   SRC_URI+=" )"
+fi
 
 # Forge source SRC_URI
-if [[ -n ${TEXLIVE_MODULE_SRC_CONTENTS} ]] ; then
-   SRC_URI="${SRC_URI} source? ("
-   for i in ${TEXLIVE_MODULE_SRC_CONTENTS}; do
-   for tldev in ${TEXLIVE_DEVS}; do
-   SRC_URI="${SRC_URI} 
https://dev.gentoo.org/~${tldev}/distfiles/texlive/tl-${i}-${PV}.${PKGEXT}";
-   done
+if [[ -n ${TEXLIVE_MODULE_SRC_CONTENTS} ]]; then
+   SRC_URI+=" source? ("
+   tl_uri=( ${TEXLIVE_MODULE_SRC_CONTENTS} )
+   tl_uri=( "${tl_uri[@]/%/${tl_uri_suffix}}" )
+   for tldev in ${TEXLIVE_DEVS}; do
+   SRC_URI+=" ${tl_uri[@]/#/${tl_uri_prefix/@dev@/${tldev}}}"
done
-   SRC_URI="${SRC_URI} )"
+   SRC_URI+=" )"
 fi
 
+unset tldev tl_uri tl_uri_prefix tl_uri_suffix
+
 RDEPEND="${COMMON_DEPEND}"
 
 IUSE="${IUSE} doc"
-- 
2.40.1




[gentoo-dev] [PATCH 3/3] texlive-module.eclass: Whitespace

2023-06-02 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/texlive-module.eclass | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index a5c86b65cef0..f9907ab7b617 100644
--- a/eclass/texlive-module.eclass
+++ b/eclass/texlive-module.eclass
@@ -341,8 +341,8 @@ texlive-module_src_compile() {
done
 
# Determine texlive-core version for fmtutil call
-fmt_call="$(has_version '>=app-text/texlive-core-2019' \
- && echo "fmtutil-user" || echo "fmtutil")"
+   fmt_call="$(has_version '>=app-text/texlive-core-2019' \
+   && echo "fmtutil-user" || echo "fmtutil")"
 
# Build format files
for i in texmf-dist/fmtutil/format*.cnf; do
@@ -402,7 +402,6 @@ texlive-module_src_install() {
cp -pR tlpkg "${ED}/usr/share/" || die
fi
 
-
if [[ -d texmf-var ]]; then
insinto /var/lib/texmf
doins -r texmf-var/.
-- 
2.40.1




[gentoo-dev] [PATCH 2/3] texlive-module.eclass: Reduce number of executed external commands

2023-06-02 Thread Ulrich Müller
For texlive-latexextra-2021[doc], the number of "mv" commands is
reduced from 12718 to 3130. Speedup is also by a factor of about 4,
which saves another 4 seconds.

Signed-off-by: Ulrich Müller 
---
 eclass/texlive-module.eclass | 12 ++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index 99a90d91654f..a5c86b65cef0 100644
--- a/eclass/texlive-module.eclass
+++ b/eclass/texlive-module.eclass
@@ -164,10 +164,18 @@ texlive-module_src_unpack() {
sed -e 's/\/[^/]*$//' -e "s:^:${RELOC_TARGET}/:" "${T}/reloclist" |
sort -u |
xargs mkdir -p || die
-   local i
+   local i dir="" files=()
while read i; do
-   mv "${i}" "${RELOC_TARGET}/${i%/*}" || die
+   if [[ ${RELOC_TARGET}/${i%/*} != "${dir}" ]]; then
+   # new dir, do the previous move
+   [[ -z ${dir} ]] || mv "${files[@]}" "${dir}" || die
+   dir="${RELOC_TARGET}/${i%/*}"
+   files=()
+   fi
+   # collect files with same destination dir
+   files+=( "${i}" )
done < "${T}/reloclist"
+   mv "${files[@]}" "${dir}" || die
 }
 
 # @FUNCTION: texlive-module_add_format
-- 
2.40.1




[gentoo-dev] [PATCH 3/3] autotools.eclass: Whitespace

2023-05-28 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/autotools.eclass | 1 -
 1 file changed, 1 deletion(-)

diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 7b94efc225fe..77124e098aac 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -389,7 +389,6 @@ eautoconf() {
die "No configure.{ac,in} present!"
fi
 
-
if [[ ${WANT_AUTOCONF} != "2.1" && -e configure.in ]] ; then
case ${EAPI} in
6|7)
-- 
2.40.1




[gentoo-dev] [PATCH 2/3] autotools.eclass: Allow running the tools only in src_prepare

2023-05-28 Thread Ulrich Müller
Running them in src_unpack made sense only in EAPIs 0 and 1.

Fixes: 18fda95cea306efe8009d1100195225acd8f8756
Signed-off-by: Ulrich Müller 
---
 eclass/autotools.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 3a040b863eea..7b94efc225fe 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -560,7 +560,7 @@ autotools_run_tool() {
shift
done
 
-   if [[ ${EBUILD_PHASE_FUNC} != "src_unpack" && ${EBUILD_PHASE_FUNC} != 
"src_prepare" ]] ; then
+   if [[ ${EBUILD_PHASE_FUNC} != "src_prepare" ]] ; then
eqawarn "Running '${1}' in ${EBUILD_PHASE_FUNC} phase"
fi
 
-- 
2.40.1




[gentoo-dev] [PATCH 1/3] autotools.eclass: Downgrade eqawarn for renaming configure.in

2023-05-28 Thread Ulrich Müller
At this point, almost all upstreams will have switched to configure.ac.
Therefore, configure.in is most likely an indication of an inactive
upstream, and there is no useful way for the ebuild maintainer to
silence the warning (other than the ebuild renaming the file).

Keep the message as einfo, so there is still an indication that the file
was renamed.

Bug: https://bugs.gentoo.org/426262
Signed-off-by: Ulrich Müller 
---
 eclass/autotools.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 91046b9f82f3..3a040b863eea 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -400,7 +400,7 @@ eautoconf() {
*)
# Move configure file to the new location only 
on newer EAPIs to ensure
# checks are done rather than retroactively 
breaking ebuilds.
-   eqawarn "Moving configure.in to configure.ac 
(bug #426262)"
+   einfo "Moving configure.in to configure.ac (bug 
#426262)"
mv configure.{in,ac} || die
;;
esac
-- 
2.40.1




[gentoo-dev] [PATCH] elisp-common.eclass: Drop EAPI 6 support

2023-05-08 Thread Ulrich Müller
Signed-off-by: Ulrich Müller 
---
 eclass/elisp-common.eclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 0462f022d1ba..1f60d3c337b9 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -11,7 +11,7 @@
 # Christian Faulhammer 
 # Ulrich Müller 
 # Maciej Barć 
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: Emacs-related installation utilities
 # @DESCRIPTION:
 #
@@ -167,7 +167,6 @@
 # to above calls of elisp-site-regen().
 
 case ${EAPI} in
-   6) inherit eapi7-ver ;;
7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
-- 
2.40.1




[gentoo-dev] [PATCH] multilib.eclass: Drop CONF_LIBDIR

2023-05-06 Thread Ulrich Müller
The CONF_LIBDIR variable was used exclusively in the 2004.3 profile
(i.e. it was no longer defined in 2005.0), before the ABI and
LIBDIR_${ABI} variables existed.

Simply use "lib" as default, which is consistent with get_libdir().

Bug: https://bugs.gentoo.org/267159
Signed-off-by: Ulrich Müller 
---
 eclass/multilib.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass
index 4a6e4160d5cb..77340a23e30f 100644
--- a/eclass/multilib.eclass
+++ b/eclass/multilib.eclass
@@ -26,7 +26,7 @@ export CFLAGS_default
 export LDFLAGS_default
 export CHOST_default=${CHOST_default:-${CHOST}}
 export CTARGET_default=${CTARGET_default:-${CTARGET:-${CHOST_default}}}
-export LIBDIR_default=${CONF_LIBDIR:-"lib"}
+export LIBDIR_default="lib"
 export KERNEL_ABI=${KERNEL_ABI:-${DEFAULT_ABI}}
 
 # @FUNCTION: has_multilib_profile
-- 
2.40.1




[gentoo-dev] [PATCH 61/61] xorg-3.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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} == ** ]]; 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} == ** ]]; 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




[gentoo-dev] [PATCH 60/61] xemacs-packages.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 59/61] xdg-utils.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 58/61] waf-utils.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 57/61] virtualx.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 56/61] vim-spell.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 55/61] vim-plugin.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 54/61] verify-sig.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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:   []
-- 
2.40.0




[gentoo-dev] [PATCH 53/61] vala.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 52/61] unpacker.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 51/61] toolchain.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 50/61] toolchain-funcs.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 49/61] stardict.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 48/61] ssl-cert.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 47/61] selinux-policy-2.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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
)   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




[gentoo-dev] [PATCH 46/61] rust-toolchain.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 45/61] ruby-ng-gnome2.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 44/61] readme.gentoo-r1.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 43/61] qt6-build.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 42/61] qt5-build.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 41/61] pypi.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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: 
-- 
2.40.0




[gentoo-dev] [PATCH 40/61] plasma-mobile.kde.org.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 39/61] php-pear-r2.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 38/61] php-ext-source-r3.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 37/61] opam.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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: 
-- 
2.40.0




[gentoo-dev] [PATCH 36/61] office-ext-r1.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 35/61] ninja-utils.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 34/61] multilib.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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

[gentoo-dev] [PATCH 33/61] mozlinguas-v2.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 32/61] mozextension.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 31/61] meson.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 30/61] mercurial.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 29/61] mate.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 28/61] mate-desktop.org.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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} !=  ]] && : ${MATE_TARBALL_SUFFIX:="xz"}
+[[ ${PV} !=  ]] && : "${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 ''.
-: ${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} ==  ]]; then
-- 
2.40.0




[gentoo-dev] [PATCH 27/61] linux-mod.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 26/61] linux-info.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 25/61] libretro-core.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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} == * ]]; 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




[gentoo-dev] [PATCH 24/61] kernel-2.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 23/61] kde.org.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 22/61] java-pkg-simple.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 21/61] haskell-cabal.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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

[gentoo-dev] [PATCH 20/61] gstreamer-meson.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 19/61] golang-vcs.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 18/61] gnome2-utils.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 17/61] gnome.org.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




[gentoo-dev] [PATCH 16/61] git-r3.eclass: Quote argument of ":" command

2023-03-24 Thread Ulrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223

Signed-off-by: Ulrich Müller 
---
 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




  1   2   3   4   >