diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2006-09-13 16:17:27 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2006-09-13 16:17:27 +0000 |
commit | d0e4948198a14c24b410202cd807891d1a00fe7e (patch) | |
tree | a25d6a33e089cb400db946830f0fccfd74690d58 /media-libs/libmpeg2/files | |
parent | Version bump. (diff) | |
download | gentoo-2-d0e4948198a14c24b410202cd807891d1a00fe7e.tar.gz gentoo-2-d0e4948198a14c24b410202cd807891d1a00fe7e.tar.bz2 gentoo-2-d0e4948198a14c24b410202cd807891d1a00fe7e.zip |
Added patch by kevquinn to make test succeed on hardened, Bug #130831.
(Portage version: 2.1.1)
Diffstat (limited to 'media-libs/libmpeg2/files')
-rw-r--r-- | media-libs/libmpeg2/files/libmpeg2-0.4.0b-use-readelf-for-test.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/media-libs/libmpeg2/files/libmpeg2-0.4.0b-use-readelf-for-test.patch b/media-libs/libmpeg2/files/libmpeg2-0.4.0b-use-readelf-for-test.patch new file mode 100644 index 000000000000..7d091cfbb04e --- /dev/null +++ b/media-libs/libmpeg2/files/libmpeg2-0.4.0b-use-readelf-for-test.patch @@ -0,0 +1,26 @@ +--- test/globals.orig 2006-04-29 19:19:59.000000000 +0200 ++++ test/globals 2006-04-29 19:24:35.000000000 +0200 +@@ -14,8 +14,9 @@ + + error=0 + +-bad_globals=`nm -g --defined-only $builddir/../libmpeg2/*.o |\ +- awk '{if ($3) print $3}' | grep -v '^_\?mpeg2_'` ++bad_globals=`readelf -s $builddir/../libmpeg2/*.o |\ ++ awk '$5=="GLOBAL" && $6!="HIDDEN" && $7!="UND" {print $8}' |\ ++ grep -v '^_\?mpeg2_'` + + if test x"$bad_globals" != x""; then + echo BAD GLOBAL SYMBOLS: +@@ -23,8 +24,9 @@ + error=1 + fi + +-bad_globals=`nm -g --defined-only $builddir/../libmpeg2/convert/*.o |\ +- awk '{if ($3) print $3}' | grep -v '^_\?mpeg2convert_'` ++bad_globals=`readelf -s $builddir/../libmpeg2/convert/*.o |\ ++ awk '$5=="GLOBAL" && $6!="HIDDEN" && $7!="UND" {print $8}' |\ ++ grep -v '^_\?mpeg2convert_'` + + if test x"$bad_globals" != x""; then + echo BAD GLOBAL SYMBOLS: |