Commit Graph

208 Commits

Author SHA1 Message Date
Jeffery To
868a73571b python3: Update to 3.10.4
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2022-11-08 13:36:19 +08:00
Jeffery To
15589e200f python3: Update to 3.10.3, refresh patches
Includes fixes for:
* Windows builds updated to bzip2 1.0.8 to mitigate CVE-2016-3189 and
  CVE-2019-12900
* CVE-2022-26488: Escalation of privilege via Windows Installer

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2022-11-08 13:36:18 +08:00
Jeffery To
1dd1926505 python3: Update to 3.10.2, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2022-11-08 13:36:18 +08:00
Jeffery To
a42ba715f7 python3: Update to 3.10.1, refresh/remove patches
Removed patches:
* 027-bpo-43158-Use-configure-values-for-building-_uuid-ex.patch
  Already merged.
* 029-disable-deprecation-warning.patch
  Packages should be patched/fixed to remove the use of distutils
  instead of disabling this warning.

Also:
* Updates PKG_LICENSE to use the correct SPDX license identifier
* Fixes build for mipsel_24kc_24kf

Fixes https://github.com/openwrt/packages/issues/17217.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2022-11-08 13:36:18 +08:00
Alexandru Ardelean
7e63f08563 python3: bump to version 3.10.0
Manually re-applied:
  008-distutils-use-python-sysroot.patch
  016-adjust-config-paths.patch

Drop patch: 003-do-not-run-distutils-tests.patch
There is now a configure option '--disable-test-modules'
And seems we left the '_ctypes_test' around for quite some time.
Dropped now.
Refs:
  https://bugs.python.org/issue27640
  https://bugs.python.org/issue43282

Drop patch: 013-getbuildinfo-date-time-source-date-epoch.patch
Python build honors SOURCE_DATE_EPOCH pretty well now.

Drop setuptools patches. Setuptools should be reproducible with Python
3.6+
according to a mention here:
  pypa/setuptools#1690 (comment)
It's time to let upstream fix Setuptools reproduce-ability.

Drop patch: 010-do-not-add-rt-lib-dirs-when-cross-compiling.patch
I can't seem to fully remember why it's there.
And it seem to build fine without it.

Drop patch: 015-abort-on-failed-modules.patch
Python build supports a similar PYTHONSTRICTEXTENSIONBUILD=1 env-var
option.

Add patch: 026-openssl-feature-flags.patch
We need to keep this in our tree for a while.
See:
  https://bugs.python.org/issue45627

Backport patch:
027-bpo-43158-Use-configure-values-for-building-_uuid-ex.patch
Link: python/cpython#29353
Fixes the build for uuid C module.

Add patch: 028-host-python-support-ssl-with-libressl.patch
We need the _ssl module working on the host-side with LibreSSL for pip
to
work to download from https://pypi.org
Refs: openwrt/openwrt#4749

Add patch: 029-disable-deprecation-warning.patch
Fixes apparmor build. The warning causes a configure error.

Refreshed the rest of patches.

Some old build-flags were removed. They don't seem to be necessary
anymore.

Split python3-uuid from python3-light. To better manage the libuuid
library
(if needed). Also, fixing the uuid C module build. Seems this was
failing,
and was falling back to using hashlib.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:18 +08:00
Rosen Penev
fff5c91bf7 expat: don't build host libs
tools/expat is actually what's used by the various packages that
supposedly depend on expat/host.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-11-08 13:36:18 +08:00
Alexandru Ardelean
93b05e6f70 python3: enable bluetooth support by default
Bluetooth support requires bluez-libs present, but they are only required
for the build, and don't seem to be needed to be present on the target.

There isn't any linking required to libbluetooth. It's only the bluetooth.h
header that is required for building BT support into Python.

For testing, this snippet was used from `Lib/test/test_socket.py` (inside
cpython):
```
def _have_socket_bluetooth():
    """Check whether AF_BLUETOOTH sockets are supported on this host."""
    try:
        # RFCOMM is supported by all platforms with bluetooth support. Windows
        # does not support omitting the protocol.
        s = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM)
    except (AttributeError, OSError):
        return False
    else:
        s.close()
    return True
```

Fixes: https://github.com/openwrt/packages/issues/16544

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:18 +08:00
Alexandru Ardelean
850e5019c1 python3: use gdbm for Berkley dbm
Python works with GNU DBM and with Berkley DBM.
Berkley DBM has been under Oracle for some time.

And it's not clear how many Python users actually use DBM.

In the packages feed, we have both libdb47 (which is now under Oracle) and
GNU DBM. The GNU DBM has a compatibility layer for Berkley DBM.
There are newer versions than libdb47, but it's probably not worth having
them yet. The libbd47 tarball is ~40+ MB. Odds are newer versions will be
bigger and more bloated.

This change merges the old `python3-gdbm` package into the `python3-dbm`
package, since they are effectively using the same underlying library now,
i.e. gdbm.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:17 +08:00
Alexandru Ardelean
8e7e0de040 python-six: remove host-build
There are no more users left in this tree.
So, remove it.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:17 +08:00
Alexandru Ardelean
80cc38aa2d python-lxml: bump to version 4.9.1
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:16 +08:00
Alexandru Ardelean
3a8f3a3dc5 lxml: bump to version 4.9.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:16 +08:00
Alexandru Ardelean
306d7a7b01 python-lxml: bump to version 4.8.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:16 +08:00
Alexandru Ardelean
40e5eb4ad4 python-lxml: update to version 4.7.1
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:16 +08:00
Alexandru Ardelean
af3cf6817b numpy: bump to version 1.23.3
Also bump Cython version to 0.29.32

And yeeeey: zip -> tar.gz

And they fixed the Intel AVX extension stuff/detection.
Which is why I deferred updating it until now.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:16 +08:00
Josef Schlehofer
7aa90d8fb7 host-pip-requirements: update Cython to version 0.29.28
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-11-08 13:36:16 +08:00
Alexandru Ardelean
702dd6d155 numpy: bump to version 1.21.5
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:16 +08:00
Alexandru Ardelean
a31ea63a7b numpy: bump to version 1.21.4
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:16 +08:00
Alexandru Ardelean
3eaf3bb745 numpy: bump to version 1.21.3
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:15 +08:00
Alexandru Ardelean
da543ef635 numpy: bump to version 1.21.2
Switch to AUTORELEASE for PKG_RELEASE.
And update Cython as well.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:15 +08:00
Alexandru Ardelean
de1f766e9a numpy: fix circular dependency
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:15 +08:00
Alexandru Ardelean
54784574f2 numpy: bump to version 1.21.1
Also bump Cython version to 0.29.23.
And add support for OpenBLAS.
Currently optional, but will be enabled by default on some architectures
later.

Depends on PR https://github.com/openwrt/packages/pull/15685

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:15 +08:00
Jeffery To
bbaf28d844 micropython: Update to 1.18, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2022-11-08 13:36:15 +08:00
Jeffery To
1345a91eb8 micropython: Update to 1.17, reorganize package
Previous versions used a bundled version of the axTLS library. The
MicroPython project maintains their own fork[1], as development of the
library appears to have stopped (the last release was version 2.1.5 in
2019[2]).

This replaces the use of axTLS with two variants, one using mbedTLS and
one with no TLS support (and no upip, as it uses the ussl module). The
external mbedTLS patch (040-extmod-use-external-mbedtls.patch) comes
from Debian[3].

This also sets myself as the maintainer.

[1]: https://github.com/micropython/axtls
[2]: https://sourceforge.net/projects/axtls/files/
[3]: https://salsa.debian.org/yangfl-guest/micropython/-/blob/master/debian/patches/0006-extmod-Use-system-mbedtls.patch

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2022-11-08 13:36:15 +08:00
1582130940
70dfa8aab3 Revert "python-paho-mqtt: remove dependency already included in python3-light"
This reverts commit 1367aa3b93.
2022-11-08 13:35:30 +08:00
coolsnowwolf
1367aa3b93 python-paho-mqtt: remove dependency already included in python3-light 2022-11-08 01:39:24 +08:00
Alexandru Ardelean
e95dc2495a ruamel-yaml: bump to version 0.17.17
The older one won't build with Python 3.10.0

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-03 11:39:44 +08:00
Josef Schlehofer
ed5df502f3 python-zeroconf: update to version 0.38.1
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-11-03 11:39:44 +08:00
Josef Schlehofer
2cbe20c495 python-yarl: update to version 1.6.3
Update Makefile copyright

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-11-03 11:39:43 +08:00
Alexandru Ardelean
db6bf0cdb9 python-yaml: bump to version 6.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-03 11:39:43 +08:00
Josef Schlehofer
8ef74089d9 python-websockets: update to version 10.3
- Update copyright

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-11-03 11:39:43 +08:00
Javier Marcet
5bde81f50f python-websocket-client: update to 1.4.1
- Fix stack growth bug when `run_forever` reconnects
  - Add doctest CI for sphinx docs code examples (d150099)
  - General docs improvements
  - Fix automatic reconnect with `run_forever`
  - Allow a timeout to be set when using a proxy

Signed-off-by: Javier Marcet <javier@marcet.info>
2022-11-03 11:39:43 +08:00
Javier Marcet
7f8e84b24d python-websocket-client: update to 1.3.3
- Fix unclosed socket error
 - Update header dict access
 - Add utf8 workaround to docs

Signed-off-by: Javier Marcet <javier@marcet.info>
2022-11-03 11:39:42 +08:00
Josef Schlehofer
ec6ef122c7 python-voluptuous-serialize: update to version 2.5.0
- Release notes:
https://github.com/home-assistant-libs/voluptuous-serialize/releases/tag/2.5.0

- Update copyright

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-11-03 11:39:42 +08:00
Josef Schlehofer
efbd3de944 python-uci: update to version 0.9.0
- Release notes:
https://gitlab.nic.cz/turris/pyuci/-/tags/v0.9.0
- Update copyright while at it.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-11-03 11:39:42 +08:00
Javier Marcet
5ab0fb5cce python3-texttable: update to version 1.6.4
- Fix alignment bug when deco is modified

Signed-off-by: Javier Marcet <javier@marcet.info>
2022-11-03 11:39:42 +08:00
Javier Marcet
f1d7455e89 python-stem: update to v1.8.1
Signed-off-by: Javier Marcet <javier@marcet.info>
2022-11-03 11:39:41 +08:00
Josef Schlehofer
5ca49fa1ec python-stem: backport patch to fix Python 3.10
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-11-03 11:39:41 +08:00
Josef Schlehofer
ff632a3bef python-sqlalchemy: update to version 1.4.22
Update copyright

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-11-03 11:39:41 +08:00
Šimon Bořek
162dbb8f67 python-sentry-sdk: update to 1.5.4
changelog: f6d3adcb3d/CHANGELOG.md (154)

Signed-off-by: Šimon Bořek <borek@autobakterie.cz>
2022-11-03 11:39:41 +08:00
Alexandru Ardelean
5fd510512f python-requests: bump to version 2.28.1
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-03 11:39:40 +08:00
Alexandru Ardelean
fdf6b25aab python-requests: bump to version 2.26.0
This version prefers charset_normalizer instead of chardet.
chardet is still usable if available.

Dropping patches for idna. Not required anymore.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-03 11:39:40 +08:00
Alexandru Ardelean
819e32f650 python3-pytz: bump to version 2022.5
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-03 11:39:40 +08:00
Alexandru Ardelean
9d756bbb13 python3-pytz: bump to version 2022.4
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-03 11:39:40 +08:00
Alexandru Ardelean
b344c6256c python-pytz: bump to version 2022.2.1
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-03 11:39:39 +08:00
Jeffery To
26e8433564 python-pyopenssl: Update to 21.0.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2022-11-03 11:39:39 +08:00
Javier Marcet
d0bd05edf4 python-pynacl: update to v1.5.0
Signed-off-by: Javier Marcet <javier@marcet.info>
2022-11-03 11:39:39 +08:00
Daniel Golle
8f759dfafc pynacl: fix build with updated sodium-minimal patch
Commit 3da874371 ("libsodium: include ed25519_core in minimal build")
broke the build of PyNaCl. Add patch to always include all ed25519
functions which are now always covered even if libsodium is built with
the MINIMAL option.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-11-03 11:39:39 +08:00
Jeffery To
3150e9e80d python-pycparser: Update to 2.21, update patch
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2022-11-03 11:39:38 +08:00
Sergey V. Lobanov
113297c1e8 python-psutil: update to version 5.9.0, fix build on macos
1. updated to 5.9.0

2. psutil can not be built on macos due to build script detects Darwin
using sys.platform and changes build logic to build for Darwin, but
OpenWrt is Linux.
This commit add patch to allow redefining sys.platform and uses
env var TARGET_SYS_PLATFORM to specify linux as sys platfrom.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-11-03 11:39:38 +08:00
Javier Marcet
ce4eb7c82b python3-paramiko: update to version 2.11.0
2.11.0:

 - [Feature] Add SSH config token expansion (eg %h, %p) when parsing
 ProxyJump directives. Patch courtesy of Bruno Inec.

 - [Support] (via #2011) Apply unittest skipIf to tests currently
 using SHA1 in their critical path, to avoid failures on systems
 starting to disable SHA1 outright in their crypto backends (eg RHEL
 9). Report & patch via Paul Howarth.

 - [Support] Update camelCase method calls against the threading
 module to be snake_case; this and related tweaks should fix some
 deprecation warnings under Python 3.10. Thanks to Karthikeyan
 Singaravelan for the report, @Narendra-Neerukonda for the patch,
 and to Thomas Grainger and Jun Omae for patch workshopping.

 - [Support] Recent versions of Cryptography have deprecated Blowfish
 algorithm support; in lieu of an easy method for users to remove it
 from the list of algorithms Paramiko tries to import and use, we’ve
 decided to remove it from our “preferred algorithms” list. This will
 both discourage use of a weak algorithm, and avoid warnings. Credit
 for report/patch goes to Mike Roest.

2.10.5:

 - [Bug] Windows-native SSH agent support as merged in 2.10 could
 encounter Errno 22 OSError exceptions in some scenarios (eg server
 not cleanly closing a relevant named pipe). This has been worked
 around and should be less problematic. Reported by Danilo Campana
 Fuchs and patched by Jun Omae.

 - [Bug] OpenSSH 7.7 and older has a bug preventing it from
 understanding how to perform SHA2 signature verification for RSA
 certificates (specifically certs - not keys), so when we added SHA2
 support it broke all clients using RSA certificates with these
 servers. This has been fixed in a manner similar to what OpenSSH’s
 own client does: a version check is performed and the algorithm used
 is downgraded if needed. Reported by Adarsh Chauhan, with fix
 suggested by Jun Omae.

 - [Bug] Align signature verification algorithm with OpenSSH re:
 zero-padding signatures which don’t match their nominal size/length.
 This shouldn’t affect most users, but will help Paramiko-implemented
 SSH servers handle poorly behaved clients such as PuTTY. Thanks to
 Jun Omae for catch & patch.

Signed-off-by: Javier Marcet <javier@marcet.info>
2022-11-03 11:39:38 +08:00