Package: python-pylibmc
Version: 1.2.2-1+b2
Followup-For: Bug #712927

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Maintainer,

The debdiff in this email adds a patch that fixes the FTBFS by checking the
libmemcached version through IFDEFs.  This patch can be dropped once
libmemcached upstream resolved the API breakage[0].

[0] https://bugs.launchpad.net/bugs/1190240

- -- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.9-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-pylibmc depends on:
ii  libc6           2.17-5
ii  libmemcached10  1.0.8-1
ii  python          2.7.5-2
ii  python2.6       2.6.8-2
ii  python2.7       2.7.5-6
ii  zlib1g          1:1.2.8.dfsg-1

python-pylibmc recommends no packages.

Versions of packages python-pylibmc suggests:
ii  memcached  1.4.13-0.2

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJRw2f0AAoJEGlMre9Rx7W2l0sP/3BJq8cxu7GaUgB/JP77NgwJ
WZIuvXOIuXemVcUgGdPkRhW3ULDtHRtN7TBDR1NB8Es23tpUsBSqfTzoX1/TaRal
5HyBCozTTYlNpbX6B/kSB6lvAlAsRqxuoTIgQPX/Usc7kpQrj/JOoLVrPtUPXKsH
29aYsCYtCDxOCxlZxNxlZCiuuRMystBYqNTjr5LkB+Vy+/hSqb1EsoTzktdJsmno
4bI1bLiRZucc9x+p+CahOY8Js5ygZN2BDzjOcWTkG4SN/bO6DpjDf1dGmwWH0vO2
FFfkcnf6t4GEoYodGsmwXQxHPastYQb3kyqgGBV6Xp5ggONKEa1eL5d0Sanhj4qN
xnnqxnAYrU3/QWEK6Mgbq4wQea7y41J2/pnoGRdWdNVpPyqnO23MXVGgT1njfOXr
6m8suzP43DGwFIz1Y4sbAdTu4RnkRQ8tU+VtxwJG3X8idZIiSUTfCpsFCYR5HSL3
8Vw7savoCDfhx3es3UCuUD0ffkfaOgvM9HOAC5Q0AaUBgH/iAQc8pDzQnWjt739c
SUUfXDt3OgiXU0W4POA3xJ/ifh6AfdJv9IOWCyH+tzeNcKyn4lTMw3hKSbmcwrqA
yaTOoU2Qh0LmFmqhCgr30cxepkXXRS+ZoQxcrptCIH8dPRJl0QFZLdSAHdmQHz/X
MUSS3KgrAeMhSulYZnlQ
=WKJr
-----END PGP SIGNATURE-----
diff -Nru pylibmc-1.2.2/debian/changelog pylibmc-1.2.2/debian/changelog
--- pylibmc-1.2.2/debian/changelog	2011-12-07 19:56:53.000000000 +0100
+++ pylibmc-1.2.2/debian/changelog	2013-06-20 22:17:32.000000000 +0200
@@ -1,3 +1,11 @@
+pylibmc (1.2.2-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Add patch libmemcached-1.0.9 to fix FTBFS with libmemcached-dev (>= 1.0.9)
+    (Closes: #712927).
+
+ -- Michael Fladischer <fladischermich...@fladi.at>  Thu, 20 Jun 2013 22:17:25 +0200
+
 pylibmc (1.2.2-1) unstable; urgency=low
 
   * New upstream version
diff -Nru pylibmc-1.2.2/debian/patches/libmemcached-1.0.9 pylibmc-1.2.2/debian/patches/libmemcached-1.0.9
--- pylibmc-1.2.2/debian/patches/libmemcached-1.0.9	1970-01-01 01:00:00.000000000 +0100
+++ pylibmc-1.2.2/debian/patches/libmemcached-1.0.9	2013-06-20 22:25:12.000000000 +0200
@@ -0,0 +1,35 @@
+Description: Adapt to libmemcached >= 1.0.9 new instance API
+ memcached_server_instance_st is no more and surprisingly there's no
+ deprecated typedef to help with that. Add a bunch of #IFDEFs and adapt
+ to the new API.
+Author: Michael Fladischer <fladischermich...@fladi.at>
+Last-Update: 2013-06-20
+Forwarded: no
+Bug: #712927
+
+--- a/_pylibmcmodule.c
++++ b/_pylibmcmodule.c
+@@ -1887,12 +1887,23 @@
+ #if LIBMEMCACHED_VERSION_HEX >= 0x00038000
+     if (key != NULL) {
+         memcached_return rc = MEMCACHED_FAILURE;
++        #if defined(LIBMEMCACHED_VERSION_HEX) && LIBMEMCACHED_VERSION_HEX >= 0x01000009
++        const memcached_instance_st* svr = NULL;
++        #else
+         memcached_server_instance_st svr = NULL;
++        #endif
+ 
+         svr = memcached_server_by_key(mc, key, len, &rc);
+         if (svr && rc == MEMCACHED_SUCCESS) {
++            #if defined(LIBMEMCACHED_VERSION_HEX) && LIBMEMCACHED_VERSION_HEX >= 0x01000009
++            sz += snprintf(buf + sz, n - sz, " on %s:%d",
++                           memcached_server_name(svr),
++                           memcached_server_port(svr));
++
++            #else
+             sz += snprintf(buf + sz, n - sz, " on %s:%d",
+                            svr->hostname, svr->port);
++            #endif
+         }
+     }
+ #endif
diff -Nru pylibmc-1.2.2/debian/patches/series pylibmc-1.2.2/debian/patches/series
--- pylibmc-1.2.2/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ pylibmc-1.2.2/debian/patches/series	2013-06-20 22:12:16.000000000 +0200
@@ -0,0 +1 @@
+libmemcached-1.0.9
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to