Commit graph

4489 commits

Author SHA1 Message Date
Jeffery To
5e1b12e55e python-platformdirs: Add new package
This also includes a test.sh script for the packages feed CI.

From the README:

When writing desktop application, finding the right location to store
user data and configuration varies per platform. Even for
single-platform apps, there may by plenty of nuances in figuring out the
right location.

This kind of thing is what the platformdirs package is for.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-12-07 15:07:05 +08:00
Jeffery To
cd79a679ef python-trove-classifiers: Update to 2023.11.29
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-12-04 11:10:46 +01:00
Andy Syam
2484715985 perl: update to version 5.38.2
removed one that no longer exists in perl-5.38.2

updated one patch

fixed missing builtin.pm

Signed-off-by: Andy Syam <privasisource@gmail.com>
2023-12-01 11:18:10 -08:00
Jeffery To
72c63100aa python-wheel: Update to 0.42.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-30 12:58:35 +08:00
Jeffery To
b52fd3aa3a python-setuptools: Update to 69.0.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-30 12:58:25 +08:00
Jeffery To
c65f7c66eb python-pyasn1: Update to 0.5.1
This also adds a test.sh script for the packages feed CI.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-30 12:58:15 +08:00
Jeffery To
7d1febb77f python-idna: Update to 3.6
This also adds a test.sh script for the packages feed CI.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-30 12:58:06 +08:00
Hirokazu MORIKAWA
41e500535c node: upgrade to v20.10.0
Notable Changes
* --experimental-default-type flag to flip module defaults
* Detect ESM syntax in ambiguous JavaScript
* New flush option in file system functions
* Experimental WebSocket client
* vm: fix V8 compilation cache support for vm.Script

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2023-11-30 12:57:55 +08:00
Jeffery To
36eb48465b python-jsonschema: Update to 4.19.1, update list of dependencies
This also adds a test.sh script for the packages feed CI.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-30 12:57:27 +08:00
Jeffery To
ebb69c5c17 python-jsonschema-specifications: Add new package
From the README:

JSON support files from the JSON Schema Specifications (metaschemas,
vocabularies, etc.), packaged for runtime access from Python as a
referencing-based Schema Registry.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-30 12:57:27 +08:00
Jeffery To
728aac31bb python-referencing: Add new package
From the README:

An implementation-agnostic implementation of JSON reference resolution.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-30 12:57:27 +08:00
Jeffery To
06231ce8cb python-rpds-py: Add new package
From the README:

Python bindings to the Rust rpds crate for persistent data structures.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-30 12:57:27 +08:00
Javier Marcet
6fbd40b3b8 luajit2: update to v2.1-20231117
Signed-off-by: Javier Marcet <javier@marcet.info>
2023-11-26 11:46:02 +01:00
Jeffery To
028108b9a5 python-trove-classifiers: Update to 2023.11.14
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-24 20:41:02 +08:00
Jeffery To
08c07ed258 python-argcomplete: Update to 3.1.6
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-24 20:40:51 +08:00
Andy Syam
0142d06598 perl: update to version 5.38.0
removed some sources to download perl. I believe I only need one source to download perl at https://www.cpan.org/src/5.0. I see some Linux distributions use that source to download.
change the position of PKG_MAINTAINER to make it neater and prettier

perform a patch refresh
removes some patches that have been applied in perl-5.38.0 as well as patches that are no longer used in perl-5.38.0

added one patch Perl/perl5@ba6e2c3 this fixes the issue regcomp*.c, regexec.c - fixup regex engine build under -Uusedl

provided updates and synchronized libc.config base.config version.config to perl-5.38.0
removed deprecated arybase in perl-5.29.4

Signed-off-by: Andy Syam <privasisource@gmail.com>
2023-11-22 18:32:50 -08:00
Tianling Shen
11279e54ed rust: Update to 1.74.0
- Bumped libc to 0.2.147 to align deps.
- Refreshed patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-22 22:38:23 +08:00
Florian Eckert
7fb8337c89
Merge pull request #22713 from zhaojh329/lua-eco
lua-eco: update to 3.1.0
2023-11-21 08:45:36 +01:00
Jeffery To
f5ebf9fafe
Merge pull request #22625 from ecammit/python_requirements_for_homeassistant
Added python-fnv-hash-fast, python-lru-dict, and python-orjson
2023-11-21 12:34:08 +08:00
Jianhui Zhao
a3c6acf6b0 lua-eco: update to 3.1.0
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2023-11-20 23:04:38 +08:00
Timothy M. Ace
96ce3b51a4 python-orjson: Added for v3.9.10
Signed-off-by: Timothy M. Ace <openwrt@timothyace.com>
2023-11-20 09:58:42 -05:00
Timothy M. Ace
cbae8db987 python-lru-dict: Added for v1.3.0
Signed-off-by: Timothy M. Ace <openwrt@timothyace.com>
2023-11-20 09:58:32 -05:00
Timothy M. Ace
f0f3882737 python-fnv-hash-fast: Added for v0.5.0
Signed-off-by: Timothy M. Ace <openwrt@timothyace.com>
2023-11-16 09:36:10 -05:00
Timothy M. Ace
a26395dce3 python-fnvhash: Added for v0.1.0
Signed-off-by: Timothy M. Ace <openwrt@timothyace.com>
2023-11-16 09:35:15 -05:00
Jeffery To
72b0da3d03 pipx: Add new package
From the README:

pipx is a tool to help you install and run end-user applications written
in Python. It's roughly similar to macOS's brew, JavaScript's npx, and
Linux's apt.

It's closely related to pip. In fact, it uses pip, but is focused on
installing and managing Python packages that can be run from the command
line directly as applications.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-16 02:30:21 +08:00
Jeffery To
5b3e4a4b3f python-userpath: Add new package
The patches have been submitted upstream in
https://github.com/ofek/userpath/pull/52 and
https://github.com/ofek/userpath/pull/53.

From the README:

This is a tool for modifying a user's PATH.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-16 02:30:21 +08:00
Jeffery To
b354a7edbe python-argcomplete: Add new package
From the README:

Argcomplete provides easy, extensible command line tab completion of
arguments for your Python application.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-16 02:30:21 +08:00
Jeffery To
a317ea2831 python-twisted: Update to 23.10.0, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-16 02:20:59 +08:00
Jeffery To
1e4e35b765 python-wheel: Update to 0.41.3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-16 02:20:48 +08:00
Jeffery To
7c68e41ec8 python-poetry-core: Update to 1.8.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-16 02:20:39 +08:00
Jeffery To
570bbc3885 python-trove-classifiers: Update to 2023.11.9
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-16 02:19:50 +08:00
Jeffery To
dbbb577956 python-mako: Update to 1.3.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-16 02:19:41 +08:00
Jeffery To
c9a9c20793 python-hatch-vcs: Update to 0.4.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-16 02:19:09 +08:00
Jeffery To
0ebc715981
golang: Update to 1.21.4
Includes fixes for CVE-2023-45283 and CVE-2023-45284 (path/filepath:
insecure parsing of Windows paths).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-13 16:01:30 +08:00
Jianhui Zhao
257b6177a4 lua-eco: update to 3.0.2
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2023-11-10 00:38:55 +08:00
Jeffery To
298fd20375 micropython-lib: Update to latest version, remove patch
Remove 004-unix-ffi-re-convert-to-PCRE2.patch as it has been merged in
this version.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-06 10:56:09 -08:00
Jeffery To
55df86c7f6 python-pyopenssl: Update to 23.3.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-02 18:46:01 -07:00
Jeffery To
ddd0f93637 python-charset-normalizer: Update to 3.3.2
This also updates the test.sh script to use an assert.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-02 18:45:45 -07:00
Jeffery To
db9202ccc5 micropython: Update to 1.21.0, refresh/redo patches
Removed 050-py-stackctrl-fix-gcc-13.patch as it has been merged in the
new version.

This also:

* Add STRIP= (empty value) to skip micropython's stripping step, letting
  the OpenWrt build system control stripping.

* Add a workaround for "variable might be clobbered" warning leading to
  build error on riscv64
  (https://github.com/micropython/micropython/issues/12838).

* Change Build/InstallDev to install host tools into an unversioned
  directory, and update micropython-lib to use the unversioned path.
  There is no need to keep available multiple versions of the host
  tools.

* Add a test.sh script for the packages feed CI.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-01 15:57:40 -07:00
Jeffery To
3085608448 micropython-mpremote: Update to 1.21.0, rename package, move into utils
This renames the package to mpremote and moves it into utils, as this is
a command-line utility and not a Python/MicroPython library.

This also adds a test.sh script for the packages feed CI.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-02 00:38:21 +08:00
Jeffery To
8b4316f2d5 python-setuptools-rust: Update to 1.8.1, remove patch
0001-Allow-profile-to-be-set-by-SETUPTOOLS_RUST_CARGO_PROFILE-env-variable.patch
has been merged in this version.

This also updates the list of dependencies for the package.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-02 00:27:39 +08:00
Jeffery To
c4a223ed87 python-cryptography: Update to 41.0.5
This also adds a CPE ID for the package and updates the test.sh script
to use an assert.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-02 00:27:30 +08:00
Jeffery To
1fbe4b9a8b python-constantly: Update to 23.10.4, add new build dependency
This also adds a test.sh script for the packages feed CI.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-02 00:27:11 +08:00
Jeffery To
8acd006b6e python-versioneer: Add new host-only package
From the README:

This is a tool for managing a recorded version number in
setuptools-based python projects. The goal is to remove the tedious and
error-prone "update the embedded version string" step from your release
process. Making a new release should be as easy as recording a new tag
in your version-control system, and maybe making new tarballs.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-02 00:27:11 +08:00
Hirokazu MORIKAWA
3e51eef14c node: upgrade to v20.9.0
node.js version 20.x is now active LTS.

mipsel (pistachio) is no longer supported.
Due to build difficulties, libuv shared libraries are not used.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2023-11-02 00:25:22 +08:00
Jeffery To
d6d9763e31
pyodbc: Update to 5.0.1, rename source package
This renames the source package to python-pyodbc to match other Python
packages.

This also updates the unixodbc dependency to libodbc, updates the
package title and description, and adds a test.sh script for the
packages feed CI.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-31 12:31:26 +08:00
Jeffery To
668a0f9dd8
pyodbc: Fix segmentation fault
4.0.36 included a change to decimal parsing[1] that requires the decimal
module. Trying to load the pyodbc module without python3-decimal
installed would lead to a segmentation fault.

This adds python3-decimal as a dependency.

This also adds python3-uuid as a dependency as the module can accept and
return uuid objects[2].

[1]: 6b107a2bca
[2]: 2ad7a9ced7

Fixes: f02f3ee8c7 ("pyodbc: Update to 4.0.39")

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-31 12:31:26 +08:00
Jeffery To
624fb95561 python3: Fix building C extensions with setuptools
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 <jeffery.to@gmail.com>
2023-10-30 13:33:07 -07:00
Jeffery To
54616e7049 rust: Fix compile error for mipsel_24kc+24kf
Currently, rust fails to build for mipsel_24kc+24kf with "opcode not
supported on this processor: mips1 (mips1)" errors when building
libunwind.

Because mipsel_24kc+24kf is hard-float, a certain section of
src/llvm-project/libunwind/src/UnwindRegistersRestore.S is selected to
be compiled; the instructions in this section require MIPS II.

mipsel_24kc+24kf is compiled for MIPS32 Release 2 (MIPS32 is based on
MIPS II), but the C flags used to select this architecture were not
passed to the rust bootstrap (to be passed back to gcc).

This passes the C flags to rust bootstrap to fix this compile error.

This also adds PKG_BUILD_FLAGS:=no-mips16 as attempting to generate
MIPS16 code leads to a different compile error.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-30 13:29:33 -07:00
Jeffery To
f9f1e0220f rust: Fix compile error if build dir and DL_DIR on separate filesystems
The rust bootstrap downloads files into a "tmp" directory then moves the
files into the "cache" directory using std::fs::rename. There are no
issues in the original/unpatched case as "tmp" and "cache" are
subdirectories in the build directory ($(HOST_BUILD_DIR)/build) and so
are nearly guaranteed to be on the same filesystem.

35768bf31e changed where files are
saved/cached (in $(DL_DIR)/rustc). If HOST_BUILD_DIR and DL_DIR are on
separate filesystems, then using std::fs::rename to move the files will
fail.[1]

This updates 0002-rustc-bootstrap-cache.patch to account for this case,
i.e. if std::fs::rename fails, fall back to copying the file then
removing the original.

[1]: https://github.com/openwrt/packages/pull/22457

Fixes: 35768bf31e ("rust: Cache bootstrap downloads to $(DL_DIR)/rustc")

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-30 13:29:33 -07:00
Michael Heimpold
9783678926 php8-pecl-http: update to 4.2.4
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2023-10-30 10:04:01 +01:00
Alexandru Ardelean
ce21a91dc2
Merge pull request #22505 from jefferyto/python-pip-23.3.1
python-pip: Update to 23.3.1, redo/refresh patches
2023-10-30 09:05:06 +02:00
Alexandru Ardelean
a3f1cd1916
Merge pull request #22527 from mhei/php8-pecl-redis-update-to-6.0.2
php8-pecl-redis: update to 6.0.2
2023-10-30 09:04:26 +02:00
Alexandru Ardelean
b6f7aa35b2
Merge pull request #22528 from mhei/php8-pecl-xdebug-update-to-3.2.2
php8-pecl-xdebug: update to 3.2.2
2023-10-30 09:04:14 +02:00
Jeffery To
4e94aa7883 python-trove-classifiers: Update to 2023.10.18
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-28 23:06:20 +02:00
Michael Heimpold
252b4faf00 php8-pecl-redis: update to 6.0.2
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2023-10-28 11:34:56 +02:00
Michael Heimpold
12a05ec282 php8-pecl-xdebug: update to 3.2.2
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2023-10-28 11:33:14 +02:00
Michael Heimpold
8d6a63df8a php8: update to 8.2.12
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2023-10-27 07:45:18 +02:00
Jeffery To
548fdba3fd
python-pip: Update to 23.3.1, redo/refresh patches
001-pyproject-hooks-pyc-fix.patch and 002-pip-runner-pyc-fix.patch are
redone to use source files if they are present.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-26 20:16:42 +08:00
Zoltan HERPAI
cf59047d3c perl: add support for riscv64
Required by sifiveu and upcoming riscv targets.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2023-10-22 23:29:03 -06:00
Christian Marangi
d191c3d0c4 micropython-lib: move to PCRE2
Add pending patch converting the package to PCRE2.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-10-22 13:26:14 +02:00
Alexandru Ardelean
3be6f6bec9 pillow: bump to version 10.1.0
Add test.sh also.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2023-10-20 13:02:49 +02:00
Hirokazu MORIKAWA
9101a21e53 node: Friday October 13 2023 Security Releases
This is a security release.
Notable Changes
The following CVEs are fixed in this release:
* CVE-2023-44487: nghttp2 Security Release (High) (Depends on shared library provided by OpenWrt)
* CVE-2023-45143: undici Security Release (High)
* CVE-2023-38552: Integrity checks according to policies can be circumvented (Medium)
* CVE-2023-39333: Code injection via WebAssembly export names (Low)
More detailed information on each of the vulnerabilities can be found in October 2023 Security Releases blog post.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2023-10-17 18:14:09 +02:00
Drew Young
3d799c3eee rust: fix build with glibc, ARM and hard floats
Patch the target triple for Rust with glibc to include hard floating
point support.

The GNU target triple used elsewhere does not include hard float support,
instead `-mfloat-abi=hard` is passed separately. For Rust it must be
included in the target triple. This was already being done for musl,
this commit adds the same patching for glibc.

Without this patch Rust compilation fails with an error like this
(abbreviated to fit the line length):

    ld: error: libstd.so uses VFP register arguments, ... does not
    ld: failed to merge target specific data of file ...

Signed-off-by: Drew Young <dyoung@viridiparente.com>
2023-10-16 09:01:43 +08:00
Jeffery To
f151ab8c0e golang: Update to 1.21.3
Includes fix for CVE-2023-39325 (net/http, x/net/http2: rapid stream
resets can cause excessive work).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-15 22:30:29 +02:00
Tianling Shen
6640ea8cc4
Merge pull request #22393 from jefferyto/maturin-1.3.0
maturin: Update to 1.3.0, build as Python (host-only) package
2023-10-15 11:51:06 +08:00
Oskari Rauta
d3b1b0d34e rust: update to 1.73.0
patches refreshed.
changelog at https://github.com/rust-lang/rust/releases/tag/1.73.0

Also added a configuration ardument and patch
from https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-lang/rust/files/1.72.0-bump-libc-deps-to-0.2.146.patch?id=515b5920046117355d88b3494c74da269ce9b30a
to provide support for building rust on musl hosts.

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>

rust: add support for musl build hosts

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2023-10-14 11:25:14 +08:00
Hirokazu MORIKAWA
b2079b87d1 node: bump to v18.18.1
Notable Changes

 This release addresses some regressions that appeared in Node.js 18.18.0:

    (Windows) FS can not handle certain characters in file name #48673
    18 and 20 node images give error - Text file busy (after re-build images) nodejs/docker-node#1968
    libuv update in 18.18.0 breaks webpack's thread-loader #49911

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2023-10-14 11:22:23 +08:00
Javier Marcet
63fcdee74c python3-texttable: update to version 1.7.0
Signed-off-by: Javier Marcet <javier@marcet.info>
2023-10-14 11:21:21 +08:00
Javier Marcet
5340e9d7d8 python-websocket-client: update to 1.6.4
- 1.6.4
  - Add support for HTTP 307 and 308 redirect codes

- 1.6.3
  - Fix type hints issues
  - Add support for Python beta release 3.12 in CI
  - Add maintainer email in setup.py

Signed-off-by: Javier Marcet <javier@marcet.info>
2023-10-14 11:21:09 +08:00
Jeffery To
783e6f7491
maturin: Update to 1.3.0, build as Python (host-only) package
Python packages that use maturin to build do not call the maturin
program directly; they use the maturin build backend[1]. This build
backend is a Python library provided with maturin that interfaces with
the maturin program.

This changes the maturin package to use the Python build process so that
the build backend is installed correctly.

This also renames the source package to python-maturin and moves it into
the lang/python directory.

[1]: https://www.maturin.rs/#source-distribution

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-14 01:51:09 +08:00
Javier Marcet
8c5f98d952 luajit2: update to v2.1-20231006
Signed-off-by: Javier Marcet <javier@marcet.info>
2023-10-13 15:28:01 +02:00
Jeffery To
29ca9797a6
python-setuptools-rust: Set cargo profile from environment variable
This adds a patch (submitted upstream in
https://github.com/PyO3/setuptools-rust/pull/364), to read the profile
to pass to cargo from an environment variable.

This also updates the Python include files to set the environment
variable based on values from rust-values.mk.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 15:50:24 +08:00
Jeffery To
8bf2725f9b
rust: Set release profile settings
* codegen-units, lto, opt-level - Set to values to optimize binary
  size[1].

* overflow-checks - Enabled because in release mode, integer overflows
  are defined as two's complement wrap[2]. It is highly unlikely that
  any program is intentionally relying on this behaviour; it would be
  better to panic instead of continue execution in this case.

* debug, debug-assertions, panic, rpath - Set to their default (release)
  values, to override any settings made by packages, e.g. ripgrep sets
  debug = 1[3].

[1]: https://github.com/johnthagen/min-sized-rust
[2]: https://huonw.github.io/blog/2016/04/myths-and-legends-about-integer-overflow-in-rust/
[3]: https://github.com/BurntSushi/ripgrep/blob/13.0.0/Cargo.toml#L79-L80

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 15:50:24 +08:00
Jeffery To
b4ec017398
rust: Add option to use sccache
Using sccache makes recompilation of rustc and Rust packages faster.

This also makes the rust package visible in menuconfig, in order for the
sccache options to be accessible.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 15:50:24 +08:00
Jeffery To
0dfc1b508d
rust: Use make's jobserver when building packages
This allows cargo to use make's jobserver when building packages, by
marking the cargo command as recursive (with the + prefix[1]) and
setting MAKEFLAGS.

This also:

* Give cargo/x.py the build directory instead of having to change the
  current directory (and opening subshells)

* Set PKG_BUILD_PARALLEL/HOST_BUILD_PARALLEL for Rust packages to enable
  the use of make's jobserver

[1]: https://www.gnu.org/software/make/manual/html_node/POSIX-Jobserver.html

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 15:50:24 +08:00
Jeffery To
9db7284d58
rust: Consolidate cargo environment variables
This consolidates all environment variables for cargo into:

* CARGO_HOST_CONFIG_VARS / CARGO_PKG_CONFIG_VARS

  These contain all cargo-specific environment variables, i.e. without
  "common" variables like CC.

* CARGO_HOST_VARS / CARGO_PKG_VARS (renamed from CARGO_VARS)

  These contain all environment variables to be passed to cargo.

This also:

* Set the CARGO_BUILD_TARGET environment variable instead of using the
  --target command-line option

* Update Python include files to use CARGO_HOST_CONFIG_VARS /
  CARGO_PKG_CONFIG_VARS

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 15:50:23 +08:00
Jeffery To
853c9c9e86
rust: Move CARGO_HOME to $(DL_DIR)/cargo
As CARGO_HOME mainly functions as a download and source cache[1], moving
it into $(DL_DIR) allows it to persist and be reused between different
buildroots/sdks (when DL_DIR is set to a custom/external location).

[1]: https://doc.rust-lang.org/cargo/guide/cargo-home.html

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 15:50:23 +08:00
Jeffery To
5c5123f0f6
rust: Move cargo config options into environment variables
This also:

* Modify the "release" profile in place of adding the "stripped" profile

  Only the profile for target is modified; there are no file size
  constraints for host.

* For host, build with the "release" profile

* For target, build with either the "dev" or "release" profile based on
  CONFIG_DEBUG

There is no environment variable to specify the "strip" option, but
enabling this option is not necessary as the build system will already
strip binaries based on CONFIG_NO_STRIP / CONFIG_USE_STRIP /
CONFIG_USE_SSTRIP.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 15:50:23 +08:00
Jeffery To
49aaf19c65
rust: Install to $(STAGING_DIR)/host
This allows rustc/cargo/etc to be called without having to set PATH, as
$(STAGING_DIR)/host/bin is already in PATH.

This also fixes CARGO_HOME not being set during Host/Configure and
Host/Compile.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 15:50:22 +08:00
Jeffery To
855623d8cc
rust: Improve Host/Install speed
* Compress dist archives with gzip instead of xz; gzip is faster to
  compress and decompress

* Use a for loop instead of calling find to extract archives

* Use libdeflate's gzip to decompress instead of gzip

* Limit search for install scripts to top level of extracted archives

This also runs the install scripts with bash instead of sh, in
accordance with the shebang lines inside the scripts.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 15:50:22 +08:00
Jeffery To
35768bf31e
rust: Cache bootstrap downloads to $(DL_DIR)/rustc
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 15:50:22 +08:00
Jeffery To
d24095b8fc
rust: Add RUST_HOST_FEATURES for host builds
Features to be enabled for host may not be the same as those for target.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 15:50:22 +08:00
Jeffery To
a00dae9ed0
rust: Use build host Python
The build system already requires Python to be installed.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 15:50:21 +08:00
Jeffery To
7e8f7b28d7 python-zope-interface: Update to 6.1, refresh patch
This also updates the list of dependencies and adds a test.sh script for
the packages feed CI.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 09:09:31 +02:00
Fabian Lipken
325ecf9fac python-pycares: bump to 4.4.0
Signed-off-by: Fabian Lipken <dynasticorpheus@gmail.com>
2023-10-11 09:49:14 +08:00
Tianling Shen
d2f1665b06
Merge pull request #22343 from jefferyto/python-3.11.6
python3: Update to 3.11.6, refresh patches
2023-10-11 09:48:04 +08:00
Philip Prindeville
a02cd494e3
Merge pull request #22203 from pprindeville/perl-text-csv_xs-update-1.52
Perl text csv xs update 1.52
2023-10-10 16:02:41 -05:00
Philip Prindeville
d359a32d48 perl-text-csv_xs: Update to 1.52
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2023-10-10 14:44:00 -06:00
Jeffery To
2aba43afe9
python3: Update to 3.11.6, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-09 09:20:50 +08:00
Jianhui Zhao
e65aed298c lua-eco: update to 3.0.1
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2023-10-08 14:08:00 +03:00
Jeffery To
a8374204bb
golang: Update to 1.21.2
Includes fix for CVE-2023-39323 (cmd/go: line directives allows
arbitrary execution during build).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-07 20:04:12 +08:00
Jeffery To
f53a2ea2fb
Merge pull request #22306 from cotequeiroz/python3-rebuild
python3: avoid unnecessary rebuilds
2023-10-07 18:57:01 +08:00
Alexandru Ardelean
3b9abf7836
Merge pull request #22301 from cotequeiroz/pymysql_sha256
pymysql: add meta-package for sha256 support
2023-10-06 09:34:00 +03:00
Jeffery To
00841f9873 python-twisted: Update to 23.8.0, rework patches
The package changed to the hatchling build backend.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-05 14:37:27 -07:00
Eneas U de Queiroz
79b173a0c5
pymysql: add meta-package for sha256 support
Replace the PYTHON3_PYMYSQL_SHA_PASSWORD_SUPPORT option, which is
causing circular dependencies, with a meta-package that installs both
python3-pymysql and python3-cryptography.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-10-05 15:52:07 -03:00
Michael Heimpold
be750f8188
Merge pull request #22290 from mhei/php8-update-to-8.2.11
php8: update to 8.2.11
2023-10-05 07:24:27 +02:00
Eneas U de Queiroz
c230d7bd7f
python3: avoid unnecessary rebuilds
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 <cotequeiroz@gmail.com>
2023-10-04 16:52:27 -03:00
Amnon Paz
2a4d2e8c9d lua-openssl: Update to version 0.8.5-1
Signed-off-by: Amnon Paz <pazamnon@gmail.com>
2023-10-03 17:17:38 -07:00
Jeffery To
78bcdd0fd1 python-packaging: Update to 23.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-03 16:55:10 -07:00