Dear maintainer,

I've prepared an NMU for xchat-gnome (versioned as 
1:0.30.0~git20110821.e2a400-0.3). The diff
is attached to this message.

Regards.
diff -Nru xchat-gnome-0.30.0~git20110821.e2a400/debian/changelog xchat-gnome-0.30.0~git20110821.e2a400/debian/changelog
--- xchat-gnome-0.30.0~git20110821.e2a400/debian/changelog	2011-08-24 19:13:18.000000000 +0200
+++ xchat-gnome-0.30.0~git20110821.e2a400/debian/changelog	2013-08-15 22:13:03.000000000 +0200
@@ -1,3 +1,12 @@
+xchat-gnome (1:0.30.0~git20110821.e2a400-0.3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Apply patches 120-fix-clipboard-segfault.patch and
+    define_functions_fix_build.patch from Ubuntu fixing FTBFS
+    (Closes: 713734)
+
+ -- Dominic Hargreaves <d...@earth.li>  Thu, 15 Aug 2013 22:12:00 +0200
+
 xchat-gnome (1:0.30.0~git20110821.e2a400-0.2) unstable; urgency=high
 
   * Non-maintainer upload.
diff -Nru xchat-gnome-0.30.0~git20110821.e2a400/debian/patches/120-fix-clipboard-segfault.patch xchat-gnome-0.30.0~git20110821.e2a400/debian/patches/120-fix-clipboard-segfault.patch
--- xchat-gnome-0.30.0~git20110821.e2a400/debian/patches/120-fix-clipboard-segfault.patch	1970-01-01 01:00:00.000000000 +0100
+++ xchat-gnome-0.30.0~git20110821.e2a400/debian/patches/120-fix-clipboard-segfault.patch	2013-08-15 22:10:38.000000000 +0200
@@ -0,0 +1,37 @@
+Description: Don't set the CLIPBOARD buffer when selecting text. CLIPBOARD
+ should only be used when specifically selecting copy from a context menu.
+ This may also have the side effect of fixing the common but hard to
+ reproduce clipboard segfault.
+Author: Marc Deslauriers <marc.deslauri...@canonical.com>
+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=658502
+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=635317
+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=624792
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/xchat-gnome/+bug/844003
+
+Index: xchat-gnome-0.30.0~git20110821.e2a400/src/fe-gnome/xtext.c
+===================================================================
+--- xchat-gnome-0.30.0~git20110821.e2a400.orig/src/fe-gnome/xtext.c	2011-07-27 17:00:57.000000000 -0400
++++ xchat-gnome-0.30.0~git20110821.e2a400/src/fe-gnome/xtext.c	2012-08-21 11:58:28.895474588 -0400
+@@ -2055,22 +2055,12 @@
+ static void
+ gtk_xtext_set_clip_owner (GtkWidget * xtext, GdkEventButton * event)
+ {
+-	char *str;
+-	int len;
+-
+ 	if (GTK_XTEXT (xtext)->selection_buffer &&
+ 		GTK_XTEXT (xtext)->selection_buffer != GTK_XTEXT (xtext)->buffer)
+ 		gtk_xtext_selection_clear (GTK_XTEXT (xtext)->selection_buffer);
+ 
+ 	GTK_XTEXT (xtext)->selection_buffer = GTK_XTEXT (xtext)->buffer;
+ 
+-	str = gtk_xtext_selection_get_text (GTK_XTEXT (xtext), &len);
+-	if (str)
+-	{
+-		gtk_clipboard_set_text (gtk_clipboard_get (GDK_SELECTION_CLIPBOARD), str, len);
+-		free (str);
+-	}
+-
+ 	gtk_selection_owner_set (xtext, GDK_SELECTION_PRIMARY, event->time);
+ }
+ 
diff -Nru xchat-gnome-0.30.0~git20110821.e2a400/debian/patches/define_functions_fix_build.patch xchat-gnome-0.30.0~git20110821.e2a400/debian/patches/define_functions_fix_build.patch
--- xchat-gnome-0.30.0~git20110821.e2a400/debian/patches/define_functions_fix_build.patch	1970-01-01 01:00:00.000000000 +0100
+++ xchat-gnome-0.30.0~git20110821.e2a400/debian/patches/define_functions_fix_build.patch	2013-08-13 19:30:20.000000000 +0200
@@ -0,0 +1,26 @@
+From fa86953132e7b9500430bd125276e755d963db01 Mon Sep 17 00:00:00 2001
+From: Dominique Leuenberger <dims...@opensuse.org>
+Date: Wed, 17 Apr 2013 21:33:18 +0200
+Subject: [PATCH] plugin/perl: add function prototypes.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=698232
+---
+ plugins/perl/perl.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/plugins/perl/perl.c b/plugins/perl/perl.c
+index 7de695a..fa44916 100644
+--- a/plugins/perl/perl.c
++++ b/plugins/perl/perl.c
+@@ -37,7 +37,9 @@
+ static xchat_plugin *ph;		  /* plugin handle */
+ 
+ static int perl_load_file (char *script_name);
+-
++void xchat_plugin_get_info   (char **plugin_name, char **plugin_desc, char **plugin_version, void **reserved);
++int  xchat_plugin_init       (xchat_plugin *plugin_handle, char **plugin_name, char **plugin_desc, char **plugin_version, char *arg);
++int  xchat_plugin_deinit     (xchat_plugin * plugin_handle);
+ #ifdef WIN32
+ 
+ static DWORD
+--
diff -Nru xchat-gnome-0.30.0~git20110821.e2a400/debian/patches/series xchat-gnome-0.30.0~git20110821.e2a400/debian/patches/series
--- xchat-gnome-0.30.0~git20110821.e2a400/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ xchat-gnome-0.30.0~git20110821.e2a400/debian/patches/series	2013-08-15 22:11:33.000000000 +0200
@@ -0,0 +1,2 @@
+120-fix-clipboard-segfault.patch
+define_functions_fix_build.patch

Reply via email to