diff mbox

[1/1] populate: fix empty files.list

Message ID 1410194907-12823-1-git-send-email-jeanmarie.lemetayer@gmail.com
State Superseded
Headers show

Commit Message

Jean-Marie Lemetayer Sept. 8, 2014, 4:48 p.m. UTC
The output format of the file(1) command have changed since (at least)
the version 5.14. We need to to take care of an extra space.

Signed-off-by: Jean-Marie Lemetayer <jeanmarie.lemetayer@gmail.com>
---
 scripts/populate.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/scripts/populate.in b/scripts/populate.in
index 28a9740..2fc88f2 100644
--- a/scripts/populate.in
+++ b/scripts/populate.in
@@ -222,7 +222,7 @@  do_add_lib() {
 do_resolve_deps() {
     local file="${1}"
     local libname
-    
+
     for libname in $("${CT_READELF}" -d "${file}"                           \
                      |"${grep}" -E '\(NEEDED\)[[:space:]]+Shared library:'  \
                      |"${sed}" -r -e 's,.+\[(.+)\] *$,\1,;'                 \
@@ -280,9 +280,9 @@  CT_TMP_DIR="${TMPDIR:-/tmp}/populate-${rand}-${$}"
 trap "rm -rf ${CT_TMP_DIR}" EXIT
 
 # List all ELF (executables|shared objects)...
-find . -type f -exec file {} \;                                             \
-|"${grep}" -E ': ELF [[:digit:]]+-bit (L|M)SB (executable|shared object),'  \
-|cut -d ":" -f 1                                                            \
+find . -type f -exec file {} \;                                              \
+|"${grep}" -E ': ELF [[:digit:]]+-bit (L|M)SB +(executable|shared object),'  \
+|cut -d ":" -f 1                                                             \
 >"${CT_TMP_DIR}/files.list"
 
 # ... and use that list to find missing dependencies