572 Commits

Author SHA1 Message Date
kmos
837780b5e5 Update Python 3.8 to 3.8.10, the final maintenance release of 3.8.x
(Only security fixes going forward).

This does include security fixes

ok daniel@
2021-06-12 04:03:23 +00:00
kmos
fbc74d74fd Update python 3.9 to 3.9.5
Includes multiple security fixes

ok daniel@
2021-06-12 04:00:22 +00:00
kmos
2795ba2341 Bump the REVISION on all ports that use the python2 version of
py-setuptools.

Also change the lang/python module to use the new
devel/py2-setuptools for python2 ports

ok sthen@
2021-05-21 19:50:21 +00:00
sthen
1087f2c8be another missed bump, found by naddy 2021-03-23 11:44:00 +00:00
sthen
14eb197440 missed bump, reported by naddy 2021-03-22 21:39:10 +00:00
sthen
e82c1acb6c install the gdb autoload helper for the various Python versions,
allows some additional debugging features for Python-based software
(for example there's a new "py-bt" command to print a Python backtrace
which can give clues if a py process is hanging).

ok rpointel@
2021-03-22 17:35:26 +00:00
sthen
745105c362 automatically handle ports which use the python module and have flavours
other than the usual "python3/<blank>" python version selection and
remove setting MODPY_VERSION=${MODPY_DEFAULT_VERSION_3} again from the
affected ports.
2021-02-23 22:04:35 +00:00
sthen
ba6e5fa88d fix for unflavoured py3 ports 2021-02-23 20:55:02 +00:00
sthen
6d0b6da733 oops, I deleted a line by mistake before committing this. unbreak the tree. 2021-02-23 20:44:38 +00:00
sthen
3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00
daniel
1209d6bb09 update to python 3.8.8
ok sthen@
2021-02-21 19:24:26 +00:00
daniel
1b538e6b27 update to python 3.9.2
ok sthen@
2021-02-21 19:23:21 +00:00
sthen
248932be74 switch MODPY_BIN_SUFFIX to -2 for py2 and (blank) for py3
switch ports using command-line tools from py-sphinx that don't need a
py2 version of it to py3-sphinx
2021-02-19 23:13:00 +00:00
tb
de917ff4ce python/3.9: add upstream patch for CVE-2021-3177
While waiting for this to appear in a proper Python 3.9.x release,
use upstream's commit for this severe sprintf bug.

The bug was reported on Jan 16 and the fix was available since Jan 18,
but only 3.6 and 3.7 have new releases as of now.

ok sthen
2021-02-16 18:50:26 +00:00
tb
ea6b747771 python/3.8: add upstream patch for CVE-2021-3177
While waiting for this to appear in a proper Python 3.8.x release,
use upstream's commit for this severe sprintf bug.

The bug was reported on Jan 16 and the fix was available since Jan 18,
but only 3.6 and 3.7 have new releases as of now.

ok sthen
2021-02-16 18:49:49 +00:00
kn
0ae5e05428 Run MODPY_BIN_ADJ once for all MODPY_ADJ_FILES
MODPY_BIN_ADJ's perl snippt accepts multiple files so save a few execs.

To make it more robust, also append `--' to it such that ports cannot
(accidentially) pass options;  I've checked the tree that no port does
this on purpose.

The only case where this could fail is with huge MODPY_ADJ_FILES but
that is not the case in our tree;  ports where lots of shebangs are
fixed have their own construct around it, e.g. textproc/calibre which
uses the `find -exec ${MODPY_ADJ_FILES} {} +' idiom.

OK sthen
2021-02-04 17:13:52 +00:00
sthen
5141b95f35 Set DPB_PROPERTIES=nojunk for Python builds using setuptools.
setuptools picks up plugins during the configure stage whether a port
needs them or not. In some cases (currently just setuptools_scm), these
register hooks to run in the install stage; if the plugin is not a
listed build dependency this will cause the install stage to fail.
Recently reported by naddy with py-sphinx but we've seen spurious
failures elsewhere before which are likely due to this.

ok kmos@
2021-02-03 15:36:04 +00:00
daniel
339cfd0a62 mop up remaining python 3.7 files 2021-01-18 21:28:59 +00:00
sthen
1b35bf7685 update to python-3.8.7, from kmos@, ok kmos@ daniel@
this changes EXT_SUFFIX from .so to .cpython-38.so; the following commit
fixes up py3 ports to cope.
2021-01-04 14:04:42 +00:00
daniel
43446f11cd retire python 3.7
An earlier diff was okayed by rpointel@, kmos@. sthen@ requested to move
the @conflict and @pkgpath markers from 3.7 to 3.8 in the same commit (a
better approach). Final diff was ok sthen@.
2020-12-29 23:59:06 +00:00
sthen
7e4bc55154 reminder to update xenocara/share/mk/bsd.xorg.mk if switching main py3
branch
2020-12-29 14:31:01 +00:00
daniel
224be58a2c update to python 3.9.1
Identical diff from rpointel@ and kmos@ posted a similar diff on ports@

ok rpointel@
2020-12-28 22:28:14 +00:00
sthen
c5ba6ad6fb fix python upgrade path from 6.7+stable-packages to -current, thanks to
James Cook for the report.
2020-10-13 12:41:03 +00:00
kmos
3c8fb63ad4 Add the necessary bits in python.port.mk to recognize 3.9 as a valid
Python version and hook Python 3.9.0 up to the build
2020-10-05 20:51:18 +00:00
kmos
0724eb19d9 Import Python 3.9.0, the first stable release of Python 3.9
ok sthen@
2020-10-05 20:48:10 +00:00
rpointel
66e1401e79 update Python to 3.8.6.
tested in a bulk build by naddy@.
2020-09-28 11:36:03 +00:00
kmos
3c44ed40cd Security update to Python 3.7.9
Release notes:
https://docs.python.org/release/3.7.9/whatsnew/changelog.html#changelog

ok sthen
2020-08-24 15:00:29 +00:00
kmos
f416f210e5 Update to Python 3.8.5, includes security fixes.
Original diff from Wen Heping.

I shuffled some test files out of PLIST-main to PLIST-tests and did the
conflict magic to make it happy.

ok sthen@
2020-07-28 07:58:30 +00:00
sthen
082af4fb9a bump 2020-07-03 21:15:20 +00:00
sthen
f6d412fc07 switch python 3 default version from 3.7.x to 3.8.x, ok kmos@ rpointel@ 2020-07-03 21:10:55 +00:00
rpointel
494394a3ed update python to 3.7.8.
ok sthen@.
2020-07-01 10:21:22 +00:00
kmos
d750efe8c4 Update python 3.8.2 -> 3.8.3
Latest incremental update of python 3.8.x

ok rpointel
2020-06-18 07:31:38 +00:00
sthen
10d9780653 Drop the post-install "if you want to use this as your default system
Python" messages, Python 2 development has finished so this is not a
sensible option to use as default.

(It is still kept in the ports tree for now, as some important software
has not been updated to use Python 3).

ok tracey aja mariani rpointel

From https://www.python.org/doc/sunset-python-2/, "We are volunteers who
make and take care of the Python programming language. We have decided
that January 1, 2020, was the day that we sunset Python 2. That means
that we will not improve it anymore after that day, even if someone
finds a security problem in it. You should upgrade to Python 3 as soon
as you can."
2020-04-24 11:01:26 +00:00
rpointel
75bb50423a update python to 2.7.18: the last release of Python 2.
tested in a bulk build by naddy@, thanks.
2020-04-23 07:56:01 +00:00
rpointel
5e65a6488f upadte python to 3.8.2.
ok kmos@.
2020-04-07 06:51:25 +00:00
kmos
6b341adec8 Update Python 3.7 to 3.7.7
Run through a bulk on sparc64 without issue.

Clean up PLISTs while here. Move many test bits to the -test subpackage.

ok rpointel@ (maintainer)
2020-03-30 14:55:16 +00:00
sthen
8aff5b1d44 remove 2 bogus conflict markers 2020-02-11 20:43:11 +00:00
sthen
ef465900cd Fix python upgrade paths, problem reported by Mikolaj Kucharski and I had
already run into it myself. Add comments to hopefully make it simpler
and more understandable for future changes to the default version.
Zero feedback but tests well here, committing before I forget about
it because people will run into this with 6.7.
2020-02-11 11:45:31 +00:00
kmos
24809676f3 Update to Python 3.7.6
ok rpointel@ (maintainer)
2019-12-28 18:35:39 +00:00
kmos
2e079c768c Update to Python 3.8.1
ok rpointel@ (maintainer)
2019-12-28 18:34:39 +00:00
kmos
b3d030b3fc Adjust python.port.mk to not have the m suffix on the library for 3.8+
(Effectively we only keep it for 3.7).

ok kn
2019-12-19 02:42:46 +00:00
sthen
bc02baacfb add @pkgpath markers to handle updating old 3.6 packages to 3.7,
missed when removing 3.6
2019-12-11 19:55:40 +00:00
pamela
94e1db4e68 regenerate patches
OK sthen@
2019-12-06 21:04:12 +00:00
pamela
475708fabd regenerate patches
OK sthen@
2019-12-06 21:03:09 +00:00
sthen
a69dae938f merge 'if ${MODPY_VERSION} == "2.7"' block into the above 'if
${MODPY_MAJOR_VERSION} == 2' block, no need for it to be separate as we
only support one 2.x version now
2019-11-19 11:34:55 +00:00
ajacoutot
8e232da1bf Provide all python debug packages. 2019-11-11 17:47:41 +00:00
ajacoutot
8fab1b003a Update now that DEBUG_PACKAGES can cope with hard links. 2019-11-10 21:06:47 +00:00
ajacoutot
3ff04faf71 More automatish debug. 2019-11-10 18:34:06 +00:00
sthen
3a84181b10 no need for DEBUG_CONFIGURE_ARGS with bsd.port.mk 1.1484 2019-11-10 11:53:14 +00:00
pirofti
7b3179996d Add debug packages to python -main and -gdbm.
This show-cases the new debug infrastructure created by Marc and I.

OK robert@, espie@
2019-11-09 17:28:58 +00:00