Package: pidgin
Version: 2.5.6-1
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd


Coin,

Please consider applying this simple patch to your next upload and help us push this fix upstream. This program relies on MAXHOSTNAMELEN unconditionally, which is an important POSIX incompatibility, so this patch works things around (even if using dynamic allocations would be better, but the patch would then be quite harder and intrusive).

Regards.

--
Marc Dequènes (Duck)
diff -Nur orig/pidgin-2.5.6/debian/changelog pidgin-2.5.6/debian/changelog
--- orig/pidgin-2.5.6/debian/changelog	2009-05-28 17:29:14.000000000 +0200
+++ pidgin-2.5.6/debian/changelog	2009-05-28 15:39:03.000000000 +0200
@@ -1,3 +1,9 @@
+pidgin (2.5.6-1+hurdfr1) unreleased; urgency=low
+
+  * Added 'posixness_fix' patch to correct a POSIX incompatibility.
+
+ -- Marc Dequènes (Duck) <d...@hurdfr.org>  Thu, 28 May 2009 14:26:29 +0200
+
 pidgin (2.5.6-1) unstable; urgency=high
 
   * New upstream version
diff -Nur orig/pidgin-2.5.6/debian/control pidgin-2.5.6/debian/control
--- orig/pidgin-2.5.6/debian/control	2009-05-28 17:29:14.000000000 +0200
+++ pidgin-2.5.6/debian/control	2009-05-28 14:10:36.000000000 +0200
@@ -11,7 +11,7 @@
  libdbus-glib-1-dev, dbus, python (>= 2.4), libavahi-client-dev,
  libavahi-glib-dev, libxml-parser-perl, libncursesw5-dev, libsasl2-dev,
  xsltproc, doxygen, libsilc-1.1-2-dev | libsilc-dev (>= 1.1.1),
- libsqlite3-dev (>= 3.3), ca-certificates
+ libsqlite3-dev (>= 3.3), ca-certificates, quilt
 Standards-Version: 3.7.2
 XS-Vcs-Svn: svn://svn.debian.org/svn/collab-maint/deb-maint/pidgin/
 XS-Vcs-Browser: http://svn.debian.org/wsvn/collab-maint/deb-maint/pidgin/
diff -Nur orig/pidgin-2.5.6/debian/patches/posixness_fix pidgin-2.5.6/debian/patches/posixness_fix
--- orig/pidgin-2.5.6/debian/patches/posixness_fix	1970-01-01 01:00:00.000000000 +0100
+++ pidgin-2.5.6/debian/patches/posixness_fix	2009-05-28 14:24:48.000000000 +0200
@@ -0,0 +1,18 @@
+Index: pidgin-2.5.6/libpurple/protocols/zephyr/internal.h
+===================================================================
+--- pidgin-2.5.6.orig/libpurple/protocols/zephyr/internal.h	2009-05-28 14:23:26.000000000 +0200
++++ pidgin-2.5.6/libpurple/protocols/zephyr/internal.h	2009-05-28 14:24:30.000000000 +0200
+@@ -23,6 +23,13 @@
+ 
+ #define ETIMEDOUT WSAETIMEDOUT
+ #define EADDRINUSE WSAEADDRINUSE
++
++#else
++
++#ifndef MAXHOSTNAMELEN
++#define MAXHOSTNAMELEN 4096
++#endif
++
+ #endif
+ 
+ #ifdef ZEPHYR_USES_HESIOD
diff -Nur orig/pidgin-2.5.6/debian/patches/series pidgin-2.5.6/debian/patches/series
--- orig/pidgin-2.5.6/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ pidgin-2.5.6/debian/patches/series	2009-05-28 14:13:13.000000000 +0200
@@ -0,0 +1 @@
+posixness_fix
diff -Nur orig/pidgin-2.5.6/debian/rules pidgin-2.5.6/debian/rules
--- orig/pidgin-2.5.6/debian/rules	2009-05-28 17:29:14.000000000 +0200
+++ pidgin-2.5.6/debian/rules	2009-05-28 14:11:09.000000000 +0200
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 include /usr/share/cdbs/1/class/autotools.mk
-include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/gnome.mk
 include /usr/share/cdbs/1/rules/utils.mk

Attachment: pgpb10Tuo796r.pgp
Description: PGP Digital Signature

Reply via email to