Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.62 2014/03/27 05:36:10 obache Exp $
# $NetBSD: Makefile,v 1.64 2014/10/27 20:11:34 drochner Exp $
.include "dist.mk"
PKGREVISION= 3
PKGREVISION= 4
PKGNAME= python26-${PY_DISTVERSION}
CATEGORIES= lang python
@@ -155,6 +155,12 @@ SUBST_STAGE.findlib= pre-configure
SUBST_FILES.findlib= Lib/distutils/unixccompiler.py
SUBST_SED.findlib= -e 's,/usr/local,${PREFIX},'
SUBST_CLASSES+= sslbase
SUBST_MESSAGE.sslbase= Fixing find-file for openssl with SSLBASE.
SUBST_STAGE.sslbase= pre-configure
SUBST_FILES.sslbase= setup.py
SUBST_VARS.sslbase= SSLBASE
post-extract:
${LN} -s ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Tools/scripts/smtpd${PY_VER_SUFFIX}.py
${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}

View File

@@ -1,8 +1,9 @@
$NetBSD: distinfo,v 1.57 2014/03/27 06:14:57 obache Exp $
$NetBSD: distinfo,v 1.60 2014/10/27 20:11:34 drochner Exp $
SHA1 (Python-2.6.9.tar.xz) = 2fc159946dfcceffbe4a8638de32d0cd8059c2f8
RMD160 (Python-2.6.9.tar.xz) = 42edf7c9f2f64b77ab173de30ea453257c2c06b3
Size (Python-2.6.9.tar.xz) = 9333664 bytes
SHA1 (patch-CVE-2014-7185) = 768199954b166474ab471e34afc9238fd7125ce8
SHA1 (patch-Lib_distutils_unixccompiler.py) = 1ce01fbe2d36cf0c7ce347c878cfe2d290ec8490
SHA1 (patch-Mac_Modules_fm___Fmmodule.c) = b9314bccb51b4fe672b81559068f7a79d2965f94
SHA1 (patch-Mac_Modules_qd___Qdmodule.c) = 45c748b15b9436d45ba137460389638aa7108c8d
@@ -17,7 +18,7 @@ SHA1 (patch-ad) = a997e39d16a8f0023125362b180d19ee97ab519b
SHA1 (patch-ae) = a6d578b5f12eb42fbbcc11791576d2686a4807d9
SHA1 (patch-ah) = 501d220b41e578402f3400fe88e582aa2408a147
SHA1 (patch-al) = 45dd16af8e7a45aa323138f712c034aa79a91019
SHA1 (patch-am) = 4064aa3cbe34389ce344d7372eb71c7305f38e07
SHA1 (patch-am) = 216e4993a83b3ff1193c2ab524e761bc9ae3d52d
SHA1 (patch-an) = 17b4e17b3b562c29a050e9bb20447084ce82b8ab
SHA1 (patch-ao) = 8c6a156b0f0c2a6d319658477fff348e6a0c3603
SHA1 (patch-ap) = 5ad6f248027be369bd27f69210ff3c7b97a297a2

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-CVE-2014-7185,v 1.1 2014/10/27 20:11:34 drochner Exp $
http://bugs.python.org/issue21831
--- Objects/bufferobject.c.orig 2014-10-27 19:46:40.000000000 +0000
+++ Objects/bufferobject.c
@@ -88,7 +88,7 @@ get_buf(PyBufferObject *self, void **ptr
*size = count;
else
*size = self->b_size;
- if (offset + *size > count)
+ if (*size > count - offset)
*size = count - offset;
}
return 1;

View File

@@ -1,4 +1,4 @@
$NetBSD: patch-am,v 1.22 2014/03/27 05:36:10 obache Exp $
$NetBSD: patch-am,v 1.24 2014/05/21 00:35:50 obache Exp $
Disabled modules for normal build:
bsddb
@@ -17,14 +17,16 @@ Those have separate packages where needed.
Only check the BUILDLINK_DIR for libraries etc, do not pick up random
headers and libraries from the system.
Build the _ssl module with pkgsrc choiced OpenSSL.
Build the 1.85 compat module all the time against the BDB version of choice.
Add in Debian multiarch support (retrofitted from Python 2.7.2) to
support building the "nis" and "crypt" modules.
--- setup.py 2010-07-18 00:31:09.000000000 +1200
+++ setup.py 2011-09-23 01:51:17.757519638 +1200
@@ -18,7 +18,7 @@
--- setup.py.orig 2013-10-29 15:04:39.000000000 +0000
+++ setup.py
@@ -18,7 +18,7 @@ from distutils.command.install_lib impor
from distutils.spawn import find_executable
# This global variable is used to hold the list of modules to be disabled.
@@ -33,7 +35,7 @@ support building the "nis" and "crypt" modules.
def add_dir_to_list(dirlist, dir):
"""Add the directory 'dir' to the list 'dirlist' (at the front) if
@@ -354,10 +354,40 @@
@@ -354,10 +354,40 @@ class PyBuildExt(build_ext):
return platform
return sys.platform
@@ -77,7 +79,22 @@ support building the "nis" and "crypt" modules.
# Add paths specified in the environment variables LDFLAGS and
# CPPFLAGS for header and library files.
@@ -703,9 +733,7 @@
@@ -691,11 +721,10 @@ class PyBuildExt(build_ext):
depends = ['socketmodule.h']) )
# Detect SSL support for the socket module (via _ssl)
search_for_ssl_incs_in = [
- '/usr/local/ssl/include',
- '/usr/contrib/ssl/include/'
+ '@SSLBASE@/include'
]
- ssl_incs = find_file('openssl/ssl.h', inc_dirs,
- search_for_ssl_incs_in
+ ssl_incs = find_file('openssl/ssl.h', [],
+ search_for_ssl_incs_in + inc_dirs
)
if ssl_incs is not None:
krb5_h = find_file('krb5.h', inc_dirs,
@@ -703,9 +732,7 @@ class PyBuildExt(build_ext):
if krb5_h:
ssl_incs += krb5_h
ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
@@ -88,7 +105,16 @@ support building the "nis" and "crypt" modules.
if (ssl_incs is not None and
ssl_libs is not None):
@@ -815,172 +843,6 @@
@@ -724,7 +751,7 @@ class PyBuildExt(build_ext):
# look for the openssl version header on the compiler search path.
opensslv_h = find_file('openssl/opensslv.h', [],
- inc_dirs + search_for_ssl_incs_in)
+ search_for_ssl_incs_in + inc_dirs)
if opensslv_h:
name = os.path.join(opensslv_h[0], 'openssl/opensslv.h')
if sys.platform == 'darwin' and is_macosx_sdk_path(name):
@@ -815,172 +842,6 @@ class PyBuildExt(build_ext):
else:
raise ValueError("unknown major BerkeleyDB version", major)
@@ -261,7 +287,7 @@ support building the "nis" and "crypt" modules.
# The sqlite interface
sqlite_setup_debug = False # verbose debug prints from this script?
@@ -1094,35 +956,40 @@
@@ -1094,35 +955,40 @@ class PyBuildExt(build_ext):
# we do not build this one. Otherwise this build will pick up
# the more recent berkeleydb's db.h file first in the include path
# when attempting to compile and it will fail.
@@ -327,7 +353,7 @@ support building the "nis" and "crypt" modules.
# Some systems have -lndbm, others don't
if self.compiler.find_library_file(lib_dirs, 'ndbm'):
ndbm_libs = ['ndbm']
@@ -1131,7 +998,7 @@
@@ -1131,7 +997,7 @@ class PyBuildExt(build_ext):
exts.append( Extension('dbm', ['dbmmodule.c'],
define_macros=[('HAVE_NDBM_H',None)],
libraries = ndbm_libs ) )
@@ -336,7 +362,7 @@ support building the "nis" and "crypt" modules.
gdbm_libs = ['gdbm']
if self.compiler.find_library_file(lib_dirs, 'gdbm_compat'):
gdbm_libs.append('gdbm_compat')
@@ -1147,14 +1014,12 @@
@@ -1147,14 +1013,12 @@ class PyBuildExt(build_ext):
libraries = gdbm_libs ) )
else:
missing.append('dbm')
@@ -354,7 +380,7 @@ support building the "nis" and "crypt" modules.
else:
missing.append('dbm')
@@ -1408,6 +1273,14 @@
@@ -1408,6 +1272,14 @@ class PyBuildExt(build_ext):
)
libraries = []
@@ -369,7 +395,7 @@ support building the "nis" and "crypt" modules.
else: # Linux and other unices
macros = dict(
HAVE_SEM_OPEN=1,
@@ -2026,9 +1899,9 @@
@@ -2026,9 +1898,9 @@ def main():
ext_modules=[Extension('_struct', ['_struct.c'])],
# Scripts to install