]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- skip chrpath lookup from kernel modules dir
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 30 Jan 2008 00:27:32 +0000 (00:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- compress kernel modules message cosmetics

Changed files:
    rpm.macros -> 1.419

rpm.macros

index 33b325b37f034e911db47f32e50a1374db49b7bb..39b90945d07f5b925da8e753e95b03821507312d 100644 (file)
@@ -419,11 +419,10 @@ fi; }; __spec_install_post_strip } } }
 %__spec_install_post_chrpath {%{!?debug: \
 %{!?no_install_post_chrpath: __spec_install_post_chrpath() { \
 if [ -d "$RPM_BUILD_ROOT" ]; then \
-       files=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*" ! -regex ".*/usr/lib[0-9]*/debug/.*" ! -regex ".*%{_docdir}/.*" ! -regex ".*%{_includedir}/.*"  %{?_noautochrpath:! -regex "%{_noautochrpath}"}`; \
+       files=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*" ! -regex ".*/usr/lib[0-9]*/debug/.*" ! -regex ".*/lib/modules/.*" ! -regex ".*%{_docdir}/.*" ! -regex ".*%{_includedir}/.*" %{?_noautochrpath:! -regex "%{_noautochrpath}"}`; \
        if [ -n "$files" ]; then \
                objs=`echo "$files" | xargs -r -d'\\n' file | awk -F: '/ELF.*(executable.*dynamically linked|shared object)/ {print $1}'`; \
-       fi
-       #"
+       fi; \
        if [ -n "$objs" ]; then \
                printf "Remove RPATH from %d executable binaries and shared object files.\n" $(echo -n "$objs" | wc -l); \
                echo "$objs" | \
@@ -457,10 +456,10 @@ fi; }; __spec_install_post_chrpath } } }
 %__spec_install_post_compress_modules { \
 %{!?no_install_post_compress_modules: __spec_install_post_compress_modules() { \
        if [ -d $RPM_BUILD_ROOT/lib/modules ]; then \
-               echo "Compress kernel modules"; \
                q=$(find $RPM_BUILD_ROOT/lib/modules -name '*o' -type f -print); \
+               printf "Compress %d kernel modules..." $(echo -n "$q" | wc -l); \
                echo "$q" | xargs -r %{__gzip} -9nf; \
-               printf "%d modules compressed\n" $(echo -n "$q" | wc -l); \
+               echo "DONE"; \
                find $RPM_BUILD_ROOT/lib/modules -name '*o' -type l -printf "%p %l\n" | \
                while read a b; do ln -sf $b.gz $a.gz; rm -f $a; done; \
        fi; \
This page took 0.046439 seconds and 4 git commands to generate.