Task #119278 - fixed.err
back to task #119278download
Error: SHELLCHECK_WARNING (CWE-153):
/usr/share/makepkg/autodep/library_depends.sh:54:28: warning[SC2053]: Quote the right-hand side of == in [[ ]] to prevent glob matching.
# 52| unset prefix
# 53| for libdir in ${LIB_DIRS[@]}; do
# 54|-> if [[ ${libdir/*:} == ${libpath} ]]; then
# 55| prefix=${libdir/:*}
# 56| fi
Error: SHELLCHECK_WARNING (CWE-457):
/usr/share/makepkg/lint_pkgbuild/arch.sh:36:21: warning[SC2154]: arch is referenced but not assigned.
# 34| local a name list ret=0
# 35|
# 36|-> if in_array "any" "${arch[@]}"; then
# 37| if (( ${#arch[@]} == 1 )); then
# 38| return 0;
Error: SHELLCHECK_WARNING (CWE-457):
/usr/share/makepkg/lint_pkgbuild/pkglist.sh:37:23: warning[SC2154]: pkgname is referenced but not assigned.
# 35|
# 36| for i in "${PKGLIST[@]}"; do
# 37|-> if ! in_array "$i" "${pkgname[@]}"; then
# 38| error "$(gettext "Requested package %s is not provided in %s")" "$i" "$BUILDFILE"
# 39| ret=1
Error: SHELLCHECK_WARNING (CWE-88):
/usr/share/makepkg/tidy/docs.sh:35:13: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
# 33| if check_option "docs" "n" && [[ -n ${DOC_DIRS[*]} ]]; then
# 34| msg2 "$(gettext "Removing doc files...")"
# 35|-> rm -rf -- ${DOC_DIRS[@]}
# 36| fi
# 37| }
Error: SHELLCHECK_WARNING (CWE-149):
/usr/share/makepkg/tidy/libtool.sh:35:30: warning[SC2140]: Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"?
# 33| tidy_libtool() {
# 34| if check_option "libtool" "n"; then
# 35|-> msg2 "$(gettext "Removing "%s" files...")" "libtool"
# 36| find . ! -type d -name "*.la" -exec rm -f -- '{}' +
# 37| fi
Error: SHELLCHECK_WARNING (CWE-457):
/usr/share/makepkg/tidy/strip.sh:49:15: warning[SC2154]: srcdir is referenced but not assigned.
# 47|
# 48| LANG=C debugedit --no-recompute-build-id \
# 49|-> --base-dir "${srcdir}" \
# 50| --dest-dir "${dbgsrcdir}" \
# 51| --list-file /dev/stdout "$1" \
Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/makepkg/tidy/strip.sh:73:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
# 71|
# 72| if check_option "debug" "y"; then
# 73|-> local bid=$(build_id "$binary")
# 74|
# 75| # has this file already been stripped
Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/makepkg/tidy/strip.sh:95:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
# 93| fi
# 94|
# 95|-> local tempfile=$(mktemp "$binary.XXXXXX")
# 96| objcopy --add-gnu-debuglink="$dbgdir/${binary#/}.debug" "$binary" "$tempfile"
# 97| cat "$tempfile" > "$binary"
Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/makepkg/tidy/strip.sh:125:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
# 123| strip_file(){
# 124| local binary=$1; shift
# 125|-> local tempfile=$(mktemp "$binary.XXXXXX")
# 126| if strip "$@" "$binary" -o "$tempfile"; then
# 127| cat "$tempfile" > "$binary"
Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/makepkg/tidy/strip.sh:135:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
# 133| local binary=$1;
# 134|
# 135|-> local tempfile=$(mktemp "$binary.XXXXXX")
# 136| if strip -R .gnu.lto_* -R .gnu.debuglto_* -N __gnu_lto_v1 "$binary" -o "$tempfile"; then
# 137| cat "$tempfile" > "$binary"
Error: SHELLCHECK_WARNING (CWE-457):
/usr/share/makepkg/tidy/strip.sh:151:12: warning[SC2154]: pkgdirbase is referenced but not assigned.
# 149|
# 150| if check_option "debug" "y"; then
# 151|-> dbgdir="$pkgdirbase/$pkgbase-debug/usr/lib/debug"
# 152| dbgsrcdir="${DBGSRCDIR:-/usr/src/debug}/${pkgbase}"
# 153| dbgsrc="$pkgdirbase/$pkgbase-debug$dbgsrcdir"
Error: SHELLCHECK_WARNING (CWE-457):
/usr/share/makepkg/tidy/strip.sh:151:24: warning[SC2154]: pkgbase is referenced but not assigned.
# 149|
# 150| if check_option "debug" "y"; then
# 151|-> dbgdir="$pkgdirbase/$pkgbase-debug/usr/lib/debug"
# 152| dbgsrcdir="${DBGSRCDIR:-/usr/src/debug}/${pkgbase}"
# 153| dbgsrc="$pkgdirbase/$pkgbase-debug$dbgsrcdir"
Error: SHELLCHECK_WARNING (CWE-563):
/usr/share/makepkg/util/config.sh:81:14: warning[SC2034]: BUILDENV appears unused. Verify use (or export if used externally).
# 79|
# 80| # prevent PKGBUILDs altering this directly
# 81|-> readonly -a BUILDENV
# 82|
# 83| eval "$restore_envvars"
Error: SHELLCHECK_WARNING (CWE-457):
/usr/share/makepkg/util/option.sh:85:40: warning[SC2154]: options is referenced but not assigned (did you mean 'option'?).
# 83| ##
# 84| check_option() {
# 85|-> check_opt_array "$@" "${OPTIONS[@]}" "${options[@]}"
# 86| }
# 87|
Error: COMPILER_WARNING (CWE-1023):
pacman-v7.0.0/lib/libalpm/signing.c: scope_hint: In function ‘key_search_keyserver’
pacman-v7.0.0/lib/libalpm/signing.c:378:9: warning[-Wswitch]: enumeration value ‘GPGME_PK_KYBER’ not handled in switch
# 378 | switch(key->subkeys->pubkey_algo) {
# | ^~~~~~
# 376| pgpkey->pubkey_algo = '?';
# 377|
# 378|-> switch(key->subkeys->pubkey_algo) {
# 379| case GPGME_PK_RSA:
# 380| case GPGME_PK_RSA_E: