mps
This commit is contained in:
parent
3aad23183b
commit
343acf3f7f
1
bin/mps
1
bin/mps
|
@ -3002,7 +3002,6 @@ ayarlar() {
|
||||||
-devk)
|
-devk)
|
||||||
if [ ! "$2" ]; then
|
if [ ! "$2" ]; then
|
||||||
ryaz 31 "paket ismi eksik"
|
ryaz 31 "paket ismi eksik"
|
||||||
hataloglama "(kirma) paket ismi eksik"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
devir_kontrol_durum "$2"
|
devir_kontrol_durum "$2"
|
||||||
|
|
|
@ -42,10 +42,10 @@ while : ; do
|
||||||
-h | --help )
|
-h | --help )
|
||||||
echo "Usage: $0 [OPTIONS] [--]"
|
echo "Usage: $0 [OPTIONS] [--]"
|
||||||
echo
|
echo
|
||||||
echo "Broken reverse dependency checker."
|
echo "Sistemdeki ters gereklerin kırık kontrolü."
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo " --force remove old revdep-rebuild files"
|
echo " --force remove old revdep-rebuild files"
|
||||||
echo
|
echo
|
||||||
echo " --soname SONAME recompile packages using library with SONAME instead"
|
echo " --soname SONAME recompile packages using library with SONAME instead"
|
||||||
echo " of broken library (SONAME providing library must be"
|
echo " of broken library (SONAME providing library must be"
|
||||||
|
@ -117,7 +117,7 @@ if $SEARCH_BROKEN ; then
|
||||||
LLIST=$LIST
|
LLIST=$LIST
|
||||||
HEAD_TEXT="broken by any package update"
|
HEAD_TEXT="broken by any package update"
|
||||||
OK_TEXT="Dynamic linking on your system is consistent"
|
OK_TEXT="Dynamic linking on your system is consistent"
|
||||||
WORKING_TEXT=" consistency"
|
WORKING_TEXT=" tutarlılık modu"
|
||||||
else
|
else
|
||||||
SONAME_SEARCH=" $SONAME "
|
SONAME_SEARCH=" $SONAME "
|
||||||
LLIST=${LIST}_$(echo "$SONAME_SEARCH$SONAME" | md5sum | head -c 8)
|
LLIST=${LIST}_$(echo "$SONAME_SEARCH$SONAME" | md5sum | head -c 8)
|
||||||
|
@ -127,12 +127,12 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Checking reverse dependencies..."
|
echo "Ters bağımlılıklar kontrol ediliyor..."
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo -n -e "${GR}Collecting system binaries and libraries...${NO}"
|
echo -n -e "${GR}Sistemdeki ikili ve kütüphane dosyaları toplanıyor...${NO}"
|
||||||
if [ -f $LIST.1_files ] ; then
|
if [ -f $LIST.1_files ] ; then
|
||||||
echo " using existing $LIST.1_files."
|
echo "var olan $LIST.1_files dosyası kullanılacak"
|
||||||
else
|
else
|
||||||
set_trap "$LIST.1_files"
|
set_trap "$LIST.1_files"
|
||||||
EXCLUDED_DIRS=
|
EXCLUDED_DIRS=
|
||||||
|
@ -140,14 +140,14 @@ else
|
||||||
EXCLUDED_DIRS+="-path $d -prune -o "
|
EXCLUDED_DIRS+="-path $d -prune -o "
|
||||||
done
|
done
|
||||||
find $SEARCH_DIRS $EXCLUDED_DIRS -type f \( -perm /+u+x -o -name '*.so' -o -name '*.so.*' \) 2>/dev/null >$LIST.1_files
|
find $SEARCH_DIRS $EXCLUDED_DIRS -type f \( -perm /+u+x -o -name '*.so' -o -name '*.so.*' \) 2>/dev/null >$LIST.1_files
|
||||||
echo -e " done.\n ($LIST.1_files)"
|
echo -e " tamamlandı.\n ($LIST.1_files)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $SEARCH_BROKEN ; then
|
if $SEARCH_BROKEN ; then
|
||||||
echo
|
echo
|
||||||
echo -n -e "${GR}Collecting complete LD_LIBRARY_PATH...${NO}"
|
echo -n -e "${GR}Toplama tamamlandı LD_LIBRARY_PATH...${NO}"
|
||||||
if [ -f $LIST.2_ldpath ] ; then
|
if [ -f $LIST.2_ldpath ] ; then
|
||||||
echo " using existing $LIST.2_ldpath."
|
echo " var olan $LIST.2_ldpath dosyası kullanılacak."
|
||||||
else
|
else
|
||||||
set_trap "$LIST.2_ldpath"
|
set_trap "$LIST.2_ldpath"
|
||||||
(
|
(
|
||||||
|
@ -155,15 +155,15 @@ if $SEARCH_BROKEN ; then
|
||||||
sed '/^#/d;s/#.*$//' </etc/ld.so.conf
|
sed '/^#/d;s/#.*$//' </etc/ld.so.conf
|
||||||
) | sort -u |
|
) | sort -u |
|
||||||
tr '\n' : | tr -d '\r' | sed 's/:$//' >$LIST.2_ldpath
|
tr '\n' : | tr -d '\r' | sed 's/:$//' >$LIST.2_ldpath
|
||||||
echo -e " done.\n ($LIST.2_ldpath)"
|
echo -e " tamamlandı.\n ($LIST.2_ldpath)"
|
||||||
fi
|
fi
|
||||||
export COMPLETE_LD_LIBRARY_PATH="$(cat $LIST.2_ldpath)"
|
export COMPLETE_LD_LIBRARY_PATH="$(cat $LIST.2_ldpath)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo -n -e "${GR}Checking dynamic linking$WORKING_TEXT...${NO}"
|
echo -n -e "${GR}Dinamik bağlamlar kontrol ediliyor$WORKING_TEXT...${NO}"
|
||||||
if [ -f $LLIST.3_rebuild ] ; then
|
if [ -f $LLIST.3_rebuild ] ; then
|
||||||
echo " using existing $LLIST.3_rebuild."
|
echo " var olan $LLIST.3_rebuild dosyası kullanılıyor"
|
||||||
else
|
else
|
||||||
echo_v
|
echo_v
|
||||||
set_trap "$LLIST.3_rebuild"
|
set_trap "$LLIST.3_rebuild"
|
||||||
|
@ -179,21 +179,21 @@ else
|
||||||
ldd "$FILE" 2>/dev/null | grep -v "$LD_MASK" |
|
ldd "$FILE" 2>/dev/null | grep -v "$LD_MASK" |
|
||||||
$SONAME_GREP -q "$SONAME_SEARCH" ; then
|
$SONAME_GREP -q "$SONAME_SEARCH" ; then
|
||||||
echo "$FILE" >>$LLIST.3_rebuild
|
echo "$FILE" >>$LLIST.3_rebuild
|
||||||
echo_v " broken $FILE (requires $(ldd "$FILE" | sed -n 's/ \(.*\) => not found$/\1/p' | tr '\n' ' ' | sed 's/ $//' ))"
|
echo_v " kırık $FILE (gerekli $(ldd "$FILE" | sed -n 's/ \(.*\) => not found$/\1/p' | tr '\n' ' ' | sed 's/ $//' ))"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "$FILE" >>$LLIST.3_rebuild
|
echo "$FILE" >>$LLIST.3_rebuild
|
||||||
echo_v " found $FILE"
|
echo_v " $FILE bulundu"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo -e " done.\n ($LLIST.3_rebuild)"
|
echo -e " tamamlandı.\n ($LLIST.3_rebuild)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo -n -e "${GR}Determining package names$WORKING_TEXT...${NO}"
|
echo -n -e "${GR}Paket isimleri tespit ediliyor$WORKING_TEXT...${NO}"
|
||||||
if [ -f $LLIST.4_names ] ; then
|
if [ -f $LLIST.4_names ] ; then
|
||||||
echo " using existing $LLIST.4_names."
|
echo " var olan $LLIST.4_names dosyası kullanılacak"
|
||||||
else
|
else
|
||||||
echo_v
|
echo_v
|
||||||
set_trap "$LLIST.4_names"
|
set_trap "$LLIST.4_names"
|
||||||
|
@ -203,7 +203,7 @@ else
|
||||||
done
|
done
|
||||||
cat $LLIST.tmp | sort -d | uniq > $LLIST.4_names
|
cat $LLIST.tmp | sort -d | uniq > $LLIST.4_names
|
||||||
rm -f $LLIST.tmp
|
rm -f $LLIST.tmp
|
||||||
echo -e " done.\n ($LIST.4_names)"
|
echo -e " tamamlandı.\n ($LIST.4_names)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Yeniden derlenmesi gerekenler"
|
echo "Yeniden derlenmesi gerekenler"
|
||||||
|
|
Loading…
Reference in New Issue