From 5d0077204fa8092f249c82b49066716b9decf406 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 3 Apr 2012 19:40:48 +0200 Subject: [PATCH] Speed up dependency detection. --- tools/find-provides | 13 +++++++++++-- tools/find-requires | 6 ++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/tools/find-provides b/tools/find-provides index 0be2de7b4..2e138baf2 100755 --- a/tools/find-provides +++ b/tools/find-provides @@ -14,10 +14,21 @@ pkgconfig_files= # Walk through all file files and see what we have got here. while read file; do case "${file}" in + */usr/lib/debug/*|*/usr/src/debug/*) + # Skip all debuginfo files. + continue + ;; */usr/lib*/python*/*.so*) # Do not show python shared objects in provides list. ;; + */usr/lib*/gconv/*) + # Skip gconv files. + continue + ;; *.so*) + # Skip symlinks for performance reasons. + [ -L "${file}" ] && continue + file_is_elf ${file} >/dev/null 2>&1 && \ binary_files="${binary_files} ${file}" ;; @@ -33,8 +44,6 @@ done < ${FILELIST} # Search for SONAMEs in all binary files. for file in ${binary_files}; do - [ -L ${file} ] && continue - soname=$(file_get_soname ${file}) # If the files does not have a SONAME, we will diff --git a/tools/find-requires b/tools/find-requires index 5a6c9a924..1f49dabea 100755 --- a/tools/find-requires +++ b/tools/find-requires @@ -25,6 +25,11 @@ while read file; do case "${file}" in */usr/lib/debug/*|*/usr/src/debug/*) # Skip all debuginfo files. + continue + ;; + */usr/lib*/gconv/*) + # Skip all gconv files. + continue ;; *.ko) # Skip all kernel modules because they do not @@ -47,6 +52,7 @@ while read file; do # Python */usr/lib*/python*/*) # Sort out all python files. + # Directories are processed bewlow. ;; */usr/lib/python*|*/usr/lib64/python*) # This will only get the python directory. -- 2.39.5