Control: tags -1 + patch

Hello all,

I found proper patches for this problem (from Ubuntu [1]), which is:
   1) force running dh-autoreconf;
   2) enabling deprecated gdk functions.

After that, the program runs normally without any crashing.

Debdiff for a new version is provided below. Source code is pushed onto Git 
repository on Alioth 
(https://anonscm.debian.org/git/collab-maint/gnome-paint.git).

diff -Nru gnome-paint-0.4.0/debian/changelog gnome-paint-0.4.0/debian/changelog
--- gnome-paint-0.4.0/debian/changelog  2013-07-30 21:29:55.000000000 +0800
+++ gnome-paint-0.4.0/debian/changelog  2017-04-17 21:42:56.000000000 +0800
@@ -1,3 +1,17 @@
+gnome-paint (0.4.0-5) unstable; urgency=medium
+
+  * Sponsored upload.
+  * d/control: Add myself into uploaders list.
+  * d/control: Bump Standards Version to 3.9.8.
+  * d/control: Use secure URI for homepage.
+  * d/control: Add Vcs-Git and Vcs-Browser.
+  * control,rules: Use dh-autoreconf instead of autotools-dev.
+    (Closes: #727874)
+  * d/patches: Add patch to enable deprecated gdk functions.
+    (Closes: #860233)
+
+ -- Boyuan Yang <073p...@gmail.com>  Mon, 17 Apr 2017 21:42:56 +0800
+
 gnome-paint (0.4.0-4) unstable; urgency=low
 
   * debian/ftbfs-libs-lm.patch:
diff -Nru gnome-paint-0.4.0/debian/control gnome-paint-0.4.0/debian/control
--- gnome-paint-0.4.0/debian/control  2013-07-30 21:29:55.000000000 +0800
+++ gnome-paint-0.4.0/debian/control  2017-04-17 21:42:54.000000000 +0800
@@ -2,9 +2,13 @@
 Section: graphics
 Priority: optional
 Maintainer: Aron Xu <a...@debian.org>
-Build-Depends: debhelper (>= 9), autotools-dev, libgtk2.0-dev, intltool ( >= 
0.35.0), gettext
-Standards-Version: 3.9.4
-Homepage: http://launchpad.net/gnome-paint/
+Uploaders:
+ Boyuan Yang <073p...@gmail.com>
+Build-Depends: debhelper (>= 9), dh-autoreconf, libgtk2.0-dev, intltool ( >= 
0.35.0), gettext
+Standards-Version: 3.9.8
+Homepage: https://launchpad.net/gnome-paint/
+Vcs-Git: https://anonscm.debian.org/git/collab-maint/gnome-paint.git
+Vcs-Browser: https://anonscm.debian.org/git/collab-maint/gnome-paint.git
 
 Package: gnome-paint
 Architecture: any
diff -Nru gnome-paint-0.4.0/debian/patches/debian-860233-enable-deprecated-gdk-
functions.patch gnome-paint-0.4.0/debian/patches/debian-860233-enable-
deprecated-gdk-functions.patch
--- gnome-paint-0.4.0/debian/patches/debian-860233-enable-deprecated-gdk-
functions.patch  1970-01-01 08:00:00.000000000 +0800
+++ gnome-paint-0.4.0/debian/patches/debian-860233-enable-deprecated-gdk-
functions.patch  2017-04-17 21:37:47.000000000 +0800
@@ -0,0 +1,25 @@
+From: Logan Rosen <lo...@ubuntu.com>
+Date: Mon, 17 Apr 2017 21:34:19 +0800
+Subject: Enable deprecated gdk functions
+Forwarded: no
+Last-Update: 2015-12-21
+
+Enable deprecated GDK functions to fix Debian Bug #860233.
+
+Original patch picked from Ubuntu gnome-paint 0.4.0-4ubuntu2.
+---
+ src/Makefile.am | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 852ae55..fe405ff 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -78,7 +78,6 @@ gnome_paint_SOURCES = \
+ gnome_paint_CFLAGS = \
+   -DG_DISABLE_DEPRECATED\
+   -DG_DISABLE_SINGLE_INCLUDES\
+-  -DGDK_DISABLE_DEPRECATED\
+   -DGTK_DISABLE_DEPRECATED\
+   -DGDK_DISABLE_SINGLE_INCLUDES\
+   -DGTK_DISABLE_SINGLE_INCLUDES
diff -Nru gnome-paint-0.4.0/debian/patches/series gnome-paint-0.4.0/debian/
patches/series
--- gnome-paint-0.4.0/debian/patches/series  2013-07-30 21:29:55.000000000 
+0800
+++ gnome-paint-0.4.0/debian/patches/series  2017-04-17 21:38:19.000000000 
+0800
@@ -3,3 +3,4 @@
 debian-612470-handle-urls.patch
 ftbfs-libs-lm.patch
 ftbfs-format-security.patch
+debian-860233-enable-deprecated-gdk-functions.patch
diff -Nru gnome-paint-0.4.0/debian/rules gnome-paint-0.4.0/debian/rules
--- gnome-paint-0.4.0/debian/rules  2010-12-31 12:45:40.000000000 +0800
+++ gnome-paint-0.4.0/debian/rules  2017-04-17 21:26:06.000000000 +0800
@@ -4,7 +4,7 @@
 LDFLAGS += -Wl,--as-needed
 
 %:
-  dh  $@
+  dh  $@ --with autoreconf
 override_dh_install:
   mkdir -p debian/gnome-paint/usr/share/doc/gnome-paint/
   mv debian/gnome-paint/usr/doc/gnome-paint/README debian/gnome-paint/usr/
share/doc/gnome-paint/

Thanks!

[1] https://patches.ubuntu.com/g/gnome-paint/gnome-paint_0.4.0-4ubuntu2.patch

--
Sincerely,
Boyuan Yang

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to