diff --git a/system/base/glibc/revdep-rebuild b/system/base/glibc/revdep-rebuild new file mode 100644 index 00000000..640656f5 --- /dev/null +++ b/system/base/glibc/revdep-rebuild @@ -0,0 +1,20 @@ +#!/bin/bash +export LANG=C +export LC_ALL=C +check(){ + file="$1" + echo -en "\033[2K\rChecking: $file" + ldd $file |& grep "not found" | tr -s " " | cut -f1 -d" " | while read missing ; do + echo -en "\033[2K\r" + echo -e "\033[31;1m$file\033[;0m => $missing" + done | sort | uniq +} + +find /lib64 /lib32 /lib /usr/lib /usr/lib64 /usr/lib32 -type f |& grep ".so$" | while read file; do + check $file +done + +find /bin /sbin /usr/bin/ /usr/sbin -type f |& while read file; do + check $file +done +echo -en "\033[2K\r" diff --git a/system/base/glibc/ympbuild b/system/base/glibc/ympbuild index e234364d..9a3c8551 100644 --- a/system/base/glibc/ympbuild +++ b/system/base/glibc/ympbuild @@ -15,6 +15,7 @@ source=('https://ftp.gnu.org/gnu/glibc/glibc-2.36.tar.xz' 'glibc.sysconf' 'reenable_DT_HASH.patch' 'locale-gen' + 'revdep-rebuild' ) md5sums=('00e9b89e043340f688bc93ec03239b57' 'SKIP' @@ -23,6 +24,7 @@ md5sums=('00e9b89e043340f688bc93ec03239b57' 'SKIP' 'SKIP' 'SKIP' + 'SKIP' ) uses=(multilib) group=(system.base) @@ -108,5 +110,6 @@ package(){ install ../glibc.sysconf ${DESTDIR}/etc/sysconf.d/glibc # install extra tools install ../locale-gen ${DESTDIR}/bin/locale-gen + install ../revdep-rebuild ${DESTDIR}/bin/revdep-rebuild }