aboutsummaryrefslogtreecommitdiff
path: root/lang/python36
Commit message (Collapse)AuthorAgeFilesLines
* Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-062-2/+0
|
* - Update to 3.6.13Wen Heping2021-02-233-5/+4
| | | | Notes: svn path=/head/; revision=566389
* lang/python3{6,7,8,9}: Backport close_range patchesKyle Evans2020-10-144-52/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | Worked out over BPO-40422 and BPO-40423, this is the culmination of months of work to coordinate with Linux and get close_range(2) added to FreeBSD, then the usage accepted into CPython. It has landed for Python 3.10 and here I've backported it locally to all the supported Python 3 versions we have. Note that this does include and supercede our previous closefrom(2) patches. There was a lot of intersection between the work done, so this patch against the ports tree does remove those patches from each of the ports in favor of this patch. All the patches involved have been accepted and merged upstream. This patch will bring a performance boost in some more situations on 12.2 and 13.0, as close_range exists there. There is one additional patch sitting in an upstream PR that shuffles the _Py_closerange implementation into a different file -- this is not important for the backport, and the absence of that patch here will not realistically cause any issues. PR: 250322 Approved by: lwhsu (python) Notes: svn path=/head/; revision=552351
* - Set PORTREVISIONWen Heping2020-08-211-0/+1
| | | | Notes: svn path=/head/; revision=545604
* - Remove PORTREVISION which forgot in last commitWen Heping2020-08-191-1/+0
| | | | | | | Spotted by: lwhsu@(Thanks!) Notes: svn path=/head/; revision=545338
* - Update to 3.6.12(include security fix)Wen Heping2020-08-193-4/+5
| | | | | | | MFH: 2020Q3 Notes: svn path=/head/; revision=545331
* Chanse update of devel/libffiNiclas Zeising2020-07-041-0/+1
| | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=541232
* lang/python36: Update to 3.6.11Danilo G. Baio2020-06-283-11/+5
| | | | | | | Approved by: python (with hat) Notes: svn path=/head/; revision=540709
* lang/python36: Update to 3.6.10, Fix security issuesDanilo G. Baio2020-06-133-6/+11
| | | | | | | | | | | | | | | | | The patches for CVE-2019-18348 and CVE-2020-8492 are in the 3.6 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 Mike Fisher <mfisher911@gmail.com> and Dani <i.dani@outlook.com>. PR: 246984 MFH: 2020Q2 Security: ca595a25-91d8-11ea-b470-080027846a02 (CVE-2019-18348) Security: a27b0bb6-84fc-11ea-b5b4-641c67a117d8 (CVE-2020-8492) Notes: svn path=/head/; revision=538669
* Clean up plistAntoine Brodin2020-03-011-9/+9
| | | | Notes: svn path=/head/; revision=527556
* Fix makefile ordering.Tobias C. Berner2019-12-071-5/+5
| | | | | | | Reported by: mat Notes: svn path=/head/; revision=519244
* Backport fix of https://bugs.python.org/issue32849Li-Wen Hsu2019-12-072-3/+6
| | | | | | | | | | | | This is needed for starting sysutils/azure-agent at boot: https://github.com/Azure/WALinuxAgent/issues/1687 Obtained from: https://github.com/python/cpython/pull/12852/commits/f9c01a16dae8aa15d264a1937fb589e8598d1c88 MFH: 2019Q4 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=519241
* Fix namespace pollution in python3.5 and python3.6 (upstreamed fix)Tobias C. Berner2019-12-072-2/+8
| | | | | | | | | | | | | | | | | | | The standard math library (libm) may follow IEEE-754 recommendation to include an implementation of sinPi(), i.e. sinPi(x):=sin(pi*x). And this triggers a name clash, found by FreeBSD developer Steve Kargl, who worked on putting sinpi into libm used on FreeBSD (it has to be named "sinpi", not "sinPi", cf. e.g. https://en.cppreference.com/w/c/experimental/fpext4). - python2.7 and > 3.6 are already fixed PR: 232792 Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>, Dima Pasechnik <dimpase+freebsd@gmail.com> Approved by: python (maintainer timeout) Obtained from: https://github.com/python/cpython/commit/b545ba0a508a5980ab147ed2641a42be3b31a2db Notes: svn path=/head/; revision=519233
* lang/python{27,35,36,37,38}: Add closefrom(2) supportKubilay Kocak2019-11-293-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=518640
* Drop the ipv6 virtual category for l* category as it is not relevant anymoreBaptiste Daroussin2019-10-091-1/+1
| | | | Notes: svn path=/head/; revision=514140
* onvert to UCL & cleanup pkg-message (categories l-m)Mathieu Arnold2019-08-131-4/+6
| | | | Notes: svn path=/head/; revision=508882
* - Update to python-3.6.9(include security fix)Wen Heping2019-07-085-26/+5
| | | | | | | | | | | PR: 238952 Submitted by: wenheping2000@hotmail.com(myself) Reviewed by: koobs@ Exp-run by: antoine@ MFH: 2019Q3 Notes: svn path=/head/; revision=506253
* Recompile _sysconfigdata.py after reinplacing itAntoine Brodin2019-04-141-0/+6
| | | | | | | | Reported by: tcberner With hat: portmgr Notes: svn path=/head/; revision=498910
* Update devel/readline to 8.0Sunpoet Po-Chuan Hsieh2019-04-091-1/+1
| | | | | | | | | | | - Bump PORTREVISION of dependent ports for shlib change Changes: https://tiswww.case.edu/php/chet/readline/CHANGES PR: 236156 Exp-run by: antoine Notes: svn path=/head/; revision=498476
* Add note to update python documentation (lang/python-doc-*)Sunpoet Po-Chuan Hsieh2019-03-291-0/+2
| | | | Notes: svn path=/head/; revision=497138
* Fix CVE-2019-5010Sunpoet Po-Chuan Hsieh2019-03-272-0/+22
| | | | | | | | | | | | - Bump PORTREVISION for package change Obtained from: https://github.com/python/cpython/commit/216a4d83c3b72f4fdcd81b588dc3f42cc461739a Reference: https://bugs.python.org/issue35746 Security: d74371d2-4fee-11e9-a5cd-1df8a848de3d MFH: 2019Q1 Notes: svn path=/head/; revision=496975
* - Update lang/python36 to 3.6.8Wen Heping2019-01-014-29/+15
| | | | | | | | | PR: 234397 Submitted by: wenheping2000@hotmail.com Exp-run by: antoine@ Notes: svn path=/head/; revision=488861
* Remove compatibility code for FreeBSD < 11.2 from all ports.Rene Ladan2018-11-021-9/+0
| | | | | | | | | | 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 Notes: svn path=/head/; revision=483807
* - Update to 3.6.7Wen Heping2018-10-274-23/+101
| | | | | | | | | PR: 232504 Submitted by: wen@(myself) Exp-run by: antoine@ Notes: svn path=/head/; revision=483109
* lang/python27,35+: Remove MAKE_JOBS_UNSAFEKubilay Kocak2018-10-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=482271
* lang/python3?: Fix python3.?-config behavior when symlinkedTobias Kortkamp2018-07-262-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=475350
* lang/python36: update 3.6.5 -> 3.6.6Kurt Jaeger2018-07-064-119/+19
| | | | | | | | | PR: 229386 Exp-run by: antoine Relnotes: https://docs.python.org/3.6/whatsnew/changelog.html#python-3-6-6-final Notes: svn path=/head/; revision=473999
* lang/python36: Fix build with LibreSSL 2.7Bernard Spil2018-04-281-0/+112
| | | | | | | | | | PR: 226883 Submitted by: Charlie Li <ml+freebsd vishwin info> Approved by: python (koobs) Differential Revision: https://reviews.freebsd.org/D14837 Notes: svn path=/head/; revision=468569
* Update to 3.6.5Sunpoet Po-Chuan Hsieh2018-04-033-12/+16
| | | | | | | | | Changes: https://docs.python.org/3.6/whatsnew/changelog.html PR: 227090 Exp-run by: antoine Notes: svn path=/head/; revision=466295
* Revert r466162, exp-run is still in progressAntoine Brodin2018-04-013-10/+6
| | | | | | | With hat: portmgr Notes: svn path=/head/; revision=466163
* - Update to 3.6.5Wen Heping2018-04-013-6/+10
| | | | Notes: svn path=/head/; revision=466162
* Remove BROKEN_SSL=openssl-develSunpoet Po-Chuan Hsieh2018-02-151-2/+0
| | | | | | | | | PR: 225871 Submitted by: brnrd MFH: 2018Q1 Notes: svn path=/head/; revision=461918
* Silence patch messagesSunpoet Po-Chuan Hsieh2018-02-121-1/+1
| | | | Notes: svn path=/head/; revision=461623
* Remove over-patched shebang fix of Lib/cgi.pySunpoet Po-Chuan Hsieh2018-02-111-2/+0
| | | | | | | | | | The change from /usr/local/bin/python to /usr/local/bin/python3.6 is already done by USES=shebangfix. % head -1 /usr/local/lib/python3.6/cgi.py #!/usr/local/bin/python3.63.6 Notes: svn path=/head/; revision=461515
* Clean up MakefileSunpoet Po-Chuan Hsieh2018-02-112-20/+19
| | | | | | | | | | | - Move BROKEN_SSL upward - Sort USES - Remove CPE_*: all of them are default values - Update PLIST_FILES: do not use %% - Update http:// links in Makefile comments and patch files Notes: svn path=/head/; revision=461500
* - Fix more shebangsDmitry Marakasov2017-12-211-1/+1
| | | | | | | Approved by: portmgr blanket Notes: svn path=/head/; revision=456915
* Update to 3.6.4Sunpoet Po-Chuan Hsieh2017-12-203-8/+21
| | | | | | | Changes: https://docs.python.org/3.6/whatsnew/changelog.html Notes: svn path=/head/; revision=456815
* Convert Python ports to FLAVORS.Mathieu Arnold2017-11-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ports using USE_PYTHON=distutils are now flavored. They will automatically get flavors (py27, py34, py35, py36) depending on what versions they support. There is also a USE_PYTHON=flavors for ports that do not use distutils but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if using distutils but flavors are not wanted. A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been added to cope with Python ports that did not have the Python PKGNAMEPREFIX but are flavored. USES=python now also exports a PY_FLAVOR variable that contains the current python flavor. It can be used in dependency lines when the port itself is not python flavored. For example, deskutils/calibre. By default, all the flavors are generated. To only generate flavors for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf. In all the ports with Python dependencies, the *_DEPENDS entries MUST end with the flavor so that the framework knows which to build/use. This is done by appending '@${PY_FLAVOR}' after the origin (or @${FLAVOR} if in a Python module with Python flavors, as the content will be the same). For example: RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} PR: 223071 Reviewed by: portmgr, python Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D12464 Notes: svn path=/head/; revision=455210
* Update to 3.6.3Sunpoet Po-Chuan Hsieh2017-10-044-6/+36
| | | | | | | Changes: https://docs.python.org/3.6/whatsnew/changelog.html Notes: svn path=/head/; revision=451202
* Add a code block for the qemu-user enabled cross build environment. When usingSean Bruno2017-08-031-0/+12
| | | | | | | | | | | | | this environment in poudriere, CC is not set to the default of /usr/bin/cc and a cross-compile toolchain is used. We need to hand edit this so that the run time configuration for python matches what the FreeBSD base system provides. PR: 208282 Submitted by: manu Approved by: portmgr (mat) Notes: svn path=/head/; revision=447189
* Update to 3.6.2Sunpoet Po-Chuan Hsieh2017-07-174-7/+4
| | | | | | | Changes: https://docs.python.org/3.6/whatsnew/changelog.html Notes: svn path=/head/; revision=446092
* lang/python{27,33,34,35,36}: Make Python curses module work with UnicodeDanilo G. Baio2017-06-281-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use readline from ports (USES= readline:port) and patch setup.py to ignore readline from base. The patch is necessary for FreeBSD < 1100000, as after this the readline library became an INTERNALLIB, see base r268461 [1] Link devel/readline against termcapw instead of termcap is part of this change, see ports r444463 [2] Note that this is the **ports** approach for getting Python curses module working with Unicode. The other way is splitting libncurses into separate libncurses and libtinfo in base, for which an open issue exists [3]. Apart from Python language ports, at least www/rtv and sysutils/py-ranger ports have been tested to work correctly (display Unicode) after this change. [1] https://svnweb.freebsd.org/changeset/base/268461 [2] https://svnweb.freebsd.org/changeset/ports/444463 [3] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197317 PR: 171246, 197317 Reported by: Vitaly Magerya <vmagerya gmail com> Reviewed by: garga, koobs, miwi, sunpoet Approved by: garga (mentor), sunpoet (python, with hat) Differential Revision: https://reviews.freebsd.org/D11127 Notes: svn path=/head/; revision=444534
* Update devel/readline to 7.0 patch 3Sunpoet Po-Chuan Hsieh2017-06-271-1/+1
| | | | | | | | | | | | | | - Bump PORTREVISION for shlib change Changes: https://cnswww.cns.cwru.edu/php/chet/readline/CHANGES https://lists.gnu.org/archive/html/bug-bash/2016-09/msg00107.html https://lists.gnu.org/archive/html/bug-readline/2017-01/msg00002.html Differential Revision: https://reviews.freebsd.org/D11172 PR: 219947 Exp-run by: antoine Notes: svn path=/head/; revision=444463
* Mark BROKEN with openssl-devel.Mathieu Arnold2017-06-081-0/+2
| | | | | | | | | pkg-static: Unable to access file /wrkdirs/usr/ports/lang/python36/work/stage/usr/local/lib/python3.6/lib-dynload/_ssl.so:No such file or directory Sponsored by: Absolight Notes: svn path=/head/; revision=442911
* lang/python{27,33,34,35,36}: Install GDB debugging scriptKubilay Kocak2017-06-062-1/+4
| | | | | | | | | | | | | | | | | | | | | | | Users with a GDB that supports [1] Python extensions will automatically load the extra debugging extensions when debugging programs that are linked with libpythonX.Y.so.foo. This enables extensions like 'py-bt' and 'py-frame' as described in the Fedora Wiki Article: Easier Python Debugging [2], which can be useful for debugging Python program state from crashes in C extensions, for example. [1] PYTHON option enabled in devel/gdb [2] https://fedoraproject.org/wiki/Features/EasierPythonDebugging PR: 203021 Submitted by: cem Reviewed by: mat, koobs (python) Approved by: koobs (python) Differential Revision: D10398 Notes: svn path=/head/; revision=442759
* Remove BROKEN_SSLSunpoet Po-Chuan Hsieh2017-05-271-2/+0
| | | | | | | | PR: 217703 Submitted by: Melvyn Sopacua <m.r.sopacua@gmail.com> Notes: svn path=/head/; revision=441865
* Use BROKEN_SSL and fix indentSunpoet Po-Chuan Hsieh2017-04-161-8/+4
| | | | Notes: svn path=/head/; revision=438648
* - Fix shebangMartin Wilke2017-04-141-1/+8
| | | | | | | Thanks to: amdmi3 Notes: svn path=/head/; revision=438530
* - Update to 3.6.1Wen Heping2017-03-233-6/+13
| | | | Notes: svn path=/head/; revision=436773
* Clean up MakefileSunpoet Po-Chuan Hsieh2017-03-142-3/+2
| | | | | | | | | - Use PORTVERSION - Remove CPE_VERSION - Update WWW Notes: svn path=/head/; revision=436184