public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Gtk2/files/, dev-perl/Gtk2/
@ 2021-10-16  5:47 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2021-10-16  5:47 UTC (permalink / raw
  To: gentoo-commits

commit:     6ecb2628b95c308346cc6a196f8f95d8e295ecb5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 16 05:46:53 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 16 05:46:53 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ecb2628

dev-perl/Gtk2: skip broken/irrelevant GdkPixbuf test

Closes: https://bugs.gentoo.org/774396
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-perl/Gtk2/Gtk2-1.249.930.ebuild                |  4 ++++
 .../files/Gtk2-1.249.930-skip-pixbuf-test.patch    | 24 ++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/dev-perl/Gtk2/Gtk2-1.249.930.ebuild b/dev-perl/Gtk2/Gtk2-1.249.930.ebuild
index 96a0c9b312c..051e156e421 100644
--- a/dev-perl/Gtk2/Gtk2-1.249.930.ebuild
+++ b/dev-perl/Gtk2/Gtk2-1.249.930.ebuild
@@ -32,6 +32,10 @@ BDEPEND="${RDEPEND}
 	test? ( x11-libs/gdk-pixbuf[jpeg] )
 "
 
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.249.930-skip-pixbuf-test.patch
+)
+
 src_test() {
 	virtx perl-module_src_test
 }

diff --git a/dev-perl/Gtk2/files/Gtk2-1.249.930-skip-pixbuf-test.patch b/dev-perl/Gtk2/files/Gtk2-1.249.930-skip-pixbuf-test.patch
new file mode 100644
index 00000000000..b64d9470a48
--- /dev/null
+++ b/dev-perl/Gtk2/files/Gtk2-1.249.930-skip-pixbuf-test.patch
@@ -0,0 +1,24 @@
+https://bugs.gentoo.org/774396
+https://git.launchpad.net/ubuntu/+source/libgtk2-perl/tree/debian/patches/new_gdk_pixbuf.patch
+
+# Description: skip a test that is made invalid by the new gdk-pixbuf
+# Upstream: https://gitlab.gnome.org/GNOME/perl-gtk2/issues/3
+#
+--- a/t/GdkPixbuf.t
++++ b/t/GdkPixbuf.t
+@@ -123,9 +123,12 @@ my $log = Glib::Log->set_handler ('GdkPi
+ $pixbuf = Gtk2::Gdk::Pixbuf->new_from_xpm_data (@test_xpm[0..2]);
+ ok (! defined ($pixbuf), "Don't crash on broken pixmap data");
+ $pixbuf = Gtk2::Gdk::Pixbuf->new_from_xpm_data (@test_xpm[0..5]);
+-ok (defined $pixbuf, "Don't crash on partial pixmap data");
+-Glib::Log->remove_handler ('GdkPixbuf', $log);
+-
++SKIP: {
++	skip 'new gdk-pixbuf error out on invalid xpm', 1;
++	
++	ok (defined $pixbuf, "Don't crash on partial pixmap data");
++	Glib::Log->remove_handler ('GdkPixbuf', $log);
++}
+ 
+ # raw pixel values to make the xpm above
+ my $rawdata = pack 'C*',


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-16  5:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-16  5:47 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Gtk2/files/, dev-perl/Gtk2/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox