]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- %__spec_install_post_check_so: print unresolved symbols for libraries even
authorsparky <sparky@pld-linux.org>
Wed, 20 Oct 2010 10:36:52 +0000 (10:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  if they were marked in %skip_post_check_so

Changed files:
    rpm.macros -> 1.588

rpm.macros

index 9dc99d283966d0f03ec74ad6f2d3479d99fe4c1d..380814c7df01f1cfccd3fc2f6eae7f106c93a598 100644 (file)
@@ -661,8 +661,7 @@ fi; }; __spec_install_post_chrpath } } }
     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:awk -v "file=$f" 'BEGIN { split("%{skip_post_check_so}", R); for (i=1; i in R; i++) { if (file ~ "(^|/)" R[i] "$") 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 ; \
+        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; %{?skip_post_check_so:split("%{skip_post_check_so}", R); for (i=1; i in R; i++) { if (file ~ "(^|/)" R[i] "$") { print "Library marked with skip_post_check_so, ignoring errors.\n"; exit(0); } } } exit(1); } } ' || fail=1 ; \
     done ; \
     echo " DONE"; \
     %{!?no_install_post_check_so:return $fail;} \
This page took 0.050254 seconds and 4 git commands to generate.