Пакет GMT: Repocop

Статус
Имя теста
Сообщение
GMT-6.4.0-alt1_10x86_64
skip
iconsdir24 апреля 2024 г. 2:35-
GMT-6.4.0-alt1_10x86_64
ok
checkbashisms24 апреля 2024 г. 2:35-
GMT-6.4.0-alt1_10x86_64
ok
sisyphus_check24 апреля 2024 г. 2:35-
GMT-6.4.0-alt1_10x86_64
skip
init-condrestart24 апреля 2024 г. 2:35-
GMT-6.4.0-alt1_10x86_64
ok
buildroot24 апреля 2024 г. 2:35-
GMT-common-6.4.0-alt1_10noarch
ok
sisyphus_check24 апреля 2024 г. 2:35-
GMT-common-6.4.0-alt1_10noarch
skip
init-condrestart24 апреля 2024 г. 2:35-
GMT-common-6.4.0-alt1_10noarch
ok
buildroot24 апреля 2024 г. 2:35-
GMT-common-6.4.0-alt1_10noarch
skip
iconsdir24 апреля 2024 г. 2:35-
GMT-common-6.4.0-alt1_10noarch
error
unsafe-tmp-usage-in-scripts24 апреля 2024 г. 2:35The test discovered scripts with errors which may be used by a user for damaging important system files. For example if a script uses in its work a temp file which is created in /tmp directory, then every user can create symlinks with the same name (pattern) in this directory in order to destroy or rewrite some system or another user's files. Scripts _must_ _use_ mktemp/tempfile or must use $TMPDIR. mktemp/tempfile is safest. $TMPDIR is safer than /tmp/ because libpam-tmpdir creates a subdirectory of /tmp that is only accessible by that user, and then sets TMPDIR and other variables to that. Hence, it doesn't matter nearly as much if you create a non-random filename, because nobody but you can access it. Found error in /usr/share/gmt/tools/gmt_prepmex.sh: $ grep /tmp/ /usr/share/gmt/tools/gmt_prepmex.sh # First get a reliable absolute path to the bundle's top directory pushd $(dirname $0) > /dev/null BUNDLEDIR=$(pwd | sed sB/Contents/Resources/share/toolsBBg) popd > /dev/null # Set path to the new gmt installation MEXGMT5DIR=/tmp/$$/gmt # Set path to additional subdirectories MEXLIBDIR=$MEXGMT5DIR/lib MEXINCDIR=$MEXGMT5DIR/include MEXSHADIR=$MEXGMT5DIR/share MEXBINDIR=$MEXGMT5DIR/bin cp -r etc usr $MEXBINDIR # Now copy the lib files printf "gmt_prepmex.sh: Copy and rename libraries\n" >&2 cd $BUNDLEDIR/Contents/Resources/lib # Find a list of all libs shipped with the OSX bundle, except our own: ls *.dylib | egrep -v 'libgmt.dylib|libpostscriptlight.dylib' > /tmp/l.lis # For each, duplicate into /opt/gmt but add a leading X to each name while read lib; do new=$(echo $lib | awk '{printf "libX%s\n", substr($1,4)}') cp $lib $MEXLIBDIR/$new done < /tmp/l.lis # Copy the supplement shared plugin cp gmt/plugins/supplements.so $MEXLIBDIR/gmt/plugins cd $MEXLIBDIR ls *.dylib > /tmp/l.lis printf "gmt_prepmex.sh: Rebaptize libraries\n" >&2 # For all libs in $MEXLIBDIR, change internal references to contain the leading "X" while read lib; do otool -L $lib | grep executable_path | awk '{print $1}' > /tmp/t.lis let k=1 while read old; do new=$(echo $old | awk -F/ '{printf "libX%s\n", substr($NF,4)}') if [ $k -eq 1 ]; then # Do the id change was=$(echo $lib | awk -F/ '{print substr($1,4)}') install_name_tool -id /opt/gmt/lib/$new $lib else install_name_tool -change $old /opt/gmt/lib/$new $lib fi let k=k+1 done < /tmp/t.lis done < /tmp/l.lis # Set links to the new libs ln -s libXgmt.dylib libgmt.dylib ln -s libXpostscriptlight.dylib libpostscriptlight.dylib ln -s libXgmt.6.dylib libXgmt.dylib ln -s libXpostscriptlight.6.dylib libXpostscriptlight.dylib -- fi fi # Do plugin supplement separately since not called lib* cd gmt/plugins otool -L supplements.so | grep executable_path | awk '{print $1}' > /tmp/t.lis let k=1 while read old; do new=$(echo $old | awk -F/ '{printf "libX%s\n", substr($NF,4)}') install_name_tool -change $old /opt/gmt/lib/$new supplements.so let k=k+1 done < /tmp/t.lis # Do bin dir cd $MEXBINDIR otool -L gmt | grep executable_path | awk '{print $1}' > /tmp/t.lis let k=1 while read old; do new=$(echo $old | awk -F/ '{printf "libX%s\n", substr($NF,4)}') install_name_tool -change $old /opt/gmt/lib/$new gmt let k=k+1 done < /tmp/t.lis chmod -R ugo+r $MEXGMT5DIR printf "gmt_prepmex.sh: Install /opt/gmt\n" >&2 sudo cp -fpR $MEXGMT5DIR /opt rm -rf /tmp/$$ cd $here version=$(/opt/gmt/bin/gmt-config --version) # Report cat << EOF >&2 gmt_prepmex.sh: Made updated GMT $version installation in /opt/gmt;
GMT-common-6.4.0-alt1_10noarch
ok
checkbashisms24 апреля 2024 г. 2:35-
GMT-debuginfo-6.4.0-alt1_10x86_64
skip
init-condrestart24 апреля 2024 г. 2:35-
GMT-debuginfo-6.4.0-alt1_10x86_64
ok
sisyphus_check24 апреля 2024 г. 2:35-
GMT-debuginfo-6.4.0-alt1_10x86_64
ok
checkbashisms24 апреля 2024 г. 2:35-
GMT-debuginfo-6.4.0-alt1_10x86_64
ok
unsafe-tmp-usage-in-scripts24 апреля 2024 г. 2:35-
GMT-debuginfo-6.4.0-alt1_10x86_64
skip
iconsdir24 апреля 2024 г. 2:35-
GMT-debuginfo-6.4.0-alt1_10x86_64
ok
buildroot24 апреля 2024 г. 2:35-
GMT-devel-6.4.0-alt1_10x86_64
ok
unsafe-tmp-usage-in-scripts24 апреля 2024 г. 2:35-
GMT-devel-6.4.0-alt1_10x86_64
ok
sisyphus_check24 апреля 2024 г. 2:35-
GMT-devel-6.4.0-alt1_10x86_64
skip
init-condrestart24 апреля 2024 г. 2:35-
GMT-devel-6.4.0-alt1_10x86_64
skip
iconsdir24 апреля 2024 г. 2:35-
GMT-devel-6.4.0-alt1_10x86_64
ok
checkbashisms24 апреля 2024 г. 2:35-
GMT-devel-6.4.0-alt1_10x86_64
ok
buildroot24 апреля 2024 г. 2:35-
GMT-doc-6.4.0-alt1_10noarch
ok
buildroot24 апреля 2024 г. 2:35-
GMT-doc-6.4.0-alt1_10noarch
skip
init-condrestart24 апреля 2024 г. 2:35-
GMT-doc-6.4.0-alt1_10noarch
ok
sisyphus_check24 апреля 2024 г. 2:35-
GMT-doc-6.4.0-alt1_10noarch
skip
iconsdir24 апреля 2024 г. 2:35-
GMT-doc-6.4.0-alt1_10noarch
ok
unsafe-tmp-usage-in-scripts24 апреля 2024 г. 2:35-
GMT-doc-6.4.0-alt1_10noarch
ok
checkbashisms24 апреля 2024 г. 2:35-