Re: Checking for versions of libs in X-GNOME-Bugzilla-ExtraInfoScript



On 2/5/07, Mariano Suárez-Alvarez <msuarezalvarez arnet com ar> wrote:
Hi all,

Is there a portable way to have bug-buddy add to reports the version of
a particular lib the crashed app is using? I'd like, in particular, to
know which vte is gnome-terminal using.

I guess that there is not "portable" way to check the version of the
libvte used by gnome-terminal on runtime, because ldd can only giver
you the .so version.

But we could check was version was originally linked with:

Index: configure.in
===================================================================
--- configure.in        (revision 2159)
+++ configure.in        (working copy)
@@ -41,6 +41,9 @@
 vte >= $VTE_REQUIRED dnl
 gnome-vfs-2.0 >= $GNOMEVFS_REQUIRED)

+VTE_VERSION=$(pkg-config --modversion vte)
+AC_SUBST(VTE_VERSION)
+
TERM_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $TERM_LIBS"
TERM_CFLAGS="$X_CFLAGS $TERM_CFLAGS"
CPPFLAGS="$TERM_CFLAGS $CPPFLAGS"
@@ -69,6 +72,7 @@
AC_CONFIG_FILES([
Makefile
gnome-terminal.desktop.in
+src/report-vte-version.sh
src/Makefile
src/skey/Makefile
help/Makefile

and

src/report-vte-version.sh.in:
#!/bin/bash
echo "vte version: @VTE_VERSION@"

then you can install report-vte-version.sh script that will have vte
version hardcoded from compilation time, and add it to
X-GNOME-Bugzilla-ExtraInfoScript.

Salu2



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]