Hello community,

here is the log from the commit of package perl-Gtk2 for openSUSE:Factory 
checked in at 2015-12-06 07:42:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Gtk2 (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Gtk2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Gtk2"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Gtk2/perl-Gtk2.changes      2015-08-29 
20:04:51.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Gtk2.new/perl-Gtk2.changes 2015-12-06 
07:42:59.000000000 +0100
@@ -1,0 +2,10 @@
+Fri Dec  4 10:29:26 UTC 2015 - [email protected]
+
+- Update to 1.2497:
+  * Avoid a stack handling error in Gtk2::TreeModel::get on
+    Perl >= 5.23.
+  * Fix a test failure in t/GdkWindow.t; it occurs only on
+    GTK+ >= 2.24.26 and < 2.24.29.
+- Remove perl-Gtk2-fix-test-failure.patch: fixed upstream.
+
+-------------------------------------------------------------------

Old:
----
  Gtk2-1.2496.tar.gz
  perl-Gtk2-fix-test-failure.patch

New:
----
  Gtk2-1.2497.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Gtk2.spec ++++++
--- /var/tmp/diff_new_pack.Z6S4I1/_old  2015-12-06 07:43:00.000000000 +0100
+++ /var/tmp/diff_new_pack.Z6S4I1/_new  2015-12-06 07:43:00.000000000 +0100
@@ -18,15 +18,13 @@
 
 %define cpan_name Gtk2
 Name:           perl-Gtk2
-Version:        1.2496
+Version:        1.2497
 Release:        0
 Summary:        Perl interface to the 2.x series of the GTK+ library
 License:        LGPL-2.1+
 Group:          Development/Libraries/Perl
 Url:            https://metacpan.org/pod/Gtk2
 Source:         
https://cpan.metacpan.org/authors/id/X/XA/XAOC/%{cpan_name}-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM perl-Gtk2-fix-test-failure.patch bnc#932349 -- Fix a test 
failure that occurs on gtk+ >= 2.24.26 and < 2.24.29
-Patch0:         %{name}-fix-test-failure.patch
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  xorg-x11
@@ -63,7 +61,6 @@
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
-%patch0 -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"

++++++ Gtk2-1.2496.tar.gz -> Gtk2-1.2497.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Gtk2-1.2496/META.json new/Gtk2-1.2497/META.json
--- old/Gtk2-1.2496/META.json   2015-08-10 03:05:27.000000000 +0200
+++ new/Gtk2-1.2497/META.json   2015-11-30 17:08:39.000000000 +0100
@@ -68,5 +68,5 @@
       },
       "x_MailingList" : "https://mail.gnome.org/mailman/listinfo/gtk-perl-list";
    },
-   "version" : "1.2496"
+   "version" : "1.2497"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Gtk2-1.2496/META.yml new/Gtk2-1.2497/META.yml
--- old/Gtk2-1.2496/META.yml    2015-08-10 03:05:27.000000000 +0200
+++ new/Gtk2-1.2497/META.yml    2015-11-30 17:08:39.000000000 +0100
@@ -39,4 +39,4 @@
   homepage: http://gtk2-perl.sourceforge.net
   license: http://www.gnu.org/licenses/lgpl-2.1.html
   repository: git://git.gnome.org/perl-Gtk2
-version: '1.2496'
+version: '1.2497'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Gtk2-1.2496/NEWS new/Gtk2-1.2497/NEWS
--- old/Gtk2-1.2496/NEWS        2015-08-10 03:04:22.000000000 +0200
+++ new/Gtk2-1.2497/NEWS        2015-11-30 17:07:46.000000000 +0100
@@ -1,3 +1,10 @@
+Overview of changes in Gtk2 1.2497
+==================================
+
+* Avoid a stack handling error in Gtk2::TreeModel::get on perl >= 5.23
+* Fix a test failure in t/GdkWindow.t; it occurs only on gtk+ >= 2.24.26
+  and < 2.24.29.
+
 Overview of changes in Gtk2 1.2496
 ==================================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Gtk2-1.2496/lib/Gtk2.pm new/Gtk2-1.2497/lib/Gtk2.pm
--- old/Gtk2-1.2496/lib/Gtk2.pm 2015-08-10 02:59:52.000000000 +0200
+++ new/Gtk2-1.2497/lib/Gtk2.pm 2015-11-30 17:05:25.000000000 +0100
@@ -73,7 +73,7 @@
 use Exporter;
 require DynaLoader;
 
-our $VERSION = '1.2496';
+our $VERSION = '1.2497';
 
 our @ISA = qw(DynaLoader Exporter);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Gtk2-1.2496/t/GdkWindow.t 
new/Gtk2-1.2497/t/GdkWindow.t
--- old/Gtk2-1.2496/t/GdkWindow.t       2011-11-27 08:57:26.000000000 +0100
+++ new/Gtk2-1.2497/t/GdkWindow.t       2015-08-22 21:39:59.000000000 +0200
@@ -191,9 +191,19 @@
 $window -> shape_combine_mask(undef, 0, 0);
 $window -> shape_combine_region(undef, 0, 0);
 
+SKIP: {
+  skip 'child shapes functions trigger a bug', 0
+    if (Gtk2->CHECK_VERSION (2, 24, 26) && !Gtk2->CHECK_VERSION (2, 24, 29));
+
+  # Introduced in
+  # 
<https://git.gnome.org/browse/gtk+/commit/?h=gtk-2-24&id=aff976ef0dad471edc35d65b9d1b5ba97da1698e>,
+  # fixed in
+  # 
<https://git.gnome.org/browse/gtk+/commit/?h=gtk-2-24&id=7ee8b1fd9af52842e87c26465b9aa8921e62ec90>.
+
+  $window -> set_child_shapes();
+  $window -> merge_child_shapes();
+}
 
-$window -> set_child_shapes();
-$window -> merge_child_shapes();
 $window -> set_static_gravities(0); # FIXME: check retval?
 $window -> set_title("Blub");
 $window -> set_background(Gtk2::Gdk::Color -> new(255, 255, 255));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Gtk2-1.2496/t/GtkTreeModel.t 
new/Gtk2-1.2497/t/GtkTreeModel.t
--- old/Gtk2-1.2496/t/GtkTreeModel.t    2013-01-15 07:48:07.000000000 +0100
+++ new/Gtk2-1.2497/t/GtkTreeModel.t    2015-11-30 17:04:21.000000000 +0100
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -w
 use strict;
-use Gtk2::TestHelper tests => 74, noinit => 1;
+use Gtk2::TestHelper tests => 75, noinit => 1;
 
 # $Id$
 
@@ -209,6 +209,17 @@
 }
 
 ###############################################################################
+
+# Ensure that getting all values of a row in a 1-column model does not result
+# in a stack handling error with perl >= 5.23.
+{
+       my $model = Gtk2::ListStore -> new(qw/Glib::Int/);
+       my $iter = $model -> append();
+       $model -> set($iter, 0 => 23);
+       is ($model -> get($iter), 23);
+}
+
+###############################################################################
 
 __END__
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Gtk2-1.2496/xs/GtkTreeModel.xs 
new/Gtk2-1.2497/xs/GtkTreeModel.xs
--- old/Gtk2-1.2496/xs/GtkTreeModel.xs  2012-04-28 21:56:53.000000000 +0200
+++ new/Gtk2-1.2497/xs/GtkTreeModel.xs  2015-11-30 17:04:21.000000000 +0100
@@ -1162,13 +1162,17 @@
 
                int n_columns = gtk_tree_model_get_n_columns (tree_model);
                /* extend the stack so it can handle 'n_columns' items in
-                * total.  the stack already contains 'items' elements so make
-                * room for 'n_columns - items' more, move our local stack
-                * pointer forward to the new end, and update the global stack
-                * pointer.  this way, xsubs called by gtk_tree_model_get_value
-                * don't overwrite what we put on the stack. */
+                * total.  the stack already contains 'items' elements so if
+                * 'items' < 'n_columns', make room for 'n_columns - items'
+                * more.  then move our local stack pointer forward to the new
+                * end, and update the global stack pointer.  leave 'ax'
+                * unchanged though, so that ST still refers to the start of
+                * the stack allocated to us.  this way, xsubs called by
+                * gtk_tree_model_get_value don't overwrite what we put on the
+                * stack. */
                SPAGAIN;
-               EXTEND (SP, n_columns - items);
+               if (n_columns > items)
+                       EXTEND (SP, n_columns - items);
                SP += n_columns - items;
                PUTBACK;
                for (i = 0; i < n_columns; i++) {


Reply via email to