[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#677130: marked as done (pyppd doesn't build with python3)



Your message dated Tue, 12 Jun 2012 07:03:06 +0000
with message-id <E1SeL86-00027k-NK@franck.debian.org>
and subject line Bug#677130: fixed in pyppd 0.4.9-8
has caused the Debian Bug report #677130,
regarding pyppd doesn't build with python3
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
677130: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677130
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: pyppd
Version: 0.4.9-7
Severity: serious
Tags: patch
Justification: fails to build from source (but built successfully in the
past)
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu quantal ubuntu-patch

Dear Maintainer,

This patch allows pyppd to build with python3. In addition I've tested
it with
python2.7.
This modifies the setup.py long_description variable to convert loaded data
into bytes first,
then to utf-8.

*** /tmp/tmpUEI3Df/bug_body
In Ubuntu, the attached patch was applied to achieve the following:

  * debian/patches/03_python3_setup.patch: setup.py long_description fixed
    to work with both python2 and 3.

Thanks for considering the patch.



-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500,
'precise'), (100, 'precise-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-24-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

diff -Nru pyppd-0.4.9/debian/changelog pyppd-0.4.9/debian/changelog
diff -Nru pyppd-0.4.9/debian/patches/03_python3_setup.patch pyppd-0.4.9/debian/patches/03_python3_setup.patch
--- pyppd-0.4.9/debian/patches/03_python3_setup.patch	1969-12-31 18:00:00.000000000 -0600
+++ pyppd-0.4.9/debian/patches/03_python3_setup.patch	2012-06-11 11:59:36.000000000 -0500
@@ -0,0 +1,17 @@
+## Description: Fixes setup.py long_description to work with python3.
+## Author: Chris J Arges <chris.j.arges@canonical.com>
+Index: pyppd-0.4.9/setup.py
+===================================================================
+--- pyppd-0.4.9.orig/setup.py	2012-06-11 10:53:18.130693582 -0500
++++ pyppd-0.4.9/setup.py	2012-06-11 10:55:45.822691880 -0500
+@@ -28,8 +28,8 @@
+     url='http://gitorious.org/vitorbaptista/pyppd/',
+     license='GPLv3',
+     description='A CUPS PostScript Printer Driver\'s compressor and generator',
+-    long_description=open('README.txt').read() + "\n" +
+-                     open('ISSUES.txt').read(),
++    long_description=(open('README.txt', 'rb').read() + b"\n" +
++                     open('ISSUES.txt', 'rb').read()).decode("utf-8"),
+     cmdclass={'sdist': sdist},
+     classifiers=[
+         'Development Status :: 4 - Beta',
diff -Nru pyppd-0.4.9/debian/patches/series pyppd-0.4.9/debian/patches/series
--- pyppd-0.4.9/debian/patches/series	2012-06-05 02:52:15.000000000 -0500
+++ pyppd-0.4.9/debian/patches/series	2012-06-11 11:08:18.000000000 -0500
@@ -1,3 +1,4 @@
 00git_improve_runtime_error_handling.patch
 01_python3_compat.patch
 02_use_python3.patch
+03_python3_setup.patch


--- End Message ---
--- Begin Message ---
Source: pyppd
Source-Version: 0.4.9-8

We believe that the bug you reported is fixed in the latest version of
pyppd, which is due to be installed in the Debian FTP archive:

pyppd_0.4.9-8.debian.tar.gz
  to main/p/pyppd/pyppd_0.4.9-8.debian.tar.gz
pyppd_0.4.9-8.dsc
  to main/p/pyppd/pyppd_0.4.9-8.dsc
pyppd_0.4.9-8_all.deb
  to main/p/pyppd/pyppd_0.4.9-8_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 677130@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin Pitt <mpitt@debian.org> (supplier of updated pyppd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 12 Jun 2012 08:39:24 +0200
Source: pyppd
Binary: pyppd
Architecture: source all
Version: 0.4.9-8
Distribution: experimental
Urgency: low
Maintainer: Debian Printing Group <debian-printing@lists.debian.org>
Changed-By: Martin Pitt <mpitt@debian.org>
Description: 
 pyppd      - CUPS PostScript Printer Driver's compressor and generator
Closes: 677130
Changes: 
 pyppd (0.4.9-8) experimental; urgency=low
 .
   * 00git_improve_runtime_error_handling.patch: Also import upstream commit
     efa467c0a to only exit if the IOError caught was a Broken Pipe.
   * 01_python3_compat.patch: Update to current upstream merge proposal to
     rework bytes vs. string handling to be more robust. Also fix setup.py to
     work under non-UTF8 locales. (Closes: #677130)
Checksums-Sha1: 
 efe47b018ef67cb1adb41cb044ce6b2435b85d51 1871 pyppd_0.4.9-8.dsc
 63b73e3d69193d09cc2abd6dbe31030d92c6fe0e 8361 pyppd_0.4.9-8.debian.tar.gz
 a18bf371ca34fd248d0f4ed0c7d9de3ede0e220b 20466 pyppd_0.4.9-8_all.deb
Checksums-Sha256: 
 4f83f0dfe86bdb00c095bf7d45c3fe6b2081ded56a891af5e85b75e15f3fd859 1871 pyppd_0.4.9-8.dsc
 f5a0d84a9c1929e5c96e9ead0fa24c3f692382475ac6dba973306affd1ccf7cd 8361 pyppd_0.4.9-8.debian.tar.gz
 a527e1973798854239e1c8ff2fee9a78ea900e9e4c3dcc68a58b627039e1b3b7 20466 pyppd_0.4.9-8_all.deb
Files: 
 8eceafc2c671ee27f27018d081f3bddc 1871 python extra pyppd_0.4.9-8.dsc
 8282d7e371c330db01528db084552032 8361 python extra pyppd_0.4.9-8.debian.tar.gz
 8a2dac54242979358882bf5a70886ea2 20466 python extra pyppd_0.4.9-8_all.deb

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

iQIcBAEBCAAGBQJP1uaUAAoJEPmIJawmtHufFQEP/izxpxBVcUea6fnccmpCYPPB
PsIVy+ldn8YldIJpZ8Qwnd569iFEstYY+GHmO68Elhw01nBVWaZWlvcN1FM48DV6
1ZEZdOjTk4Z97Qt1GkF4u6GZNc9R7YyxtH8xdPjIsVOTCB1Y/HptjU7HTfsW4eYX
T+MD3KJGhGwionZnXG0OCtHvA5PwAR0Hr/9mB8UTId3PIRjbLVHSDNUKcx+TgnIX
jojUrFYsMxSgHBQvXFkuPyPVsLoHs3AkugvfSAyYYfALEMjx+r2QKVlO36S+GaHO
aqn2TZ/flKpkrGLNN1MYbFkwKeeNu0LUsoFkIMfnuJg/XuBD0COjeejwcyBfmk1c
bUP6vxU7qXxjWG6db65SatnQ+PZw6HxYM/MA4lQyoHHJBZDnCWZBmig53x00Toiq
+vdX80sGApqq281lIYZriChcfimeodQzNrPIbPtXeVnBlMpWCJed0Nk4kKhV2R0n
0hw9DS3Js8oObIdGbS8W3htKT4cxPt7YTVeQwg02kv332O64Ss7kmwnAZbXluns9
vCIK5hWSbf6TFPBXzMqFPGngwZsNlGKLa6d+QkLck8rqWQmW0/3aVTdiLsbXQHOK
/bGww5UdFfEB0wuo2FsEpwJI5MK3LsVq93nAr/A8PeIAlhrIIzXtFiG0Ugx/5lYZ
lcW7qtkbp5tw1Lr6A2He
=wTjV
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: