|
|
;; | ;; |
-P|--no-progress) | -P|--no-progress) |
progress() { :; } | progress() { :; } |
|
;; |
-q|--quiet) | -q|--quiet) |
echo_v() { :; } | echo_v() { :; } |
progress() { :; } | progress() { :; } |
|
|
done | done |
if [[ $SEARCH_BROKEN ]]; then | if [[ $SEARCH_BROKEN ]]; then |
# Look for missing version | # Look for missing version |
for target_file in $( |
while read target_file; do |
awk '/no version information available/{ |
echo "obj $target_file" >> "$LIST.3_rebuild" |
|
echo_v " broken $target_file (no version information available)" |
|
done < <( |
|
awk -v ldmask="($LD_LIBRARY_MASK)" ' |
|
BEGIN{ gsub(/\n/, "|", ldmask) } |
|
/no version information available/{ |
gsub("[()]", "", $NF); | gsub("[()]", "", $NF); |
|
if (seen[$NF]++) next; |
|
if ($NF ~ ldmask) next; |
print $NF | print $NF |
}' "$LIST.3_ldd_errors" | sort -u |
}' "$LIST.3_ldd_errors" |
); do | ); do |
echo "obj $target_file" >> "$LIST.3_rebuild" |
|
echo_v " broken $target_file (no version information available)" |
|
done |
|
fi | fi |
[[ -r $LIST.3_rebuild && -s $LIST.3_rebuild ]] || clean_exit | [[ -r $LIST.3_rebuild && -s $LIST.3_rebuild ]] || clean_exit |
einfo "Generated new $LIST.3_rebuild" | einfo "Generated new $LIST.3_rebuild" |