pkgsrc-WIP-changes archive

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

py-cracklib: updated to 2.9.5



Module Name:	pkgsrc-wip
Committed By:	Adam Ciarciński <aciarcinski%teonite.com@localhost>
Pushed By:	adam
Date:		Fri Dec 14 13:46:52 2018 +0100
Changeset:	076560c176da53e6360ec15dfc33a178549d5efc

Modified Files:
	py-cracklib/Makefile
	py-cracklib/distinfo
Added Files:
	py-cracklib/patches/patch-py-compile

Log Message:
py-cracklib: updated to 2.9.5

v2.9.5 fix matching against first password in dictionary
v2.9.4 remove doubled prototype
v2.9.3 expose additional functions externally
v2.9.2 support build of python support outside of source tree
       fix bug in Python string distance calculation
       fix bug #16 / debian bug 724570 - broken optimization with packlib prevblock
v2.9.1 added updated config.sub/config.guess in autogen

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=076560c176da53e6360ec15dfc33a178549d5efc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-cracklib/Makefile                 | 10 +++-----
 py-cracklib/distinfo                 |  8 +++---
 py-cracklib/patches/patch-py-compile | 49 ++++++++++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+), 9 deletions(-)

diffs:
diff --git a/py-cracklib/Makefile b/py-cracklib/Makefile
index 1180056d08..a9843d848d 100644
--- a/py-cracklib/Makefile
+++ b/py-cracklib/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2013/09/17 13:49:55 thomasklausner Exp $
+# $NetBSD$
 
-DISTNAME=	cracklib-2.9.0
+DISTNAME=	cracklib-2.9.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES=	security
+CATEGORIES=	security python
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=cracklib/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
@@ -10,12 +10,10 @@ HOMEPAGE=	http://sourceforge.net/projects/cracklib/
 COMMENT=	Tool for preventing users from choosing bad passwords
 LICENSE=	gnu-lgpl-v2.1
 
-GNU_CONFIGURE=		yes
 USE_LIBTOOL=		yes
 USE_PKGLOCALEDIR=	yes
+GNU_CONFIGURE=		yes
 PY_PATCHPLIST=		yes
-# does not follow this convention
-PY_PEP3147=		no
 
 .include "../../lang/python/extension.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-cracklib/distinfo b/py-cracklib/distinfo
index 9042bca51e..2864cabb57 100644
--- a/py-cracklib/distinfo
+++ b/py-cracklib/distinfo
@@ -1,5 +1,7 @@
 $NetBSD: distinfo,v 1.1 2013/09/17 13:49:56 thomasklausner Exp $
 
-SHA1 (cracklib-2.9.0.tar.gz) = 827dcd24b14bf23911c34f4226b4453b24f949a3
-RMD160 (cracklib-2.9.0.tar.gz) = 036ea1f6e259fac3be24d7ac039796874f3ced8a
-Size (cracklib-2.9.0.tar.gz) = 626322 bytes
+SHA1 (cracklib-2.9.5.tar.gz) = d2619bb5dc0ed216d5220a2d30922923b5f8b414
+RMD160 (cracklib-2.9.5.tar.gz) = f9c98963dcc6014f568d4c781853ad4f80312a74
+SHA512 (cracklib-2.9.5.tar.gz) = 2362419deb9024b8d761f8349210a25c3182568bb4a4ecf59b1f221ad0c9bd6049fb26eafe853d55b50dcca5f66c695d58b432c70d14054db704ca28a68aa2e2
+Size (cracklib-2.9.5.tar.gz) = 622499 bytes
+SHA1 (patch-py-compile) = 01584ae9ff16d3b7e29c35eecb5bce6cbac1abcc
diff --git a/py-cracklib/patches/patch-py-compile b/py-cracklib/patches/patch-py-compile
new file mode 100644
index 0000000000..a791a2f042
--- /dev/null
+++ b/py-cracklib/patches/patch-py-compile
@@ -0,0 +1,49 @@
+$NetBSD$
+
+Use PEP 3147 filenames (taken from py-gobject3).
+
+--- py-compile.orig	2018-12-14 12:21:40.000000000 +0000
++++ py-compile
+@@ -117,7 +116,7 @@ else
+ fi
+ 
+ $PYTHON -c "
+-import sys, os, py_compile
++import sys, os, py_compile, imp
+ 
+ files = '''$files'''
+ 
+@@ -130,12 +129,19 @@ for file in files.split():
+ 	    continue
+     sys.stdout.write(file)
+     sys.stdout.flush()
+-    py_compile.compile(filepath, filepath + 'c', path)
++    if hasattr(imp, 'get_tag'):
++        py_compile.compile(filepath, imp.cache_from_source(filepath), path)
++    else:
++        py_compile.compile(filepath, filepath + 'c', path)
+ sys.stdout.write('\n')" || exit $?
+ 
+ # this will fail for python < 1.5, but that doesn't matter ...
+ $PYTHON -O -c "
+-import sys, os, py_compile
++import sys, os, py_compile, imp
++
++# pypy does not use .pyo optimization
++if hasattr(sys, 'pypy_translation_info'):
++    sys.exit(0)
+ 
+ files = '''$files'''
+ sys.stdout.write('Byte-compiling python modules (optimized versions) ...\n')
+@@ -147,7 +153,10 @@ for file in files.split():
+ 	    continue
+     sys.stdout.write(file)
+     sys.stdout.flush()
+-    py_compile.compile(filepath, filepath + 'o', path)
++    if hasattr(imp, 'get_tag'):
++        py_compile.compile(filepath, imp.cache_from_source(filepath, False), path)
++    else:
++        py_compile.compile(filepath, filepath + 'o', path)
+ sys.stdout.write('\n')" 2>/dev/null || :
+ 
+ # Local Variables:


Home | Main Index | Thread Index | Old Index