Subject: unblock: pytools/2014.3-2
Package: release.debian.org
User: release.debian.org@packages.debian.org
Usertags: unblock
Severity: normal
Please unblock package pytools
2014.3-2 contains fix for security bug similar to one
in PyOpenCL (#770692) and PyCUDA (#770689).
diff -Nru pytools-2014.3/debian/changelog
pytools-2014.3/debian/changelog
--- pytools-2014.3/debian/changelog 2014-08-24 16:21:26.000000000 +0200
+++ pytools-2014.3/debian/changelog 2014-11-29 20:18:34.000000000 +0100
@@ -1,3 +1,11 @@
+pytools (2014.3-2) unstable; urgency=medium
+
+ * Add dependency to appdirs and use it to create cache directories,
+ similarly to fix in PyOpenCL and PyCUDA.
+ * Update Standards-Version to 3.9.6; no changes necessary.
+
+ -- Tomasz Rybak <tomasz.rybak@post.pl> Sat, 29 Nov 2014 20:06:12
+0100
+
pytools (2014.3-1) unstable; urgency=medium
* New upstream release.
diff -Nru pytools-2014.3/debian/control pytools-2014.3/debian/control
--- pytools-2014.3/debian/control 2014-08-24 16:21:26.000000000 +0200
+++ pytools-2014.3/debian/control 2014-11-29 20:18:34.000000000 +0100
@@ -11,7 +11,7 @@
python3-numpy,
python-decorator,
python3-decorator
-Standards-Version: 3.9.5
+Standards-Version: 3.9.6
X-Python-Version: >= 2.5
X-Python3-Version: >= 3.2
Homepage: http://mathema.tician.de/software/pytools
@@ -21,6 +21,7 @@
Package: python-pytools
Architecture: all
Depends: ${misc:Depends}, ${python:Depends},
+ python-appdirs,
python-numpy,
python-decorator
Description: big bag of things supplementing Python standard library
@@ -37,6 +38,7 @@
Package: python3-pytools
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends},
+ python3-appdirs,
python3-numpy,
python3-decorator
Description: big bag of things supplementing Python 3 standard library
diff -Nru pytools-2014.3/debian/patches/series
pytools-2014.3/debian/patches/series
--- pytools-2014.3/debian/patches/series 2014-08-24 16:21:26.000000000
+0200
+++ pytools-2014.3/debian/patches/series 2014-11-29 20:18:34.000000000
+0100
@@ -1 +1,2 @@
remove-decorator.patch
+use-appdirs.patch
diff -Nru pytools-2014.3/debian/patches/use-appdirs.patch
pytools-2014.3/debian/patches/use-appdirs.patch
--- pytools-2014.3/debian/patches/use-appdirs.patch 1970-01-01
01:00:00.000000000 +0100
+++ pytools-2014.3/debian/patches/use-appdirs.patch 2014-11-29
20:18:34.000000000 +0100
@@ -0,0 +1,51 @@
+Description: Change cache directory is created
+Origin:
https://github.com/inducer/pytools/commit/eefea8e6012c3d94794f244a245d64bb69169331
+Forwarded:
https://github.com/inducer/pytools/commit/eefea8e6012c3d94794f244a245d64bb69169331
+Applied-Upstream:
https://github.com/inducer/pytools/commit/eefea8e6012c3d94794f244a245d64bb69169331
+Last-Update: 2014-11-29
+Index: pytools-2014.3/pytools/persistent_dict.py
+===================================================================
+--- pytools-2014.3.orig/pytools/persistent_dict.py
++++ pytools-2014.3/pytools/persistent_dict.py
+@@ -238,13 +238,12 @@ class PersistentDict(object):
+
+ from os.path import join
+ if container_dir is None:
+- from tempfile import gettempdir
+- import getpass
+- container_dir = join(gettempdir(),
+- "pytools-pdict-%s-uid%s-py%s" % (
++ import appdirs
++ container_dir = join(
++ appdirs.user_cache_dir("pytools", "pytools"),
++ "pdict-v2-%s-py%s" % (
+ identifier,
+- getpass.getuser(),
+- ".".join(str(i) for i in sys.version_info)))
++ ".".join(str(i) for i in sys.version_info),))
+
+ self.container_dir = container_dir
+
+@@ -254,7 +253,7 @@ class PersistentDict(object):
+ # {{{ ensure container directory exists
+
+ try:
+- os.mkdir(self.container_dir)
++ os.makedirs(self.container_dir)
+ except OSError, e:
+ from errno import EEXIST
+ if e.errno != EEXIST:
+Index: pytools-2014.3/setup.py
+===================================================================
+--- pytools-2014.3.orig/setup.py
++++ pytools-2014.3/setup.py
+@@ -43,7 +43,8 @@ setup(name="pytools",
+ ],
+
+ install_requires=[
+- "decorator>=3.2.0"
++ "decorator>=3.2.0",
++ "appdirs>=1.4.0",
+ ],
+
+ author="Andreas Kloeckner",
unblock pytools/2014.3-2
thanks
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--
Tomasz Rybak GPG/PGP key ID: 2AD5 9860
Fingerprint A481 824E 7DD3 9C0E C40A 488E C654 FB33 2AD5 9860
http://member.acm.org/~tomaszrybak
Attachment:
signature.asc
Description: This is a digitally signed message part