Commit graph

38 commits

Author SHA1 Message Date
tnn
410a98f42b Fix a MAKE_JOBS safety problem. In the recipe for Python/importlib.h it
launches a submake for _freeze_importlib before all the object files have
been compiled. List $(LIBRARY_OBJS_OMIT_FROZEN) as dependencies to make it
wait until it is safe to launch the submake.

Should fix occasional errors of the sort:
Python/Python-ast.o: file not recognized: File truncated
*** [Modules/_freeze_importlib] Error code 1
2015-03-16 13:53:05 +00:00
sevan
c3f77a8905 Like the other versions of Python available in our tree, do not trim the library
name on FreeBSD
Resolves packing issue which causes the package to fail
2015-01-22 11:09:18 +00:00
bsiegert
5c2800a4d2 Make python33 and 34 build under Mac OS X by copying over compat hack from
python27. From J. Lewis Muir.

Note that the correct way to solve this is to do this in the Darwin
specific config files, but until that has landed, this at least fixes the
build.
2015-01-11 14:07:48 +00:00
he
81d6748691 Tobias Nygren reports this needs MAKE_JOBS_SAFE=no -- make it so. 2015-01-06 09:51:51 +00:00
he
59571a91c9 Update to 3.3.6.
Python 3.3.6 was released on October 11, 2014.

Python 3.3.6 includes fixes for a few of our previously added patches,
as well as other important security-related fixes.  Local changes:
rename the configure patch, remove now-included patches.

Upstream list of changes for this version:

Core and Builtins
-----------------
- Issue #22518: Fixed integer overflow issues in "backslashreplace",
  "xmlcharrefreplace", and "surrogatepass" error handlers.
- Issue #22520: Fix overflow checking when generating the repr of a unicode
  object.
- Issue #22519: Fix overflow checking in PyBytes_Repr.
- Issue #22518: Fix integer overflow issues in latin-1 encoding.

Library
-------
- Issue #22517: When a io.BufferedRWPair object is deallocated, clear its
  weakrefs.
- Issue #22419: Limit the length of incoming HTTP request in wsgiref server to
  65536 bytes and send a 414 error code for higher lengths. Patch contributed
  by Devin Cook.
- Lax cookie parsing in http.cookies could be a security issue when combined
  with non-standard cookie handling in some Web browsers.  Reported by
  Sergey Bobrov.
- Issue #21766: Prevent a security hole in CGIHTTPServer by URL unquoting paths
  before checking for a CGI script at that path.
- Fix arbitrary memory access in JSONDecoder.raw_decode with a negative second
  parameter. Bug reported by Guido Vranken.
- Issue #20633: Replace relative import by absolute import.
- Issue #21082: In os.makedirs, do not set the process-wide umask. Note this
  changes behavior of makedirs when exist_ok=True.
- Issue #20875: Prevent possible gzip "'read' is not defined" NameError.
  Patch by Claudiu Popa.
- Issue #11599: When an external command (e.g. compiler) fails, distutils now
  prints out the whole command line (instead of just the command name) if the
  environment variable DISTUTILS_DEBUG is set.
- Issue #4931: distutils should not produce unhelpful "error: None" messages
  anymore.  distutils.util.grok_environment_error is kept but doc-deprecated.
- Issue #20283: RE pattern methods now accept the string keyword parameters
  as documented.  The pattern and source keyword parameters are left as
  deprecated aliases.
- Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,
  broken by the fix for security issue #19435.  Patch by Zach Byrne.

Tests
-----
- Issue #17752: Fix distutils tests when run from the installed location.
- Issue #20946: Correct alignment assumptions of some ctypes tests.
- Issue #20939: Fix test_geturl failure in test_urllibnet due to
  new redirect of http://www.python.org/ to https://www.python.org.
2015-01-01 21:39:45 +00:00
he
9b6ec653e3 Add a fix, test-case and note for directory traversal vulnerability, ref.
http://bugs.python.org/issue21766
Bump PKGREVISION.
2014-07-02 12:53:52 +00:00
richard
52d68a4ab5 avoid conflicting declaration of gethostname on SunOS 2014-06-11 05:55:58 +00:00
ryoon
784237fdaf Fix _multiprocessing import under DragonFly/amd64, fix packaging 2014-05-31 12:46:28 +00:00
wiz
8416e6796a Add fix for CVE-2014-2667.
Bump PKGREVISION.
2014-05-15 12:33:10 +00:00
obache
122d4988ab fixes again, for the case pkgsrc openssl is prefered than builtin old openssl. 2014-05-10 04:32:36 +00:00
adam
3055c85aa1 Fix building on OS X 2014-05-09 16:33:29 +00:00
jperkin
a4d3068979 Remove cargo-cult message file. 2014-05-09 09:33:03 +00:00
obache
0e66e6c8fa Restrict to find openssl header files in SSLBASE/include.
Fixes unwanted detection of builtin openssl over prefered pkgsrc one.
2014-05-09 02:29:09 +00:00
obache
1dc90257d0 Disable spwd module, same as other python version.
It is provided as devel/py-spwd in pkgsrc.

Bump PKGREVISION.
2014-03-27 08:50:00 +00:00
wiz
f11ea79b42 Copy relevant 5 PLIST-mangling lines from extension.mk,
so the bulk builds are hopefully happy again.
2014-03-20 12:40:21 +00:00
ryoon
28382ad539 Trigger PY_PEP3147=yes in PYTHON_VERSION_DEFAULT={26,27} case.
Fix build when PYTHON_VERSION_DEFAULT={26,27}.
2014-03-14 14:04:07 +00:00
wiz
a561078476 Include lang/python/extension.mk to get saner PLISTs. 2014-03-12 10:42:42 +00:00
wiz
04c78223fe Update to 3.3.5:
Python 3.3.5 was released on March 9th, 2014.

Python 3.3.5 includes fixes for these important issues:

    a 3.3.4 regression in zipimport (see http://bugs.python.org/issue20621)
    a 3.3.4 regression executing scripts with a coding declared
    and Windows newlines (see http://bugs.python.org/issue20731)
    potential DOS using compression codecs in bytes.decode() (see
    http://bugs.python.org/issue19619 and
    http://bugs.python.org/issue20404)

and also fixes quite a few other bugs.

This release fully supports OS X 10.9 Mavericks. In particular,
this release fixes an issue that could cause previous versions of
Python to crash when typing in interactive mode on OS X 10.9.
2014-03-12 10:39:43 +00:00
jperkin
6ba407bb9d Force the use of clang on Snow Leopard, the llvm-backed gcc is unable to
compile Python 3.3 correctly, and as per http://bugs.python.org/issue13241
the Python developers are uninterested in fixing this.
2014-03-10 23:14:35 +00:00
tron
73d05e2276 Recursive PKGREVISION bump for OpenSSL API version bump. 2014-02-12 23:17:32 +00:00
adam
5193fabec4 Changed 3.3.4:
PEP 380, syntax for delegating to a subgenerator (yield from)
PEP 393, flexible string representation (doing away with the distinction between "wide" and "narrow" Unicode builds)
A C implementation of the "decimal" module, with up to 120x speedup for decimal-heavy applications
The import system (__import__) is based on importlib by default
The new "lzma" module with LZMA/XZ support
PEP 397, a Python launcher for Windows
PEP 405, virtual environment support in core
PEP 420, namespace package support
PEP 3151, reworking the OS and IO exception hierarchy
PEP 3155, qualified name for classes and functions
PEP 409, suppressing exception context
PEP 414, explicit Unicode literals to help with porting
PEP 418, extended platform-independent clocks in the "time" module
PEP 412, a new key-sharing dictionary implementation that significantly saves memory for object-oriented code
PEP 362, the function-signature object
The new "faulthandler" module that helps diagnosing crashes
The new "unittest.mock" module
The new "ipaddress" module
The "sys.implementation" attribute
A policy framework for the email package, with a provisional (see PEP 411) policy that adds much improved unicode support for email header parsing
A "collections.ChainMap" class for linking mappings to a single unit
Wrappers for many more POSIX functions in the "os" and "signal" modules, as well as other useful functions such as "sendfile()"
Hash randomization, introduced in earlier bugfix releases, is now switched on by default
2014-02-11 17:56:16 +00:00
obache
b1809c4ad0 Fixes SA56624, taken from upstream.
Bump PKGREVISION.
2014-02-11 05:52:56 +00:00
asau
f857409abc Fix packaging on FreeBSD: OSS audio. 2013-12-06 10:46:23 +00:00
adam
fc49830edf Changes 3.3.3:
PEP 380, syntax for delegating to a subgenerator (yield from)
PEP 393, flexible string representation (doing away with the distinction between "wide" and "narrow" Unicode builds)
A C implementation of the "decimal" module, with up to 120x speedup for decimal-heavy applications
The import system (__import__) is based on importlib by default
The new "lzma" module with LZMA/XZ support
PEP 397, a Python launcher for Windows
PEP 405, virtual environment support in core
PEP 420, namespace package support
PEP 3151, reworking the OS and IO exception hierarchy
PEP 3155, qualified name for classes and functions
PEP 409, suppressing exception context
PEP 414, explicit Unicode literals to help with porting
PEP 418, extended platform-independent clocks in the "time" module
PEP 412, a new key-sharing dictionary implementation that significantly saves memory for object-oriented code
PEP 362, the function-signature object
The new "faulthandler" module that helps diagnosing crashes
The new "unittest.mock" module
The new "ipaddress" module
The "sys.implementation" attribute
A policy framework for the email package, with a provisional (see PEP 411) policy that adds much improved unicode support for email header parsing
A "collections.ChainMap" class for linking mappings to a single unit
Wrappers for many more POSIX functions in the "os" and "signal" modules, as well as other useful functions such as "sendfile()"
Hash randomization, introduced in earlier bugfix releases, is now switched on by default
2013-11-21 14:06:43 +00:00
obache
ebfe641944 Fixes missing rpath in pkg-config file.
Bump PKGREVISION.
2013-11-10 12:12:32 +00:00
joerg
faafd761a1 Always pass rpath argument with -Wl prefix, especially if clang is not called
gcc. Bump revision.
2013-09-10 14:22:29 +00:00
drochner
fe8b82ac74 Copy the patch which disables use of Posix semaphores on NetBSD
from Python2 to Python3. Without that, selftests fail in multiple
places.
bump PKGREV
2013-08-09 10:54:17 +00:00
adam
a031b4d1bc Fixes:
* building some modules (lzma) on Darwin (use PREFIX, instead of /usr/local, to look for libraries)
* building decimal module on certain enviroments (use relative path to look for includes, as absolute path might get rejected by a wrapper)
2013-08-02 07:03:49 +00:00
ryoon
f8e628f818 * .include "../../devel/readline/buildlink3.mk" with USE_GNU_READLINE=yes
are replaced with .include "../../devel/readline/buildlink3.mk", and
  USE_GNU_READLINE are removed,

* .include "../../devel/readline/buildlink3.mk" without USE_GNU_READLINE
  are replaced with .include "../../mk/readline.buildlink3.mk".
2013-07-15 02:02:17 +00:00
wiz
12bc346856 Update to 3.3.2:
3.3.2

This release fixes a few regressions found in Python 3.3.1.
Complete list at
http://docs.python.org/release/3.3.2/whatsnew/changelog.html

3.3.1

This is a 3.3 series bugfix release. It includes hundreds of bugfixes
over 3.3.0.

Complete list at
http://docs.python.org/release/3.3.1/whatsnew/changelog.html
2013-05-26 17:56:09 +00:00
adam
fe2ec07d4c dylib entry not needed in PLIST.Darwin 2013-05-19 20:37:14 +00:00
jperkin
becd113253 PKGREVISION bumps for the security/openssl 1.0.1d update. 2013-02-06 23:20:50 +00:00
sbd
bdd4d801ac The PY_PLATNAME on Linux is now 'linux'. 2012-12-25 23:48:47 +00:00
sbd
ed7f7d59b3 configure needs the path to mkdir as its used in installed files. 2012-12-25 23:47:39 +00:00
jperkin
dc56f2eb81 Pull in archivers/xz, required to build the _lzma module on systems which
do not include xz in the base system.

Fixes the package on most OS.
2012-12-13 20:22:44 +00:00
jperkin
c35348b47d Fix syntax error. 2012-12-13 18:13:59 +00:00
wiz
ce72dbf4f1 sha256 and sha512 modules are now built for newer openssl as well;
remove unnecessary conditional that broke build on NetBSD-6.99.15/amd64.

While here, replace another interpreter and skip one more file since
it gets replaced much later.
Bump PKGREVISION.
2012-12-11 00:16:56 +00:00
tsarna
df40d624f2 Add Python 3.3.0 2012-12-10 03:15:48 +00:00