Commit Graph

21 Commits

Author SHA1 Message Date
Wen Heping
4adf293574 - Update to 3.7.9(security update)
PR:		248753
Submitted by:	wen@(myself)
Exp-run by:	antoine@
MFH:		2020Q3
Security:	CVE-2020-15801, CVE-2020-15523, CVE-2020-14422
2020-08-26 14:20:19 +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
Wen Heping
141e696e5e - Update to 3.7.8(include security fix)
PR:		247630
Submitted by:	wen@
Exp-run by:	antoine@
MFH:		2020Q3
2020-07-02 23:34:42 +00:00
Danilo G. Baio
930546207d lang/python37: Fix security issues
The patches for CVE-2019-18348 and CVE-2020-8492 are in the 3.7 branch
and will be present on the next release.

Patch for applying CVE-2020-8492 fix here in the ports tree was reported
and submitted by Dani <i.dani@outlook.com>.

PR:		246808
MFH:		2020Q2
X-MFH-with:	536770, 536776
Security:	ca595a25-91d8-11ea-b470-080027846a02 (CVE-2019-18348)
Security:	a27b0bb6-84fc-11ea-b5b4-641c67a117d8 (CVE-2020-8492)
2020-06-13 13:26: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
35315d3538 - Update to 3.7.7
- Remove the LIBFFI option

PR:		244782
Submitted by:	wen@(myself)
Exp-run by:	antoine@
2020-03-19 07:18:35 +00:00
Wen Heping
db84bc127e - Update to 3.7.6
PR:		242770
Submitted by:	wen@(myself)
Exp-run by:	antoine@
2019-12-23 14:20:37 +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
Baptiste Daroussin
7eab0ea11d Drop the ipv6 virtual category for l* category as it is not relevant anymore 2019-10-09 11:53:57 +00:00
Wen Heping
14c2b24901 - Update to 3.7.4
(include security fix: https://docs.python.org/3.7/whatsnew/changelog.html#python-3-7-4-final)

MFH:		2019Q3
2019-07-10 01:25:27 +00:00
Sunpoet Po-Chuan Hsieh
40c9c7f7eb Update devel/readline to 8.0
- Bump PORTREVISION of dependent ports for shlib change

Changes:	https://tiswww.case.edu/php/chet/readline/CHANGES
PR:		236156
Exp-run by:	antoine
2019-04-09 14:04:49 +00:00
Dmitry Marakasov
3e5bb2b968 - Fix build in presence of e2fsprogs-libuuid
PR:		229562
Reported by:	many
2018-12-31 16:03:41 +00:00
Rene Ladan
8a502cb2d4 Remove compatibility code for FreeBSD < 11.2 from all ports.
Simplify some ports where DragonFlyBSD no longer needs to be special-cased.
Submitted by:	rene
Reviewed by:	bapt, jbeich
Differential Revision:	https://reviews.freebsd.org/D17724
2018-11-02 13:32:34 +00:00
Wen Heping
7412e64773 - Update to 3.7.1 2018-10-21 11:13:17 +00:00
Kubilay Kocak
929a1b95c8 lang/python27,35+: Remove MAKE_JOBS_UNSAFE
ports r393217 via bug 200622 [1] originally set MAKE_JOBS_UNSAFE=yes due to
incorrect uses of recursive make [2], causing intermittent build failures when
run with multiple jobs (-jN).

Upstream committed a fix for the issue in default (3.6, at the time), 3.5 and
2.7 which are now contained in all released lang/python?? port versions. 3.4 did
not receieve a backport merge.

lang/python3.5+ ports inadvertently inherited MAKE_JOBS_UNSAFE=yes, via
repocopies from lang/python34 on their creation, when they were infact safe to
use with -j.

Remove MAKE_JOBS_UNSAFE in all lang/python?? ports except python34 accordingly.

[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200622
[2] https://bugs.python.org/issue22359

PR:		232308
Reported by:	cem
Reviewed by:	cem
Approved by:	koobs (python)
MFH:		2018Q4
Differential Revision:	D17579
2018-10-17 06:23:59 +00:00
Sunpoet Po-Chuan Hsieh
49c5e9180d Remove THREADS option
- Bump PORTREVISION for package change

Support for building --without-threads has been removed.
The threading module is now always available.

PR:		230605
Submitted by:	Roland Smith <rsmith@xs4all.nl>
Reference:	https://docs.python.org/3/whatsnew/3.7.html
2018-08-26 18:42:37 +00:00
Tobias Kortkamp
dcbb4afe98 lang/python3?: Fix python3.?-config behavior when symlinked
When python3.?-config is symlinked to another location it starts
outputting bogus paths.  For example

$ pwd
/home/tobias
$ python3.6-config --includes
-I/usr/local/include/python3.6m -I/usr/local/include/python3.6m
$ ln -s /usr/local/bin/python3.6-config python3-config
$ ./python3-config --includes
-I/home/include/python3.6m -I/home/include/python3.6m

This breaks ports trying to use BINARY_ALIAS together with
python3.?-config.  Apply a patch to resolve the symlink first before
trying to find the install prefix.

PR:		229749
Submitted by:	tobik
Reviewed by:	antoine, miwi
Approved by:	python (miwi)
2018-07-26 08:58:50 +00:00
Martin Wilke
6f5585c638 - Bump PORTREVISON after r474267
Reported by:	mat
Sponsored by:	iXsystems Inc.
2018-07-09 16:44:34 +00:00
Martin Wilke
3b7801e944 - Added a warning for FBSD10
PR:		229640
Sponsored by:	iXsystems Inc.
2018-07-09 15:11:41 +00:00
Wen Heping
eb1d8981b1 - Repocopy lang/python36 --> lang/python37 and update to 3.7.0 2018-07-06 04:16:55 +00:00