aboutsummaryrefslogtreecommitdiff
path: root/lang
Commit message (Collapse)AuthorAge
* python3: Fix building C extensions with setuptoolsJeffery To2023-10-30
| | | | | | | | | | | | | | | | 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>
* rust: Fix compile error for mipsel_24kc+24kfJeffery To2023-10-30
| | | | | | | | | | | | | | | | | | | | | 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>
* rust: Fix compile error if build dir and DL_DIR on separate filesystemsJeffery To2023-10-30
| | | | | | | | | | | | | | | | | | | | | | | 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. 35768bf31e5867046874dc6fd0374ff8fe575da2 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: 35768bf31e58 ("rust: Cache bootstrap downloads to $(DL_DIR)/rustc") Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* php8-pecl-http: update to 4.2.4Michael Heimpold2023-10-30
| | | | Signed-off-by: Michael Heimpold <mhei@heimpold.de>
* Merge pull request #22505 from jefferyto/python-pip-23.3.1Alexandru Ardelean2023-10-30
|\ | | | | python-pip: Update to 23.3.1, redo/refresh patches
| * python-pip: Update to 23.3.1, redo/refresh patchesJeffery To2023-10-26
| | | | | | | | | | | | | | 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>
* | Merge pull request #22527 from mhei/php8-pecl-redis-update-to-6.0.2Alexandru Ardelean2023-10-30
|\ \ | | | | | | php8-pecl-redis: update to 6.0.2
| * | php8-pecl-redis: update to 6.0.2Michael Heimpold2023-10-28
| | | | | | | | | | | | Signed-off-by: Michael Heimpold <mhei@heimpold.de>
* | | Merge pull request #22528 from mhei/php8-pecl-xdebug-update-to-3.2.2Alexandru Ardelean2023-10-30
|\ \ \ | | | | | | | | php8-pecl-xdebug: update to 3.2.2
| * | | php8-pecl-xdebug: update to 3.2.2Michael Heimpold2023-10-28
| |/ / | | | | | | | | | Signed-off-by: Michael Heimpold <mhei@heimpold.de>
* / / python-trove-classifiers: Update to 2023.10.18Jeffery To2023-10-28
|/ / | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* / php8: update to 8.2.12Michael Heimpold2023-10-27
|/ | | | Signed-off-by: Michael Heimpold <mhei@heimpold.de>
* perl: add support for riscv64Zoltan HERPAI2023-10-22
| | | | | | Required by sifiveu and upcoming riscv targets. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* micropython-lib: move to PCRE2Christian Marangi2023-10-22
| | | | | | Add pending patch converting the package to PCRE2. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* pillow: bump to version 10.1.0Alexandru Ardelean2023-10-20
| | | | | | Add test.sh also. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
* node: Friday October 13 2023 Security ReleasesHirokazu MORIKAWA2023-10-17
| | | | | | | | | | | | | 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>
* rust: fix build with glibc, ARM and hard floatsDrew Young2023-10-16
| | | | | | | | | | | | | | | | | | 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>
* golang: Update to 1.21.3Jeffery To2023-10-15
| | | | | | | 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>
* Merge pull request #22393 from jefferyto/maturin-1.3.0Tianling Shen2023-10-15
|\ | | | | maturin: Update to 1.3.0, build as Python (host-only) package
| * maturin: Update to 1.3.0, build as Python (host-only) packageJeffery To2023-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | rust: update to 1.73.0Oskari Rauta2023-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | node: bump to v18.18.1Hirokazu MORIKAWA2023-10-14
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | python3-texttable: update to version 1.7.0Javier Marcet2023-10-14
| | | | | | | | Signed-off-by: Javier Marcet <javier@marcet.info>
* | python-websocket-client: update to 1.6.4Javier Marcet2023-10-14
|/ | | | | | | | | | | | - 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>
* luajit2: update to v2.1-20231006Javier Marcet2023-10-13
| | | | Signed-off-by: Javier Marcet <javier@marcet.info>
* python-setuptools-rust: Set cargo profile from environment variableJeffery To2023-10-11
| | | | | | | | | | | 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>
* rust: Set release profile settingsJeffery To2023-10-11
| | | | | | | | | | | | | | | | | | | | * 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>
* rust: Add option to use sccacheJeffery To2023-10-11
| | | | | | | | | 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>
* rust: Use make's jobserver when building packagesJeffery To2023-10-11
| | | | | | | | | | | | | | | | | | 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>
* rust: Consolidate cargo environment variablesJeffery To2023-10-11
| | | | | | | | | | | | | | | | | | | | | | | 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>
* rust: Move CARGO_HOME to $(DL_DIR)/cargoJeffery To2023-10-11
| | | | | | | | | | 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>
* rust: Move cargo config options into environment variablesJeffery To2023-10-11
| | | | | | | | | | | | | | | | | | | | | 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>
* rust: Install to $(STAGING_DIR)/hostJeffery To2023-10-11
| | | | | | | | | | 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>
* rust: Improve Host/Install speedJeffery To2023-10-11
| | | | | | | | | | | | | | | | * 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>
* rust: Cache bootstrap downloads to $(DL_DIR)/rustcJeffery To2023-10-11
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* rust: Add RUST_HOST_FEATURES for host buildsJeffery To2023-10-11
| | | | | | Features to be enabled for host may not be the same as those for target. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* rust: Use build host PythonJeffery To2023-10-11
| | | | | | The build system already requires Python to be installed. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* python-zope-interface: Update to 6.1, refresh patchJeffery To2023-10-11
| | | | | | | 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>
* python-pycares: bump to 4.4.0Fabian Lipken2023-10-11
| | | | Signed-off-by: Fabian Lipken <dynasticorpheus@gmail.com>
* Merge pull request #22343 from jefferyto/python-3.11.6Tianling Shen2023-10-11
|\ | | | | python3: Update to 3.11.6, refresh patches
| * python3: Update to 3.11.6, refresh patchesJeffery To2023-10-09
| | | | | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | Merge pull request #22203 from pprindeville/perl-text-csv_xs-update-1.52Philip Prindeville2023-10-10
|\ \ | |/ |/| Perl text csv xs update 1.52
| * perl-text-csv_xs: Update to 1.52Philip Prindeville2023-10-10
| | | | | | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* | lua-eco: update to 3.0.1Jianhui Zhao2023-10-08
| | | | | | | | Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
* | golang: Update to 1.21.2Jeffery To2023-10-07
| | | | | | | | | | | | | | Includes fix for CVE-2023-39323 (cmd/go: line directives allows arbitrary execution during build). Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | Merge pull request #22306 from cotequeiroz/python3-rebuildJeffery To2023-10-07
|\ \ | | | | | | python3: avoid unnecessary rebuilds
| * | python3: avoid unnecessary rebuildsEneas U de Queiroz2023-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge pull request #22301 from cotequeiroz/pymysql_sha256Alexandru Ardelean2023-10-06
|\ \ \ | | | | | | | | pymysql: add meta-package for sha256 support
| * | | pymysql: add meta-package for sha256 supportEneas U de Queiroz2023-10-05
| |/ / | | | | | | | | | | | | | | | | | | | | | 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>
* | | python-twisted: Update to 23.8.0, rework patchesJeffery To2023-10-05
| | | | | | | | | | | | | | | | | | The package changed to the hatchling build backend. Signed-off-by: Jeffery To <jeffery.to@gmail.com>