pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/py-jinja2 Update to 2.7.3:
details: https://anonhg.NetBSD.org/pkgsrc/rev/56dd42e87b8c
branches: trunk
changeset: 635629:56dd42e87b8c
user: wiz <wiz%pkgsrc.org@localhost>
date: Mon Jun 09 12:36:51 2014 +0000
description:
Update to 2.7.3:
Version 2.7.3
-------------
(bugfix release, released on June 6th 2014)
- Security issue: Corrected the security fix for the cache folder. This
fix was provided by RedHat.
diffstat:
textproc/py-jinja2/Makefile | 8 ++--
textproc/py-jinja2/distinfo | 9 ++--
textproc/py-jinja2/patches/patch-jinja2_bccache.py | 42 ----------------------
3 files changed, 8 insertions(+), 51 deletions(-)
diffs (86 lines):
diff -r bfdaf13a67bb -r 56dd42e87b8c textproc/py-jinja2/Makefile
--- a/textproc/py-jinja2/Makefile Mon Jun 09 12:36:03 2014 +0000
+++ b/textproc/py-jinja2/Makefile Mon Jun 09 12:36:51 2014 +0000
@@ -1,10 +1,9 @@
-# $NetBSD: Makefile,v 1.15 2014/05/14 23:17:46 mspo Exp $
+# $NetBSD: Makefile,v 1.16 2014/06/09 12:36:51 wiz Exp $
-DISTNAME= Jinja2-2.7.2
+DISTNAME= Jinja2-2.7.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES= textproc python
MASTER_SITES= http://pypi.python.org/packages/source/J/Jinja2/
-PKGREVISION= 1
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= http://jinja.pocoo.org/2/
@@ -17,7 +16,8 @@
SUBST_CLASSES+= unicode
SUBST_FILES.unicode= jinja2/*.py jinja2/testsuite/*.py
-SUBST_SED.unicode+= -e "s,u',',g" -e 's,u",",g'
+SUBST_SED.unicode+= -e "s,u',',g"
+SUBST_SED.unicode+= -e 's,u",",g'
SUBST_STAGE.unicode= pre-install
.include "../../lang/python/egg.mk"
diff -r bfdaf13a67bb -r 56dd42e87b8c textproc/py-jinja2/distinfo
--- a/textproc/py-jinja2/distinfo Mon Jun 09 12:36:03 2014 +0000
+++ b/textproc/py-jinja2/distinfo Mon Jun 09 12:36:51 2014 +0000
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.8 2014/05/14 02:28:18 mspo Exp $
+$NetBSD: distinfo,v 1.9 2014/06/09 12:36:51 wiz Exp $
-SHA1 (Jinja2-2.7.2.tar.gz) = 1ce4c8bc722444ec3e77ef9db76faebbd17a40d8
-RMD160 (Jinja2-2.7.2.tar.gz) = 7bf0278d6fd75fc402b5dba785b29badeb507650
-Size (Jinja2-2.7.2.tar.gz) = 378300 bytes
-SHA1 (patch-jinja2_bccache.py) = 0c1cab3fcc83d210569071ddb2e2c6713f8f9325
+SHA1 (Jinja2-2.7.3.tar.gz) = 25ab3881f0c1adfcf79053b58de829c5ae65d3ac
+RMD160 (Jinja2-2.7.3.tar.gz) = e84a4c27dfb4cdd58c4f9625fcc48b0851a2b5c9
+Size (Jinja2-2.7.3.tar.gz) = 378470 bytes
diff -r bfdaf13a67bb -r 56dd42e87b8c textproc/py-jinja2/patches/patch-jinja2_bccache.py
--- a/textproc/py-jinja2/patches/patch-jinja2_bccache.py Mon Jun 09 12:36:03 2014 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-$NetBSD: patch-jinja2_bccache.py,v 1.1 2014/05/14 02:28:18 mspo Exp $
-
---- jinja2/bccache.py-orig 2014-05-14 02:23:49.000000000 +0000
-+++ jinja2/bccache.py
-@@ -16,6 +16,7 @@
- """
- from os import path, listdir
- import os
-+import stat
- import sys
- import errno
- import marshal
-@@ -215,7 +216,7 @@ class FileSystemBytecodeCache(BytecodeCa
-
- # On windows the temporary directory is used specific unless
- # explicitly forced otherwise. We can just use that.
-- if os.name == 'n':
-+ if os.name == 'nt':
- return tmpdir
- if not hasattr(os, 'getuid'):
- raise RuntimeError('Cannot determine safe temp directory. You '
-@@ -224,12 +225,18 @@ class FileSystemBytecodeCache(BytecodeCa
- dirname = '_jinja2-cache-%d' % os.getuid()
- actual_dir = os.path.join(tmpdir, dirname)
- try:
-- # 448 == 0700
-- os.mkdir(actual_dir, 448)
-+ os.mkdir(actual_dir, stat.S_IRWXU) # 0o700
- except OSError as e:
- if e.errno != errno.EEXIST:
- raise
-
-+ actual_dir_stat = os.lstat(actual_dir)
-+ if actual_dir_stat.st_uid != os.getuid() \
-+ or not stat.S_ISDIR(actual_dir_stat.st_mode) \
-+ or stat.S_IMODE(actual_dir_stat.st_mode) != stat.S_IRWXU:
-+ raise RuntimeError('Temporary directory \'%s\' has an incorrect '
-+ 'owner, permissions, or type.' % actual_dir)
-+
- return actual_dir
-
- def _get_cache_filename(self, bucket):
Home |
Main Index |
Thread Index |
Old Index