diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rwxr-xr-x | pango/check.defs | 9 |
2 files changed, 14 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2006-12-13 Gwenole Beauchesne <gbeauchesne@mandriva.com> + + Bug 385478 – Fix tests on OPD platform + + * pango/check.defs: Improve symbols extraction for OPD-based + platforms (e.g. ppc64, ia64). + 2006-12-13 Behdad Esfahbod <behdad@gnome.org> Bug 385321 – Worst case expansion for Sinhala diff --git a/pango/check.defs b/pango/check.defs index 6140e30c..29450d89 100755 --- a/pango/check.defs +++ b/pango/check.defs @@ -5,6 +5,11 @@ LANG=C test -z "$srcdir" && srcdir=. status=0 +get_pango_syms='nm "$so" | grep " T " | cut -d" " -f3' +if [ "`uname -s`" = "Linux" ]; then + get_pango_syms='objdump -t "$so" | sed -n "/.*g *F *\.\(opd\|text\).*\(pango_.*\)$/s//\2/p"' +fi + for def in $srcdir/*.def; do lib=${def%.def} lib=${lib##*/} @@ -15,8 +20,8 @@ for def in $srcdir/*.def; do expected=$lib.expected list=$lib.list - nm "$so" | grep ' T ' | cut -d' ' -f3 | sort -u > "$expected" - cut -f 2 "$def" | grep -v EXPORTS > "$list" + eval $get_pango_syms | sort -u > "$expected" + cut -f 2 "$def" | grep -v EXPORTS | sort -u > "$list" diff "$list" "$expected" && rm -f "$list" "$expected" || status=1 done |