]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- added functionality to exclude files from __spec_install_post_check_so
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 13 Oct 2010 11:20:57 +0000 (11:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-build-macros.spec -> 1.274
    rpm.macros -> 1.582

rpm-build-macros.spec
rpm.macros

index ee7921fd48629a83ace6e3a98ef508c8ac58baaf..c1466b130884f80a1c1895471e87300262e2c904 100644 (file)
@@ -1,4 +1,4 @@
-%define                rpm_macros_rev  1.581
+%define                rpm_macros_rev  1.582
 %define                find_lang_rev   1.32
 Summary:       PLD Linux RPM build macros
 Summary(pl.UTF-8):     Makra do budowania pakietów RPM dla Linuksa PLD
index 0e66c18b81a5529bbac6e800d73b690ee2dee01e..e8e656659a3fafbc759d3ba2f1277c537c810496 100644 (file)
@@ -639,11 +639,13 @@ fi; }; __spec_install_post_chrpath } } }
 # Find all shared object files with unresolved symbols. Warn
 # and terminate if any found (termination can be turned off by define).
 #%no_install_post_check_so 1
+#%skip_post_check_so libwithunresolvedok.so.*
 %__spec_install_post_check_so { \
  __spec_install_post_check_so() { \
     fail=0; \
     printf "Searching for shared objects with unresolved symbols..."; \
     for f in $(find $RPM_BUILD_ROOT -type f -name '*.so.*' -print); do \
+           %{?skip_post_check_so:echo %{skip_post_check_so} | LC_ALL=C awk -v "file=$f" 'file ~ "(^|/)" $0 "$" { exit(1) }' || continue ;} \
         LC_ALL=C objdump -T $f 2> /dev/null | LC_ALL=C awk -v "file=$f" 'BEGIN { found=0; skip["program_name"]=1; symbols = "" } /^[0-9a-z]+ +D +\*UND\*/ { if ($NF in skip) { next; }; found = 1; symbols = symbols "\n\t" $NF } END { if (found) { print "\nUnresolved symbols found in: " file symbols; exit(1); } } ' || fail=1 ; \
     done ; \
     echo " DONE"; \
This page took 0.03088 seconds and 4 git commands to generate.