File klibc-find-requires of Package klibc

#!/bin/sh -efu

while read f; do
	[ -f "$f" ] || continue
	case "$(file -b "$f")" in
		*ELF*" executable"*"uses shared libs"*)
			i="$(LC_ALL=C readelf -l "$f" | sed -ne 's|^[[:blank:]]*\[Requesting program interpreter: \(/[^]]\+\)\]$|\1|p')"
			case "$i" in
				/lib*/klibc-*.so) echo "$i" ;;
			esac
	esac
done | LC_ALL=C sort -u
openSUSE Build Service is sponsored by