View | Details | Raw Unified
Collapse All | Expand All

(-) revdep-rebuild-rewrite.orig (-6 / +11 lines)
 Lines 208-213    Link Here 
			;;
			;;
		-P|--no-progress)
		-P|--no-progress)
			progress() { :; }
			progress() { :; }
			;;
		-q|--quiet)
		-q|--quiet)
			echo_v() { :; }
			echo_v() { :; }
			progress() { :; }
			progress() { :; }
 Lines 583-597    Link Here 
		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"