diff options
author | Gwenole Beauchesne <gbeauchesne@mandriva.com> | 2006-12-13 20:35:03 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-12-13 20:35:03 +0000 |
commit | aa002864f69e14bc8d3bc7c6cfeb4231042c4005 (patch) | |
tree | bdf1192971c72e19a199fb9b7121ddbaa252aadb | |
parent | d1f10ca29c210dc064e48a39dd71ae8e8cd334ff (diff) | |
download | pango-aa002864f69e14bc8d3bc7c6cfeb4231042c4005.tar.gz |
Bug 385478 – Fix tests on OPD platform
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).
-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 |