From fd3a42b034c253109958c424cc5690c0c24f64d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 30 Jan 2008 00:27:32 +0000 Subject: [PATCH] - skip chrpath lookup from kernel modules dir - compress kernel modules message cosmetics Changed files: rpm.macros -> 1.419 --- rpm.macros | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rpm.macros b/rpm.macros index 33b325b..39b9094 100644 --- a/rpm.macros +++ b/rpm.macros @@ -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; \ -- 2.44.0