commit: 6dd17872938f2008941c42e2e634dbef2e74ddaf Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Thu Mar 23 16:40:01 2023 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Mar 26 12:28:26 2023 +0000 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=6dd17872
qt6-build.eclass: Quote argument of ":" command This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> eclass/qt6-build.eclass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eclass/qt6-build.eclass b/eclass/qt6-build.eclass index 79c06f34..91f076ad 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 ######
