From: Michael Tremer Date: Sun, 1 Apr 2012 18:38:24 +0000 (+0200) Subject: Fix search for interpreters when the interpreter is shipped by the package itself. X-Git-Tag: 0.9.22~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d2c4eeaf25415648dcd1c53c1ef7973d4b8141b;p=pakfire.git Fix search for interpreters when the interpreter is shipped by the package itself. --- diff --git a/tools/find-requires b/tools/find-requires index 89ee929dd..5a6c9a924 100755 --- a/tools/find-requires +++ b/tools/find-requires @@ -112,8 +112,15 @@ done # Search for binary interpreters. for file in ${binary_files}; do - # Just print the interpreter. - file_get_elf_interpreter ${file} + # Get the interpreter. + interp=$(file_get_elf_interpreter ${file}) + + # Skip the interpreter if it is provided by this + # package. + [ -e "${BUILDROOT}${interp}" ] && continue + + # Print the interpreter. + echo "${interp}" done | sort -u # Weak symbol versions (from glibc).