<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/lang/python/python3, branch openwrt-23.05</title>
<subtitle>Community maintained packages for OpenWrt</subtitle>
<id>http://x-nagi.com/cgit/packages/atom?h=openwrt-23.05</id>
<link rel='self' href='http://x-nagi.com/cgit/packages/atom?h=openwrt-23.05'/>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/'/>
<updated>2023-12-13T17:36:41Z</updated>
<entry>
<title>python3: Update to 3.11.7, refresh patches</title>
<updated>2023-12-13T17:36:41Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-12-11T06:34:24Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=40a730516c6c4df4663be1806132d4edf8d9ba84'/>
<id>urn:sha1:40a730516c6c4df4663be1806132d4edf8d9ba84</id>
<content type='text'>
Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit d4f5759190ce7bbebbeaa4161333c91d0d7a4da1)
</content>
</entry>
<entry>
<title>python3: Fix building C extensions with setuptools</title>
<updated>2023-11-01T16:40:44Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-10-30T15:56:43Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=f218d96e14eafc6bd323d871a56a94b4b5e8c68b'/>
<id>urn:sha1:f218d96e14eafc6bd323d871a56a94b4b5e8c68b</id>
<content type='text'>
setuptools provides a local copy of distutils and when building a C
extension, this distutils will add the target LIBDIR (/usr/lib) to the
list of library paths.

If the build system has a libpython3.11.so in /usr/lib, then the linker
will try to link to this shared library and fail.

This adapts 008-distutils-use-python-sysroot.patch for host setuptools
to add the correct library directory.

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

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit 624fb955619c0b4b368e2ac1880619f159e3b8d6)
</content>
</entry>
<entry>
<title>python3: Update to 3.11.6, refresh patches</title>
<updated>2023-10-11T07:10:19Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-10-09T01:18:40Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=bec2e7fc814a349e3dfe7f4ea19b3c3379d89e92'/>
<id>urn:sha1:bec2e7fc814a349e3dfe7f4ea19b3c3379d89e92</id>
<content type='text'>
Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit 2aba43afe9e1bf5d9dc5e3578af7f82f6da51b2b)
</content>
</entry>
<entry>
<title>python3: avoid unnecessary rebuilds</title>
<updated>2023-10-07T17:33:08Z</updated>
<author>
<name>Eneas U de Queiroz</name>
<email>cotequeiroz@gmail.com</email>
</author>
<published>2023-10-04T19:19:07Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=15cfd52f14fed6c2433b82c779bd172024b9ccc8'/>
<id>urn:sha1:15cfd52f14fed6c2433b82c779bd172024b9ccc8</id>
<content type='text'>
Move the order in which BuildPackage is called, so that the libpython
package is built ahead of the module packages, to avoid forcing a
clean-build of the package when 'make package/python3/compile' is called
a second time without changes.

The library must be built first, so that when the buildsystem checks for
ABI version changes using libpython3.version, its timestamp should be
older than the dependent package's STAMP_PREPARED file.

Signed-off-by: Eneas U de Queiroz &lt;cotequeiroz@gmail.com&gt;
(cherry picked from commit c230d7bd7f8a794032d2414588f1cdfc1a5ec74e)
</content>
</entry>
<entry>
<title>python3: Update to 3.11.5, refresh patches</title>
<updated>2023-09-14T13:45:05Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-09-05T03:53:41Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=e05cf558ff41d3a4f224136e38176668b8494984'/>
<id>urn:sha1:e05cf558ff41d3a4f224136e38176668b8494984</id>
<content type='text'>
Includes fix for CVE-2023-40217 (Bypass TLS handshake on closed
sockets).

This also:

* Remove 027-install-python3-symlink-after-stdlib.patch

  This was merged upstream in
  https://github.com/python/cpython/pull/104693.

* Remove fix for unnecessary linking with libbsd
  (60bf01cb606344619e002901646171da1e69c0f9)

  This was fixed upstream in
  https://github.com/python/cpython/pull/105236.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit e42c8450393a317ab6df39f6e01411722872fd6b)
</content>
</entry>
<entry>
<title>python3: Restore platform triplet to paths</title>
<updated>2023-09-05T04:42:50Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-06-29T08:33:25Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=ec9d61450ee9831a28ec712166a791fffd0888b3'/>
<id>urn:sha1:ec9d61450ee9831a28ec712166a791fffd0888b3</id>
<content type='text'>
This removes 014-remove-platform-so-suffix.patch and
016-adjust-config-paths.patch, restoring the platform triplet to paths
for:

* C extensions (*.cpython-311-*.so)

* Build config data directory (/usr/lib/python3.11/config-3.11-*/)

* sysconfig data file (/usr/lib/python3.11/_sysconfigdata_*.py)

Setting `_PYTHON_SYSCONFIGDATA_NAME` during package builds ensures that
sysconfig data for target Python is loaded, in particular so that C
extensions built will have the correct extension / platform triplet.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit 0fe10114208e2c5cd572df043945a52e3ebeb6dd)
</content>
</entry>
<entry>
<title>python3: Fix/expand platform triplet detection</title>
<updated>2023-09-05T04:42:32Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-07-11T07:48:19Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=2438d49f1016dc942f0d82af335e7fdd4b88c6a0'/>
<id>urn:sha1:2438d49f1016dc942f0d82af335e7fdd4b88c6a0</id>
<content type='text'>
Currently, configure does not find the correct platform triplet for musl
as the default build/host values passed by OpenWrt buildroot does not
contain the text "linux-musl".

This backports
https://github.com/python/cpython/commit/c163d7f0b67a568e9b64eeb9c1cbbaa127818596
to add detection for mips soft float and musl.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit 5a0055df0621d4347723993b04a2fcf045929acf)
</content>
</entry>
<entry>
<title>python3: Centralize config file adjustments in Build/Install</title>
<updated>2023-09-05T04:42:09Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-06-29T08:13:52Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=b8d9ad62e04007697cd8a3bf24f1c4a8f788ea81'/>
<id>urn:sha1:b8d9ad62e04007697cd8a3bf24f1c4a8f788ea81</id>
<content type='text'>
Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit b595362b8567521b9bdf003dcc88f9b962c22b10)
</content>
</entry>
<entry>
<title>python: Rework filespec install script</title>
<updated>2023-09-05T04:41:56Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-06-29T07:27:40Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=ae845a260c9d84f60499bed968a66a467679e199'/>
<id>urn:sha1:ae845a260c9d84f60499bed968a66a467679e199</id>
<content type='text'>
* Support wildcards in install (`+`) paths

* Add fourth parameter to set directory permissions

  If file permissions are given (third parameter), these will now apply
  to files only.

* Add non-recursive set permissions command (`==`)

* Be more strict about filespec format

  Blank lines and lines starting with `#` will be ignored. Other errors
  (unknown command, missing path parameter, etc.) will cause the script
  to exit.

* Be more strict about ensuring paths exist for all commands

* Avoid spawning subshells

This also removes outdated filespec paths in the python3 package; these
paths delete files that are no longer present.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit 2ffb87726b93ffd73a5291d6db1bc3d13fbcde17)
</content>
</entry>
<entry>
<title>python3: Fix package descriptions</title>
<updated>2023-09-05T04:41:29Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-07-13T05:39:35Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=14792007907dd1aa5bcd16dca03f4df551b60b6c'/>
<id>urn:sha1:14792007907dd1aa5bcd16dca03f4df551b60b6c</id>
<content type='text'>
* Fix default Python package description not included in individual
  package descriptions

* Update default Python package description text (from General Python
  FAQ, "What is Python?")

* Add package descriptions for Python module packages

* Reduce duplication in package titles

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit 329f9a139157840ad129991e961a63f7f4362d62)
</content>
</entry>
</feed>
