diff --git a/abicheck-1.2-ldlinux.patch b/abicheck-1.2-ldlinux.patch index 963daf2..10b0e53 100644 --- a/abicheck-1.2-ldlinux.patch +++ b/abicheck-1.2-ldlinux.patch @@ -30,7 +30,7 @@ diff -Nur abicheck-1.2-orig/abicheck.pl abicheck-1.2/abicheck.pl + my $ldlinux = ''; + open(DLFIND,"ldd $file0 |") or die "open: ldd: $!"; + while () { -+ /ld-linux/ and /(\S+)/ and $ldlinux = $1; ++ /(ld(-linux)*.so.\d+)/ and /(\S+)/ and $ldlinux = $1; + } + close(DLFIND); + if ( $ldlinux =~ /^$/ ) { diff --git a/abicheck.spec b/abicheck.spec index 5463802..41c5dee 100644 --- a/abicheck.spec +++ b/abicheck.spec @@ -47,16 +47,7 @@ install -p -m 0644 abicheck.1 $RPM_BUILD_ROOT%{_mandir}/man1 %check -cd test -make public1 private1 libc_a -file public1 private1 -ldd public1 private1 -LD_DEBUG=files,bindings LD_VERBOSE=yes LD_WARN=yes LD_BIND_NOW=yes LD_TRACE_LOADED_OBJECTS=1 /lib/ld-linux.so.2 -r ./public1 > output.txt 2>&1 || : -cat output.txt -LD_DEBUG=files,bindings LD_VERBOSE=yes LD_WARN=yes LD_BIND_NOW=yes LD_TRACE_LOADED_OBJECTS=1 /lib/ld-linux.so.2 -r ./private1 > output.txt 2>&1 || : -cat output.txt -make -#make test +make test %clean