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

Bug#698798: unblock: parallelpython/1.6.2-2



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package parallelpython

i've just uploaded parallelpython as preapproved at: http://lists.debian.org/debian-release/2013/01/msg00893.html

unblock parallelpython/1.6.2-2

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.7-trunk-amd64 (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 parallelpython-1.6.2/debian/changelog parallelpython-1.6.2/debian/changelog
--- parallelpython-1.6.2/debian/changelog	2012-06-07 22:49:53.000000000 +0200
+++ parallelpython-1.6.2/debian/changelog	2013-01-23 20:10:02.000000000 +0100
@@ -1,3 +1,11 @@
+parallelpython (1.6.2-2) unstable; urgency=low
+
+  * Invoke ppworker via "python -m" avoiding addition of /usr/share/pyshared
+    to sys.path; thanks to Zbigniew Jędrzejewski-Szmek for the report and to
+    Yaroslav Halchenko, Jakub Wilk for the fix; Closes: #620551
+
+ -- Sandro Tosi <morph@debian.org>  Wed, 23 Jan 2013 20:09:51 +0100
+
 parallelpython (1.6.2-1) unstable; urgency=low
 
   * New upstream release
diff -Nru parallelpython-1.6.2/debian/patches/30_ppworker_invoke_via-m.patch parallelpython-1.6.2/debian/patches/30_ppworker_invoke_via-m.patch
--- parallelpython-1.6.2/debian/patches/30_ppworker_invoke_via-m.patch	1970-01-01 01:00:00.000000000 +0100
+++ parallelpython-1.6.2/debian/patches/30_ppworker_invoke_via-m.patch	2013-01-23 20:09:17.000000000 +0100
@@ -0,0 +1,26 @@
+From: Yaroslav Halchenko <debian@onerussian.com>
+Author: Jakub Wilk <jwilk@debian.org>
+Subject: Do not invoke ppworker script directory -- run it via -m option of python
+
+ Invocation of script directly results in Python adding a directory containing
+ the symlink-dereferenced path to the script into the path.  On Debian systems
+ it would result in adding /usr/share/pyshared path to the sys.path breaking
+ import of many modules.
+
+Origin: Debian
+Bug-Debian: http://bugs.debian.org/620551
+Last-Update: 2013-01-22
+
+--- a/pp.py
++++ b/pp.py
+@@ -127,9 +127,7 @@ class _Task(object):
+ class _Worker(object):
+     """Local worker class
+     """
+-    command = [sys.executable, "-u",
+-            os.path.dirname(os.path.abspath(__file__))
+-            + os.sep + "ppworker.py"]
++    command = [sys.executable, "-u", "-m" , "ppworker"]
+ 
+     command.append("2>/dev/null")
+ 
diff -Nru parallelpython-1.6.2/debian/patches/series parallelpython-1.6.2/debian/patches/series
--- parallelpython-1.6.2/debian/patches/series	2011-09-15 23:35:22.000000000 +0200
+++ parallelpython-1.6.2/debian/patches/series	2013-01-23 20:09:17.000000000 +0100
@@ -1,2 +1,3 @@
 10_remove_default_password.patch
 20_hyphen-used-as-minus-sign.patch
+30_ppworker_invoke_via-m.patch

Reply to: