Commit Graph

704 Commits

Author SHA1 Message Date
daniel 226de0f179 update to Python 3.11.8
ok kmos@ (MAINTAINER)
2024-02-12 00:53:52 +00:00
sthen bf893086f3 handle MODPY_PYBUILD=jupyter_packaging 2023-12-22 12:51:20 +00:00
sthen ee25a7fcf0 Don't accept "Yes" as a value of MODPY_PYBUILD; use "bootstrap" instead
for those special-case ports which bootstrap from their own internal
PEP517 build backend.
2023-12-20 13:29:33 +00:00
sthen 85dbbc61c4 allow settings args to MODPY_BUILD_TARGET for MODPY_PYBUILD
useful for e.g. adding --config-setting
2023-12-15 14:19:17 +00:00
sthen 68d5077ab5 handle MODPY_PYBUILD=flit_scm 2023-11-23 12:34:21 +00:00
jca 84d1bbdfc1 Drop --enable-optimizations to fix build with clang-16
Not waiting for maintainer because the port just doesn't build currently
and we need to get ports back into shape.

ok djm@ sthen@
2023-11-14 12:33:56 +00:00
kmos 428f67ce4a https://docs.python.org/release/3.11.6/whatsnew/changelog.html#python-3-11-6
Update to Python 3.11.6

Input from and ok daniel@
2023-10-20 09:18:48 +00:00
espie 51acb67336 MASTER_SITES->SITES (apart from modules) 2023-09-26 12:02:00 +00:00
sthen 9b03a9df17 SITES for MODPY_PI 2023-09-20 13:41:38 +00:00
tb fde26ea7d5 Update to Python 3.9.18
Avoid treating unencrypted data as post-handshake encrypted data in
ssl.SSLSocket: https://www.python.org/downloads/release/python-3918/
2023-09-01 18:50:44 +00:00
tb d2ae4e1a91 Update to Python 3.11.5
Avoid treating unencrypted data as post-handshake encrypted data in
ssl.SSLSocket: https://www.python.org/downloads/release/python-3115/

PLIST changes from sthen
2023-09-01 18:49:43 +00:00
tb 164c7be75d Update to Python 3.10.13
Avoid treating unencrypted data as post-handshake encrypted data in
ssl.SSLSocket: https://www.python.org/downloads/release/python-31013/
2023-09-01 18:48:06 +00:00
sthen 4c0261901a move USE_NOBTCFI next to USE_WXNEEDED and update the comment. 2023-08-30 08:50:28 +00:00
kmos a9ab405cdc Remove extraneous lines in PLIST-main that keep Python 3.9 from
packaging.

Pointed out by tb@
2023-06-22 19:49:47 +00:00
kmos 2233e59b31 Update to Python 3.11.4
https://docs.python.org/release/3.11.4/whatsnew/changelog.html#python-3-11-4

ok sthen
2023-06-19 19:48:11 +00:00
kmos 5c5c5151fc Update to 3.9.17
https://docs.python.org/release/3.9.17/whatsnew/changelog.html#changelog

ok sthen
2023-06-19 19:47:25 +00:00
kmos 5b132f4026 Update to Python 3.10.12
https://docs.python.org/release/3.10.12/whatsnew/changelog.html#python-3-10-12-final

Add USE_NOBTCFI=Yes to Makefile.inc

ok sthen
2023-06-19 19:46:28 +00:00
sthen 0ee5747b4e add a comment re NID_sha3_256/NID_sha512_256 patches to Python 3.10+;
partly to make it clear to external people looking at the patches that
these are now supported, and partly to discourage garbage-collecting
those bits of the patch until at least 7.4 is out (not required on
-current but still needed for -stable updates). ok tb@
2023-05-15 10:45:58 +00:00
tb b4ec8690c9 Python 3.11: improve hashopenssl patches
This way Python will pick up the new hashes (truncated sha2, sha3)
once they will be enabled in the next libcrypto bump. Also make the
CHANGES.OpenBSD entry a bit more generic so it doesn't need constant
tweaking.

This and the Python 3.10 changes were ok sthen, maintainer timeout
2023-04-24 11:18:57 +00:00
tb 26a04435bf Python 3.10: improve hashopenssl patches
This way Python will pick up the new hashes (truncated sha2, sha3)
once they will be enabled in the next libcrypto bump. Also make the
CHANGES.OpenBSD entry a bit more generic so it doesn't need constant
tweaking.
2023-04-24 11:15:43 +00:00
kmos 6a5e1cfbe3 https://docs.python.org/release/3.11.3/whatsnew/changelog.html#python-3-11-3
Update to 3.11.3

tweak and ok sthen
2023-04-12 19:45:41 +00:00
kmos 68ecb4cf4c https://docs.python.org/release/3.10.11/whatsnew/changelog.html#python-3-10-11-final
Update to Python 3.10.11

tweak and ok sthen
2023-04-12 19:45:09 +00:00
sthen 786cc6bbe4 7.2-stable received an update to python 3.9.16 so the @conflict in
-current's python 3.10 needs to be adjusted (/usr/local/bin/python3
symlink and friends moved from 3.9 to 3.10 because the default version
was changed).

update problem found by and diff ok with landry@
2023-03-18 08:05:05 +00:00
kmos b967e0f682 https://docs.python.org/release/3.11.2/whatsnew/changelog.html#python-3-11-2-final
A bunch of fixes here, none labelled as security

ok tb
2023-02-27 15:09:46 +00:00
kmos 3bbaeab6d9 https://docs.python.org/release/3.10.10/whatsnew/changelog.html#python-3-10-10-final
A number of fixes. None labelled as security.

ok tb
2023-02-27 15:09:01 +00:00
sthen ed2bb52cd9 fix #! line in pip3.9/pip3.11 scripts, ok kmos@ 2022-12-25 13:42:05 +00:00
tb 712e4ab1ca python: remove workaround for python 3.11 to unbreak build 2022-12-21 09:59:35 +00:00
kmos 381b7f64bb https://docs.python.org/release/3.11.1/whatsnew/changelog.html#python-3-11-1
Update Python 3.11 to 3.11.1

"just go ahead" sthen@
2022-12-20 23:55:22 +00:00
kmos a2fda93493 Update to Python 3.10.9
https://docs.python.org/3.10/whatsnew/changelog.html#python-3-10-9-final

Tweaks from sthen and tb

ok sthen@
2022-12-16 17:03:28 +00:00
kmos 03d0e393dc Update to Python 3.9.16
https://docs.python.org/release/3.9.16/whatsnew/changelog.html

Tweaks from sthen and tb

ok sthen@
2022-12-16 17:02:25 +00:00
sthen 9fdf3bd034 fix stupid editor linewrapping 2022-12-06 16:18:16 +00:00
sthen 0fa138d7d0 handle MODPY_PYBUILD=hatch-vcs 2022-12-06 16:17:25 +00:00
tb 190011dbcb Python 3.11: fix tkinter build on gcc-archs
ld.bfd requires explicit linking against libpthread, this way the configure
check succeeds and the tkinter module is built.

ok sthen
2022-12-06 15:58:08 +00:00
tb 411459a219 Python: set COMPILER_LANGS = c. The Pythons are no longer compiled with
--with-libcxx-main, so they no longer need to link against a C++ runtime.

help/ok sthen, ok kmos
2022-12-06 15:55:58 +00:00
sthen bc85bbe650 list allowed values if an unknown MODPY_PYBUILD is used 2022-11-29 11:19:45 +00:00
sthen 57d2b90569 adjust warning text from the 'Try to detect the case where a port will
build regardless of setuptools' check to suggest MODPY_PYBUILD not just
MODPY_SETUPTOOLS
2022-11-28 21:16:55 +00:00
sthen d858b7cc2a Ports built with setuptools on python 3.10 don't need a RUN_DEPENDS on
setuptools (it's used as a package locator but importlib.metadata in
newer Python core or the external importlib_metadata are preferred).
So drop the RDEP in that case (it's still kept for py27) and bump
revisions.
2022-11-26 23:28:11 +00:00
sthen fd403c631e fix -tests package spec, should not conflict with py27 2022-11-26 20:04:23 +00:00
sthen b7554f3b92 warn if MODPY_PYBUILD is used and not set to setuptools_scm when the
port appears to need setuptools_scm.
2022-11-25 16:33:15 +00:00
sthen f04e702653 use absolute paths in MODPY_TEST_LIBDIR, relative paths don't work if
MODPY_TEST_DIR is set
2022-11-25 16:32:04 +00:00
sthen 80fda491b1 switch MODPY_DEFAULT_VERSION_3 to 3.10 2022-11-13 15:26:02 +00:00
tb 9e438e0f0d Python: Undo the readline hack again now that most snapshots have caught
up with the rlstdc.h change.

ok kmos (maintainer), sthen
2022-11-05 20:46:24 +00:00
sthen a8dd03208c Patch Modules/readline.c to workaround an issue with the readline module
with Python 3.9+'s definition of PyMODINIT_FUNC and our readline headers
https://github.com/openbsd/src/blob/master/gnu/lib/libreadline/rlstdc.h#L41

(Due to some other strangeness in the build system, on 3.9 it rebuilt a
working version after the first attempt failed and the file was moved out
of the way, but that no longer happens with 3.10+ where readline just
failed).

Fix up PLISTs and WANTLIB for Python 3.11 while there.

Joint work with landry@ tb@ kmos@, ok tb kmos
2022-11-01 16:18:22 +00:00
kmos 633af1ae20 Add Python 3.11.0 to build and python.port.mk
ok sthen@ tb@
2022-10-31 22:06:28 +00:00
kmos e527e1494f Import Python 3.11.0
https://www.python.org/downloads/release/python-3110/

Still has the same readline module problem as 3.10

Tweaks and ok from tb@ and sthen@
2022-10-31 22:05:43 +00:00
sthen 3c1c57ea49 add notes about keeping REVISION/PKGNAME in -current/next release above the
version in -stable of the previous release when plist is changed etc
(e.g. backporting updates to -stable after swotching the default
Python version during a release cycle means that -current needs
to keep ahead of -stable, to avoid problems with -stable packages
at the next release)
2022-10-23 10:14:04 +00:00
tb 12c0e7a6d6 python 3.x: Fix broken _sha3 based on XKCP (CVE-2022-37454).
ok kmos sthen
2022-10-21 16:04:46 +00:00
sthen a524a79267 bump REVISION-tkinter for 7.2-current to keep it at a higher revision number
than we had in 7.1-stable (dependencies etc were changed).
2022-10-21 11:44:59 +00:00
kmos cae219a400 Upgrade to Python 3.9.15
https://docs.python.org/release/3.9.15/whatsnew/changelog.html

gh-97616: Fix multiplying a list by an integer (list *= int): detect the
          integer overflow when the new allocated length is close to the
          maximum size. Issue reported by Jordan Limor. Patch by Victor
          Stinner.

gh-97612: Fix a shell code injection vulnerability in the
          get-remote-certificate.py example script. The script no longer
          uses a shell to run openssl commands. Issue reported and
          initial fix by Caleb Shortt. Patch by Victor Stinner.

Also a couple non-security fixes.

ok sthen
2022-10-14 15:12:13 +00:00
kmos 7b403dee30 https://docs.python.org/3.10/whatsnew/changelog.html#changelog
gh-97616: Fix multiplying a list by an integer (list *= int): detect the
          integer overflow when the new allocated length is close to the
          maximum size. Issue reported by Jordan Limor. Patch by Victor
          Stinner.

gh-97612: Fix a shell code injection vulnerability in the
          get-remote-certificate.py example script. The script no longer
          uses a shell to run openssl commands. Issue reported and
          initial fix by Caleb Shortt. Patch by Victor Stinner.

gh-68966: The deprecated mailcap module now refuses to inject unsafe text
          (filenames, MIME types, parameters) into shell
          commands. Instead of using such text, it will warn and act as
          if a match was not found (or for test commands, as if the test
          failed).

ok sthen
2022-10-14 15:11:26 +00:00