r30658 - in /desktop/experimental/gobject-introspection/debian: changelog patches/ patches/01-account_for_padding_in_struct_size_check.patch patches/series

sjoerd at users.alioth.debian.org sjoerd at users.alioth.debian.org
Mon Oct 17 15:44:42 UTC 2011


Author: sjoerd
Date: Mon Oct 17 15:44:41 2011
New Revision: 30658

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=30658
Log:
* debian/patches/01-account_for_padding_in_struct_size_check.patch:
  + Added, Account for padding in struct size check (From ubuntu package &
    upstream git)

Added:
    desktop/experimental/gobject-introspection/debian/patches/
    desktop/experimental/gobject-introspection/debian/patches/01-account_for_padding_in_struct_size_check.patch
    desktop/experimental/gobject-introspection/debian/patches/series
Modified:
    desktop/experimental/gobject-introspection/debian/changelog

Modified: desktop/experimental/gobject-introspection/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gobject-introspection/debian/changelog?rev=30658&op=diff
==============================================================================
--- desktop/experimental/gobject-introspection/debian/changelog [utf-8] (original)
+++ desktop/experimental/gobject-introspection/debian/changelog [utf-8] Mon Oct 17 15:44:41 2011
@@ -13,8 +13,11 @@
   * debian/control.in:
     + Add Breaks for gnome-shell << 3.0.2-6. g_file_get_contents is annotated
       to return a byte-arry which can't be used in the way gnome-shell used to
-
- -- Sjoerd Simons <sjoerd at debian.org>  Mon, 17 Oct 2011 12:58:10 +0100
+  * debian/patches/01-account_for_padding_in_struct_size_check.patch:
+    + Added, Account for padding in struct size check (From ubuntu package &
+      upstream git)
+
+ -- Sjoerd Simons <sjoerd at debian.org>  Mon, 17 Oct 2011 13:48:07 +0100
 
 gobject-introspection (0.10.8-2) unstable; urgency=low
 

Added: desktop/experimental/gobject-introspection/debian/patches/01-account_for_padding_in_struct_size_check.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gobject-introspection/debian/patches/01-account_for_padding_in_struct_size_check.patch?rev=30658&op=file
==============================================================================
--- desktop/experimental/gobject-introspection/debian/patches/01-account_for_padding_in_struct_size_check.patch (added)
+++ desktop/experimental/gobject-introspection/debian/patches/01-account_for_padding_in_struct_size_check.patch [utf-8] Mon Oct 17 15:44:41 2011
@@ -1,0 +1,39 @@
+From 768664ea995a133a43e8a82cd6c925da3ddfe55b Mon Sep 17 00:00:00 2001
+From: Martin Pitt <martin.pitt at ubuntu.com>
+Date: Wed, 28 Sep 2011 08:25:26 +0000
+Subject: [PATCH] Bug 660338: Account for padding in struct size check
+
+On some platform like armel or powerpc the compiler adds extra padding to
+structs. Make the test_size_of_struct_with_array_of_anon_unions() check more
+liberal by only requiring that the size of the struct is at least as big as
+expected. Also use g_assert_cmpuint() to make it easier to see the actual diff.
+---
+ tests/repository/gitypelibtest.c |    7 ++++---
+ 1 files changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/tests/repository/gitypelibtest.c b/tests/repository/gitypelibtest.c
+index de821e0..8356d93 100644
+--- a/tests/repository/gitypelibtest.c
++++ b/tests/repository/gitypelibtest.c
+@@ -120,14 +120,15 @@ test_size_of_struct_with_array_of_anon_unions(GIRepository *repo)
+     struct_info = g_irepository_find_by_name (repo, "Regress", "TestStructE");
+     if (!struct_info)
+         g_error ("Could not find Regress.TestStructE");
+-    g_assert (g_struct_info_get_size (struct_info)
+-                == sizeof (GType) + 2*sizeof (gint64));
++    /* need to use >=, there might be padding */
++    g_assert_cmpuint (g_struct_info_get_size (struct_info),
++                >=, sizeof (GType) + 2*sizeof (gint64));
+     g_base_info_unref (struct_info);
+ 
+     struct_info = g_irepository_find_by_name (repo, "GObject", "Value");
+     if (!struct_info)
+         g_error ("Could not find GObject.Value");
+-    g_assert (g_struct_info_get_size (struct_info) == sizeof (GValue));
++    g_assert_cmpuint (g_struct_info_get_size (struct_info), ==, sizeof (GValue));
+     g_base_info_unref (struct_info);
+ }
+ 
+-- 
+1.7.5.4
+

Added: desktop/experimental/gobject-introspection/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gobject-introspection/debian/patches/series?rev=30658&op=file
==============================================================================
--- desktop/experimental/gobject-introspection/debian/patches/series (added)
+++ desktop/experimental/gobject-introspection/debian/patches/series [utf-8] Mon Oct 17 15:44:41 2011
@@ -1,0 +1,1 @@
+01-account_for_padding_in_struct_size_check.patch




More information about the pkg-gnome-commits mailing list