SOURCES: rpm.macros - skip table that contains common symbols that should b...
arekm
arekm at pld-linux.org
Wed Nov 5 18:55:54 CET 2008
Author: arekm Date: Wed Nov 5 17:55:54 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- skip table that contains common symbols that should be skipped
---- Files affected:
SOURCES:
rpm.macros (1.489 -> 1.490)
---- Diffs:
================================================================
Index: SOURCES/rpm.macros
diff -u SOURCES/rpm.macros:1.489 SOURCES/rpm.macros:1.490
--- SOURCES/rpm.macros:1.489 Wed Nov 5 14:07:24 2008
+++ SOURCES/rpm.macros Wed Nov 5 18:55:48 2008
@@ -496,7 +496,7 @@
fail=0; \
printf "Searching for shared objects with unresolved symbols..."; \
for f in $(find $RPM_BUILD_ROOT -type f -name '*.so.*' -print); do \
- LC_ALL=C objdump -T $f 2> /dev/null | LC_ALL=C awk -v "file=$f" 'BEGIN { found=0; symbols = "" } /^[0-9a-z]+ +D +\*UND\*/ { 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; exit(1); } } ' || fail=1 ; \
done ; \
echo " DONE"; \
%{!?no_install_post_check_so:[ $fail -eq 1 ] && exit 1 || exit 0;} \
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpm.macros?r1=1.489&r2=1.490&f=u
More information about the pld-cvs-commit
mailing list