Subject: unblock: pyopencl/2014.1-3 Package: release.debian.org User: release.debian.org@packages.debian.org Usertags: unblock Severity: normal Please unblock package pyopencl 2014.1-3 fixes security bug #770698, improper handling of cache directory, diff -Nru pyopencl-2014.1/debian/changelog pyopencl-2014.1/debian/changelog --- pyopencl-2014.1/debian/changelog 2014-10-04 20:43:13.000000000 +0200 +++ pyopencl-2014.1/debian/changelog 2014-11-29 13:27:07.000000000 +0100 @@ -1,3 +1,11 @@ +pyopencl (2014.1-3) unstable; urgency=medium + + * Add dependency to appdirs and use it to create cache directories + (Closes: #770692). + * Update Standards-Version to 3.9.6; no changes necessary. + + -- Tomasz Rybak <tomasz.rybak@post.pl> Sat, 29 Nov 2014 11:43:47 +0100 + pyopencl (2014.1-2) unstable; urgency=medium * Add build-time dependency on ocl-icd-opencl-dev (Closes: #761566). diff -Nru pyopencl-2014.1/debian/control pyopencl-2014.1/debian/control --- pyopencl-2014.1/debian/control 2014-10-04 20:43:13.000000000 +0200 +++ pyopencl-2014.1/debian/control 2014-11-29 13:27:07.000000000 +0100 @@ -19,7 +19,7 @@ python3-sphinx (>= 1.0.7+dfsg), python-pytools (>= 2014.2), python3-pytools -Standards-Version: 3.9.5 +Standards-Version: 3.9.6 X-Python-Version: >= 2.5 X-Python3-Version: >= 3.3 Homepage: http://mathema.tician.de/software/pyopencl @@ -32,6 +32,7 @@ ocl-icd-libopencl1 | libopencl1, mesa-opencl-icd | beignet | opencl-icd, python-pkg-resources, + python-appdirs, python-numpy, python-pytools (>= 2014.2) Recommends: python-pyopencl-doc, @@ -92,6 +93,7 @@ ocl-icd-libopencl1 | libopencl1, mesa-opencl-icd | beignet | opencl-icd, python3-pkg-resources, + python3-appdirs, python3-numpy, python3-pytools (>= 2014.2) Recommends: python-pyopencl-doc, diff -Nru pyopencl-2014.1/debian/patches/series pyopencl-2014.1/debian/patches/series --- pyopencl-2014.1/debian/patches/series 2014-10-04 20:43:13.000000000 +0200 +++ pyopencl-2014.1/debian/patches/series 2014-11-29 13:27:07.000000000 +0100 @@ -1,3 +1,4 @@ hardening.patch python-versions.patch fix-setup.patch +use-appdirs.patch diff -Nru pyopencl-2014.1/debian/patches/use-appdirs.patch pyopencl-2014.1/debian/patches/use-appdirs.patch --- pyopencl-2014.1/debian/patches/use-appdirs.patch 1970-01-01 01:00:00.000000000 +0100 +++ pyopencl-2014.1/debian/patches/use-appdirs.patch 2014-11-29 13:27:07.000000000 +0100 @@ -0,0 +1,43 @@ +Description: Change cache directory is created +Origin: https://github.com/pyopencl/pyopencl/pull/68 +Forwarded: https://github.com/pyopencl/pyopencl/pull/68 +Appied-Upstream: https://github.com/pyopencl/pyopencl/pull/68 +Last-Update: 2014-11-29 +Index: pyopencl-2014.1/pyopencl/cache.py +=================================================================== +--- pyopencl-2014.1.orig/pyopencl/cache.py ++++ pyopencl-2014.1/pyopencl/cache.py +@@ -337,16 +337,15 @@ def _create_built_program_from_source_ca + option_idx += 1 + + if cache_dir is None: +- from tempfile import gettempdir +- import getpass +- cache_dir = join(gettempdir(), +- "pyopencl-compiler-cache-v2-uid%s-py%s" % ( +- getpass.getuser(), ".".join(str(i) for i in sys.version_info))) ++ import appdirs ++ cache_dir = join(appdirs.user_cache_dir("pyopencl", "pyopencl"), ++ "pyopencl-compiler-cache-v2-py%s" % ( ++ ".".join(str(i) for i in sys.version_info),)) + + # {{{ ensure cache directory exists + + try: +- os.mkdir(cache_dir) ++ os.makedirs(cache_dir) + except OSError, e: + from errno import EEXIST + if e.errno != EEXIST: +Index: pyopencl-2014.1/setup.py +=================================================================== +--- pyopencl-2014.1.orig/setup.py ++++ pyopencl-2014.1/setup.py +@@ -184,6 +184,7 @@ def main(): + install_requires=[ + "pytools>=2014.2", + "decorator>=3.2.0", ++ "appdirs>=1.4.0", + # "Mako>=0.3.6", + ], + unblock pyopencl/2014.1-3 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