r36591 - in /desktop/experimental/gobject-introspection/debian: changelog tests/build

mpitt at users.alioth.debian.org mpitt at users.alioth.debian.org
Wed Jan 16 12:53:16 UTC 2013


Author: mpitt
Date: Wed Jan 16 12:53:16 2013
New Revision: 36591

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=36591
Log:
* debian/tests/build:
  - Add -Wall -Werror for being more thorough, and fix resulting errors.
  - Don't call deprecated g_type_init() when building with glib >= 2.35.

Modified:
    desktop/experimental/gobject-introspection/debian/changelog
    desktop/experimental/gobject-introspection/debian/tests/build

Modified: desktop/experimental/gobject-introspection/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gobject-introspection/debian/changelog?rev=36591&op=diff
==============================================================================
--- desktop/experimental/gobject-introspection/debian/changelog [utf-8] (original)
+++ desktop/experimental/gobject-introspection/debian/changelog [utf-8] Wed Jan 16 12:53:16 2013
@@ -1,3 +1,11 @@
+gobject-introspection (1.34.2-2) UNRELEASED; urgency=low
+
+  * debian/tests/build:
+    - Add -Wall -Werror for being more thorough, and fix resulting errors.
+    - Don't call deprecated g_type_init() when building with glib >= 2.35.
+
+ -- Martin Pitt <mpitt at debian.org>  Wed, 16 Jan 2013 13:52:48 +0100
+
 gobject-introspection (1.34.2-1) experimental; urgency=low
 
   * New upstream bug fix release.

Modified: desktop/experimental/gobject-introspection/debian/tests/build
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gobject-introspection/debian/tests/build?rev=36591&op=diff
==============================================================================
--- desktop/experimental/gobject-introspection/debian/tests/build [utf-8] (original)
+++ desktop/experimental/gobject-introspection/debian/tests/build [utf-8] Wed Jan 16 12:53:16 2013
@@ -10,16 +10,18 @@
 trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
 cd $WORKDIR
 cat <<EOF > gitest.c
+#include <string.h>
 #include <girepository.h>
 
 int main()
 {
     GIRepository *repository;
-    GIBaseInfo *info;
     GList *versions, *i;
     gboolean found;
 
+#if !defined(GLIB_VERSION_2_36)
     g_type_init();
+#endif
 
     repository = g_irepository_get_default ();
     g_assert(repository != NULL);
@@ -44,7 +46,7 @@
 }
 EOF
 
-gcc -o gitest gitest.c `pkg-config --cflags --libs gobject-introspection-1.0`
+gcc -o gitest gitest.c -Wall -Werror `pkg-config --cflags --libs gobject-introspection-1.0`
 echo "build: OK"
 [ -x gitest ]
 echo -n "run: "




More information about the pkg-gnome-commits mailing list