Commit graph

12 commits

Author SHA1 Message Date
Wen Heping
6e60c2651f - Update to 3.8.6 2020-10-01 13:09:48 +00:00
Wen Heping
6af98ac132 - Update to 3.8.5(include security fix)
MFH:		2020Q3
2020-07-24 12:01:46 +00:00
Wen Heping
3052b79df7 - Update to 3.8.4(include securiy fix)
https://docs.python.org/release/3.8.4/whatsnew/changelog.html#changelog

MFH:		2020Q3
2020-07-14 01:56:15 +00:00
Niclas Zeising
0e32330f15 Chanse update of devel/libffi
Chase the devel/libffi update
Bump portrevision of all dependent ports to chace shard library version bump
in libffi.
Update LIB_DEPENDS lines where needed to not require a specific version of
libffi.so.

PR:		247028 (for tracking)
2020-07-04 18:11:42 +00:00
Antoine Brodin
f09b284ef2 Fix build with various python ABI
With hat:	portmgr
2020-05-28 15:44:47 +00:00
Antoine Brodin
e7d17eb867 Recompile _sysconfigdata.py after reinplacing it
PR:		246618
With hat:	portmgr
2020-05-28 13:52:33 +00:00
Wen Heping
8c13dd5f2b - Update to 3.8.3
(include security fix)

MFH:		2020Q2
Security:	CVE-2019-18348, CVE-2020-8492
2020-05-16 11:53:25 +00:00
Sunpoet Po-Chuan Hsieh
7af8304bfb Update to 3.8.2
Changes:	https://docs.python.org/release/3.8.2/whatsnew/changelog.html
2020-03-01 18:26:15 +00:00
Wen Heping
1b95961382 - Update to 3.8.1 2019-12-20 22:02:20 +00:00
Kubilay Kocak
e4c2b30ce8 lang/python{27,35,36,37,38}: Add closefrom(2) support
A single close(fd) syscall is cheap, but when MAXFDS (maximum file
descriptor number) is high, the loop calling close(fd) on each file
descriptor can take several milliseconds.

The default value of subprocess.Popen "close_fds" parameter changed to True
in Python 3. Compared to Python 2, close_fds=True can make Popen 10x
slower: see bpo-37790 [1]

The present workaround on FreeBSD to improve performance is to load and
mount the fdescfs kernel module, but this is not enabled by default.

This change adds minimum viable (and upstreamable) closefrom(2) syscall
support to Python's subprocess and posix modules, improving performance
significantly for loads that involve working with many processes, such as
diffoscope, ansible, and many others.

For additional optimizations, upstream recently (3.8) landed posix_spawn(2)
support [3] and has stated that they will adopt close_range(2) after Linux
merges it [4]. Linux/FreeBSD developers are already collaborating on
ensuring compatible implementations, with FreeBSD's implementation pending
in D21627. [5]

Thank you emaste, cem, kevans for providing analysis, input,
clarifications, comms/upstream support and patches.

[1] https://bugs.python.org/issue37790
[2] https://bugs.python.org/issue38061
[3] https://bugs.python.org/issue35537
[4] https://lwn.net/Articles/789023/
[5] https://reviews.freebsd.org/D21627

Additional References:

https://bugs.python.org/issue8052
https://bugs.python.org/issue11284
https://bugs.python.org/issue13788
https://bugs.python.org/issue1663329
https://www.python.org/dev/peps/pep-0446/

PR:		242274, 221700
Submitted by:	kevans (emaste, cem)
Approved by:	koobs (python (maintainer), santa)
2019-11-29 10:55:00 +00:00
Wen Heping
f30ae2b1cd - Fix plist when build with DEBUG option 2019-11-06 01:12:25 +00:00
Wen Heping
2ff1253050 - Repocopy lang/python37 --> python38 and update to 3.8.0
PR:		241416
Submitted by:	wen@(myself)
Reviewed by:	koobs@, amdmi3@
2019-11-02 23:40:39 +00:00