On Mon, 13 Oct 2014 15:36:56 +0200 Jan Gerber <j...@mailb.org> wrote:
> Package: python-couchdb
> Version: 0.10-1
> Severity: important
>
> dpkg fails while setting up couchdb:
>
> Setting up python-couchdb (0.10-1) ...
> File "/usr/lib/python2.7/dist-packages/couchdb/util3.py", line 17
> pyexec = exec
> ^
> SyntaxError: invalid syntax
>
> dpkg: error processing package python-couchdb (--configure):
> subprocess installed post-installation script returned error exit status
101
> Errors were encountered while processing:
> python-couchdb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> util3.py is only imported in python3 (from util.py)
> dpkg calls pycompile that tries to compile all files in the folder.
Since this has gone over a week with no maintainer reply and is a release
critical bug, I'm going to go ahead and upload an NMU shortly. NMU diff
attached.
Scott K
diff -Nru python-couchdb-0.10/debian/changelog python-couchdb-0.10/debian/changelog
--- python-couchdb-0.10/debian/changelog 2014-09-28 12:14:36.000000000 -0400
+++ python-couchdb-0.10/debian/changelog 2014-11-13 01:18:46.000000000 -0500
@@ -1,3 +1,12 @@
+python-couchdb (0.10-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Add debian/patches/util3_pycompile.diff to disable unused pyexec and
+ fix install failure during pycompile (Closes: #765086)
+ - Patch thanks to Michael Vogt
+
+ -- Scott Kitterman <sc...@kitterman.com> Thu, 13 Nov 2014 01:17:25 -0500
+
python-couchdb (0.10-1) unstable; urgency=medium
* New upstream version
diff -Nru python-couchdb-0.10/debian/patches/series python-couchdb-0.10/debian/patches/series
--- python-couchdb-0.10/debian/patches/series 2014-09-28 12:14:36.000000000 -0400
+++ python-couchdb-0.10/debian/patches/series 2014-11-13 01:10:42.000000000 -0500
@@ -1,2 +1,3 @@
01-improve_bin_scripts.patch
03-remove_module_shebang.patch
+util3_pycompile.diff
diff -Nru python-couchdb-0.10/debian/patches/util3_pycompile.diff python-couchdb-0.10/debian/patches/util3_pycompile.diff
--- python-couchdb-0.10/debian/patches/util3_pycompile.diff 1969-12-31 19:00:00.000000000 -0500
+++ python-couchdb-0.10/debian/patches/util3_pycompile.diff 2014-11-13 01:16:34.000000000 -0500
@@ -0,0 +1,26 @@
+Description: Disable pyexec in util3.py to avoid pycompile issue
+ couchdb/util3.py is not used with python (only python3, which is not
+ currently supported by the package), but is still executed by pycompile.
+ Pycompile will attempt to compile all files in the directory on install and
+ the python3 only syntax used in util3.py causes it to fail. Commenting out
+ the pyexec works around the issue and has no effect since python3 isn't
+ supported.
+ In the long run, this should be fixed properly, but this is a reasonable
+Author: Michael Vogt <m...@debian.org>
+Bug-Debian: http://bugs.debian.org/765086
+Origin: vendor
+Forwarded: no
+Reviewed-By: Scott Kitterman <sc...@kitterman.com>
+Last-Update: 2014-11-13
+
+--- python-couchdb-0.10.orig/couchdb/util3.py
++++ python-couchdb-0.10/couchdb/util3.py
+@@ -14,7 +14,7 @@ from urllib.parse import urlsplit, urlun
+ from urllib.parse import quote as urlquote
+ from urllib.parse import unquote as urlunquote
+
+-pyexec = exec
++#pyexec = exec
+
+ def funcode(fun):
+ return fun.__code__