Error: SHELLCHECK_WARNING (CWE-477): [#def1] /usr/lib/rpm/redhat/brp-python-bytecompile:17:27: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 15| # 16| # If using normal root, avoid changing anything. # 17|-> if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then # 18| exit 0 # 19| fi Error: SHELLCHECK_WARNING (CWE-569): [#def2] /usr/lib/rpm/redhat/brp-python-bytecompile:72:39: warning[SC2089]: Quotes/backslashes will be treated literally. Use an array. # 70| fi # 71| # 72|-> [ ! -z $exclude ] && exclude="-x '$exclude'" # 73| # 74| # PYTHONPATH is needed for compileall2, but doesn't hurt for the stdlib Error: SHELLCHECK_WARNING (CWE-569): [#def3] /usr/lib/rpm/redhat/brp-python-bytecompile:83:115: warning[SC2090]: Quotes/backslashes in this variable will not be respected. # 81| # -s strips $RPM_BUILD_ROOT from the path # 82| # -p prepends the leading slash to the path to make it absolute # 83|-> PYTHONPATH=/usr/lib/rpm/redhat/ $python_binary -B -m $compileall_module $compileall_flags -o 0 -o 1 -q -f $exclude -s "$RPM_BUILD_ROOT" -p / --hardlink-dupes $invalidation_option -e "$RPM_BUILD_ROOT" "$python_libdir" # 84| # 85| else Error: SHELLCHECK_WARNING (CWE-477): [#def4] /usr/lib/rpm/redhat/brp-python-bytecompile:140:16: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 138| # Generate normal (.pyc) byte-compiled files. # 139| python_clamp_source_mtime "" "$python_binary" "" "$python_libdir" "" # 140|-> if [ $? -ne 0 -a 0$errors_terminate -ne 0 ]; then # 141| # One or more of the files had inaccessible mtime # 142| exit 1 Error: SHELLCHECK_WARNING (CWE-477): [#def5] /usr/lib/rpm/redhat/brp-python-bytecompile:145:16: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 143| fi # 144| python_bytecompile "" "$python_binary" "" "$python_libdir" "$compileall_flags" # 145|-> if [ $? -ne 0 -a 0$errors_terminate -ne 0 ]; then # 146| # One or more of the files had a syntax error # 147| exit 1 Error: SHELLCHECK_WARNING (CWE-477): [#def6] /usr/lib/rpm/redhat/brp-python-bytecompile:153:16: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 151| # N.B. For Python 3.4+, this call does nothing # 152| python_bytecompile "-O" "$python_binary" "" "$python_libdir" "$compileall_flags" # 153|-> if [ $? -ne 0 -a 0$errors_terminate -ne 0 ]; then # 154| # One or more of the files had a syntax error # 155| exit 1 Error: SHELLCHECK_WARNING: [#def7] /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo:9:155: warning[SC3045]: In POSIX sh, read -d is undefined. # 7| fi # 8| # 9|-> find "$RPM_BUILD_ROOT" -name 'INSTALLER' -type f -print0|grep -z -E "/usr/lib(64)?/python3\.[0-9]+/site-packages/[^/]+\.dist-info/INSTALLER" | while read -d "" installer ; do # 10| if cmp -s <(echo pip) "$installer" ; then # 11| echo "rpm" > "$installer" Error: SHELLCHECK_WARNING: [#def8] /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo:10:12: warning[SC3001]: In POSIX sh, process substitution is undefined. # 8| # 9| find "$RPM_BUILD_ROOT" -name 'INSTALLER' -type f -print0|grep -z -E "/usr/lib(64)?/python3\.[0-9]+/site-packages/[^/]+\.dist-info/INSTALLER" | while read -d "" installer ; do # 10|-> if cmp -s <(echo pip) "$installer" ; then # 11| echo "rpm" > "$installer" # 12| rm -f $(dirname "$installer")/RECORD Error: SHELLCHECK_WARNING (CWE-156): [#def9] /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo:12:9: warning[SC2046]: Quote this to prevent word splitting. # 10| if cmp -s <(echo pip) "$installer" ; then # 11| echo "rpm" > "$installer" # 12|-> rm -f $(dirname "$installer")/RECORD # 13| fi # 14| done
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-24.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | python-rpm-macros-3.13-5.fc43 |
store-results-to | /tmp/tmp68bi2m5h/python-rpm-macros-3.13-5.fc43.tar.xz |
time-created | 2025-04-25 15:10:35 |
time-finished | 2025-04-25 15:11:38 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp68bi2m5h/python-rpm-macros-3.13-5.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp68bi2m5h/python-rpm-macros-3.13-5.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |