]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- work with spaces in filenames for chrpath and strip
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 26 Dec 2006 21:29:01 +0000 (21:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.358

rpm.macros

index 2e6e183eb4b7178d83d0a1be8b1f37ce4a06d562..59f34f40b22b9c841fd8963a12640c2a4fef50b2 100644 (file)
@@ -354,10 +354,10 @@ if [ -d "$RPM_BUILD_ROOT" ]; then \
        if [ -z "$filelist" ]; then \
                return; \
        fi; \
-       filetypes=`echo $filelist | xargs -r file`; \
-       elfexelist=`echo "$filetypes" | awk '/ELF.*executable/ {print $1}' | cut -d: -f1`; \
-       elfsharedlist=`echo "$filetypes" | awk '/LF.*shared object/ {print $1}' | cut -d: -f1`; \
-       archiveslist=`echo "$filetypes" | awk '/current ar archive/ {print $1}' | cut -d: -f1`; \
+       filetypes=`echo "$filelist" | xargs -r -d'\\n' file`; \
+       elfexelist=`echo "$filetypes" | awk -F: '/ELF.*executable/ {print $1}'`; \
+       elfsharedlist=`echo "$filetypes" | awk -F: '/LF.*shared object/ {print $1}'`; \
+       archiveslist=`echo "$filetypes" | awk -F '/current ar archive/ {print $1}'`; \
        if [ -n "$elfexelist" ]; then \
                printf "Stripping %d ELF executables..." $(echo "$elfexelist" | wc -l); \
                chmod u+w $elfexelist; \
@@ -389,7 +389,7 @@ fi; }; __spec_install_post_strip } } }
 if [ -d "$RPM_BUILD_ROOT" ]; then \
        files=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*" ! -regex ".*/usr/lib[0-9]*/debug/.*" %{?_noautochrpath:! -regex "%{_noautochrpath}"}`; \
        if [ -n "$files" ]; then \
-               objs=`echo "$files" | xargs -r file | awk '/ELF.*(executable.*dynamically linked|shared object)/ {print $1}' | cut -d: -f1`; \
+               objs=`echo "$files" | xargs -r -d'\\n' file | awk -F: '/ELF.*(executable.*dynamically linked|shared object)/ {print $1}'`; \
        fi
        #"
        if [ -n "$objs" ]; then \
This page took 0.032858 seconds and 4 git commands to generate.