<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/blocktrron/package/libs, branch master</title>
<subtitle>Staging tree of David Bauer</subtitle>
<id>https://git.openwrt.org/openwrt/staging/blocktrron/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/blocktrron/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/'/>
<updated>2026-11-16T10:59:17Z</updated>
<entry>
<title>mbedtls: select the prerequisites of the EC-JPAKE key exchange</title>
<updated>2026-11-16T10:59:17Z</updated>
<author>
<name>Christian Glombek</name>
</author>
<published>2026-08-02T22:47:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=13fc2e4e4b592a612146b035611f721b88183fcd'/>
<id>urn:sha1:13fc2e4e4b592a612146b035611f721b88183fcd</id>
<content type='text'>
Enabling MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED currently adds no cipher suite
at all. A build with the option on offers the same 26 suites as a build with
it off.

mbedTLS defines exactly one EC-JPAKE cipher suite,
TLS-ECJPAKE-WITH-AES-128-CCM-8, and its entry in ssl_ciphersuites.c is also
guarded by MBEDTLS_SSL_HAVE_AES and MBEDTLS_SSL_HAVE_CCM, which
config_adjust_legacy_crypto.h derives from MBEDTLS_AES_C and MBEDTLS_CCM_C
while MBEDTLS_USE_PSA_CRYPTO is off, as it is here. With MBEDTLS_CCM_C left
at its default the suite is compiled out, so the option enables handshake
code that nothing can negotiate.

Select the symbols the option needs, the same way MBEDTLS_SSL_PROTO_TLS1_3
already selects the ones it needs:

- MBEDTLS_AES_C is default y, so it only guards against a configuration that
  turns it off.
- MBEDTLS_CCM_C is the one the suite is missing today, and it is default n.
- MBEDTLS_ECP_DP_SECP256R1_ENABLED is default y as well, but turning it off
  is worse than a missing suite: check_config.h fails the build outright,
  because mbedTLS' EC-JPAKE is fixed to that curve.

The default build does not change: MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED stays
default n, so none of the selects fire. For someone who has enabled EC-JPAKE
this increases the size of libmbedcrypto.so by about 4096 bytes
(arm_cortex-a9_vfpv3-d16, stripped as packaged), all of it MBEDTLS_CCM_C; the
other two are already on in a default build:

Without:
352395 libmbedcrypto.so.3.6.6

With:
356491 libmbedcrypto.so.3.6.6

libmbedtls.so.3.6.6 and libmbedx509.so.3.6.6 are unchanged in size.

Signed-off-by: Christian Glombek &lt;c.glombek@cosa.systems&gt;
Link: https://github.com/openwrt/openwrt/pull/24544
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>ncurses: Install terminfo database again</title>
<updated>2026-11-04T20:27:26Z</updated>
<author>
<name>Charlie Jenkins</name>
</author>
<published>2026-11-04T06:47:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=558a82c913e77e74e42feb400cdf2888317757aa'/>
<id>urn:sha1:558a82c913e77e74e42feb400cdf2888317757aa</id>
<content type='text'>
When pkg-config is not installed on the system and the openwrt
pkg-config has been compiled, the openwrt pkg-config will be invoked to
find the ncurses libraries to link against scripts/configs/mconf for
"make menuconfig". The openwrt pkg-config provides the path
-L/path/to/openwrt/staging_dir/hostpkg/lib, so if the openwrt ncurses
package has been built, the openwrt ncurses library will be what
scripts/configs/mconf gets linked against.

Commit 036016036e62 ("ncurses: Skip terminfo database install on host")
removed the terminfo database because on systems where the host has
pkg-config installed, the database attempted to install at /usr/lib and
would fatally fail on ncurses versions above 6.5. This is fine on
systems with pkg-config since scripts/configs/mconf will get dynamically
linked against the system's ncurses and use the system's terminfo
database. However, on systems where the host does not have pkg-config
installed and the ncurses package has been built and the pkg-config
package has been built, scripts/configs/mconf will get statically linked
against the ncurses package that no longer has a terminfo database,
causing a failure similar to:

$ make menuconfig
ncurses: cannot initialize terminal type ($TERM="xterm-256color"); exiting

To resolve this, pass the staging directory to host ncurses configure
such that the terminfo database will be installed into the correct
location regardless of the system's presence of pkg-config, instead of
skipping the installation.

Fixes: 036016036e62 ("ncurses: Skip terminfo database install on host")
Reported-by: Hannu Nyman &lt;hannu.nyman@iki.fi&gt;
Reported-by: Edoardo Pinci &lt;epinci@outlook.com&gt;
Tested-by: Hannu Nyman &lt;hannu.nyman@iki.fi&gt;
Signed-off-by: Charlie Jenkins &lt;thecharlesjenkins@gmail.com&gt;
</content>
</entry>
<entry>
<title>libubox: update to Git HEAD (2026-11-03)</title>
<updated>2026-11-04T01:32:34Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2026-11-03T00:19:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=3119b579027c07d19d20be9116247a6ef723ba23'/>
<id>urn:sha1:3119b579027c07d19d20be9116247a6ef723ba23</id>
<content type='text'>
f9163076e12d uloop: fill one event entry per descriptor on kqueue
6b4394f900af uloop: report a hangup on kqueue as an error, like epoll
ff8db08443b0 uloop: fix edge trigger on kqueue
531dbb03cbfa uloop: report a full socket hangup on kqueue as an error
da2d205a5cf3 uloop: run kqueue interval callbacks after the events are collected
20bea2ba777d blobmsg_json: avoid out-of-bounds read on non-extended attributes
a396f38a8568 uloop: use volatile sig_atomic_t for uloop_cancelled and uloop_status

Link: https://github.com/openwrt/openwrt/pull/26428
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>tools/sccache: add sccache Rust compiler cache</title>
<updated>2026-10-30T10:06:08Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-10-22T22:23:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=a1788e6156cf4541aaae31191b693d2008c79541'/>
<id>urn:sha1:a1788e6156cf4541aaae31191b693d2008c79541</id>
<content type='text'>
RUST_SCCACHE builds sccache 0.18.0 from a vendor tarball and makes it
the RUSTC_WRAPPER of the cargo builds of host tools, target packages
and libstd-rust. For target packages, scripts/rust-target-wrapper.sh
runs it in turn. The option sits next to CCACHE and is available with
any Rust toolchain of the build system. The packages feed defines
RUST_SCCACHE as well, without a dependency, and Kconfig merges both
definitions, so the tools and the cargo variables check for a Rust
toolchain once more.

sccache is built without default features: the local disk cache stays,
the remote storage backends and their HTTP and TLS stacks are left out,
so the build needs no host library. sccache needs rustc to build, so
the rustc build from source and the sccache build run unwrapped.

sccache keeps its cache and configuration in $(TOPDIR)/.sccache, or in
RUST_SCCACHE_DIR when set, and its server listens on a socket in
$(TMP_DIR), so that each tree has a server of its own. distclean
removes .sccache, and the SCCACHE_* variables of the environment are
unexported.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;

</content>
</entry>
<entry>
<title>build: add Rust package build helpers</title>
<updated>2026-10-30T10:06:08Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-10-08T10:21:08Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=32f1c26eb631b16b4184ba54d267a3984c8072d0'/>
<id>urn:sha1:32f1c26eb631b16b4184ba54d267a3984c8072d0</id>
<content type='text'>
Add rust-package.mk for target packages written in Rust. The Cargo
environment carries the target triple, CPU flags, the C and C++ flags
for cc-rs, the linker and the ABI-specific sysroot of libstd-rust,
while native build scripts and proc macros keep the host sysroot and
linker. Builds run in the crate's working directory with an explicit
target and offline from the vendor tarball; with a source tree override
(git-src, USE_SOURCE_DIR), which has none, Cargo fetches the locked
crates. Target packages depend on libstd-rust at build time and track
its configuration inputs for rebuilds.

rustc runs the linker with arguments of its own, without TARGET_LDFLAGS.
The linker selection and the -z options that hardening.mk and
package.mk set for every package are passed to rustc, for packages and
for libstd-rust.

When the target triple is the build host's, cc-rs takes the host
compiler for target C code as well. For that triple the C and C++
compiler of cc-rs is scripts/rust-cc-wrapper.sh, linked into
$(STAGING_DIR_HOST)/bin by tools/rust. It runs the target compiler with
the target flags for build scripts whose OUT_DIR lies in the target
triple's directory, and the host compiler for the others.

RUST_PREFER_DYNAMIC is available with any Rust toolchain, controls the
default userspace standard-library linkage and defaults to shared
linking. Packages can override it. Release builds use LTO either way;
rustc runs LTO next to -Cprefer-dynamic only with the unstable
-Zdylib-lto. RUST_PKG_DEPENDS carries the architecture dependencies
and, with shared linking, the libstd-rust runtime dependency. For
packages that keep the default, that dependency is conditional on
RUST_PREFER_DYNAMIC, as .config is not read while package metadata is
collected.

Release builds emit no unwind tables and take the size options of
unstable rustc that libstd-rust is built with: panics without location,
derived Debug output reduced to type names and, with
RUST_PANIC_IMMEDIATE_ABORT, -Cpanic=immediate-abort. Permitting unstable
options for every crate with RUSTC_BOOTSTRAP=1 changes the code of
dependencies: the build scripts of anyhow, thiserror and proc-macro2
then detect unstable features and use them.
scripts/rust-target-wrapper.sh, the RUSTC_WRAPPER of package builds,
adds the options, and -Zdylib-lto with a shared libstd, only to the
target crates cargo compiles, recognised by --target, -C metadata and
--error-format=json, and permits unstable options for that crate alone.
Build scripts and their probes see neither. A package keeps panic
locations with RUST_PKG_LOCATION_DETAIL:=1 and selects the Debug output
with RUST_PKG_FMT_DEBUG. None of this applies with CONFIG_DEBUG.
Packages build the release profile, as maturin, CMake and autotools
projects do, and CONFIG_DEBUG gives it the settings of the dev profile,
ahead of the profile settings of the package. Build paths are mapped out
of packages as out of libstd-rust.

Without a Rust toolchain of the build system, Rust packages build with
rust/host of the packages feed, which installs to $(STAGING_DIR)/host,
so that packages can move from the Rust support of the packages feed
one at a time. RUSTC and CARGO point there, there is neither a sysroot
of libstd-rust nor a shared libstd, the mips64 triples are those its
std is built for, and on the build host's triple the target linker is
set through the Cargo variable. The build dependencies, on libstd-rust
or rust/host, follow USE_RUST_TOOLCHAIN in the package metadata, also
for host builds through rust-host-build.mk. After a switch from None to
a Rust toolchain, the cargo of rust/host still comes first in PATH, so
the help of the toolchain choice names its clean-up.

The file is derived from lang/rust in the packages feed by Luca Barbato
and Donald Hoskins.

Reported-by: Andre Heider &lt;a.heider@gmail.com&gt;
Co-developed-by: Brian Redbeard &lt;redbeard@dead-city.org&gt;
Signed-off-by: Brian Redbeard &lt;redbeard@dead-city.org&gt;
Co-developed-by: Aditya Nugraha &lt;vortexilation@gmail.com&gt;
Signed-off-by: Aditya Nugraha &lt;vortexilation@gmail.com&gt;
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>libstd-rust: build and package the Rust standard library</title>
<updated>2026-10-30T10:06:08Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-10-08T10:21:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=db310ff0fb5db94135f43be4f50536f0d033b476'/>
<id>urn:sha1:db310ff0fb5db94135f43be4f50536f0d033b476</id>
<content type='text'>
Build the sysroot crate with the selected Cargo and rustc, using the
source tarball's vendored crates and shared target CPU flags. Stage the
rlibs and shared library through normal package-owned target staging,
and include that sysroot in the SDK.
Separate Cargo output by ABI identity to keep dependency artefacts from
different configurations in their own build directories.

Name the shared library and package ABI from compiler, source, target
and build configuration inputs, with configuration changes triggering
a rebuild. Declare libgcc as a runtime dependency for libgcc_s.so.1.

Release builds optimise for size, abort on panic and emit no unwind
tables. They also take the size options of unstable rustc, which the
sysroot build permits anyway: panics carry no location
(-Zlocation-detail=none) and derived Debug output is reduced to type
names (-Zfmt-debug=shallow). RUST_PANIC_IMMEDIATE_ABORT, on by default,
builds with -Cpanic=immediate-abort and without the panic-unwind
feature: a panic stops the program at once, without formatting a
message. rustc requires the same panic strategy for all crates of a
program, the standard library included, so this is a build-wide option.
Debug builds retain unwinding, panic messages and full Debug output.

Build paths are mapped out of the library as iremap in rules.mk does
for C, unless CONFIG_DEBUG is set without
CONFIG_REPRODUCIBLE_DEBUG_INFO. The map stays out of the inputs of the
ABI identity, which would otherwise depend on the build path.

rust-values.mk maps the OpenWrt target to its Rust target triple and CPU
flags; the mapping is derived from lang/rust in the packages feed by
Luca Barbato and Donald Hoskins. The mips64 ABI comes from
CONFIG_MIPS64_ABI, which every mips64 configuration sets, and n64 maps
to the muslabi64 and gnuabi64 triples. These are hard-float, so
soft-float mips64 with musl uses mips64-openwrt-linux-musl, the
soft-float n64 target of rustc, and the other soft-float mips64 and
mips64el configurations, which have no Rust target, get no Rust
packages. The e500v2 of mpc85xx has no FPU but shares the hard-float
powerpc triple, whose hard-float feature is turned off with
CONFIG_SOFT_FLOAT. When the target triple is the build host's, as for
x86_64 and aarch64 glibc targets, Cargo links build scripts with the
target linker as well but keeps target rustflags off them, so the target
linker is passed as a rustflag in that case.

include/scan.mk rescans the package metadata when an include/rust-*.mk
file changes, as for include/package*.mk.

Co-developed-by: Brian Redbeard &lt;redbeard@dead-city.org&gt;
Signed-off-by: Brian Redbeard &lt;redbeard@dead-city.org&gt;
Co-developed-by: Aditya Nugraha &lt;vortexilation@gmail.com&gt;
Signed-off-by: Aditya Nugraha &lt;vortexilation@gmail.com&gt;
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>libffi: update to 3.8.0</title>
<updated>2026-10-29T11:26:24Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-10-25T14:17:03Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=2777161847b418286c465a0d788ac11ccf9dd514'/>
<id>urn:sha1:2777161847b418286c465a0d788ac11ccf9dd514</id>
<content type='text'>
Bump libffi from 3.4.7 to 3.8.0 and backport fixes for complex type
handling and big-endian closure returns.

All patches are upstream commits. Patches 001-004 predate the complex
type work: they fix big-endian sub-word argument offsets in ARM
closures, handle page size lookup failure in closures, and correct
_Complex long double on powerpc64 where long double is 64 bits or
follows the ABI's long double layout.

Patches 005-022 are, in upstream merge order, the complex type fixes
that landed after the 3.8.0 release across x86, powerpc64, powerpc,
mips, riscv, loongarch and arm, together with the testsuite coverage
that exercises them.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>libjson-c: backport userdata cleanup fixes</title>
<updated>2026-10-20T10:35:14Z</updated>
<author>
<name>Satoshi Ikeuchi</name>
</author>
<published>2026-10-19T14:07:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=102f4eebca24a5205aad14c183401d7799862e4d'/>
<id>urn:sha1:102f4eebca24a5205aad14c183401d7799862e4d</id>
<content type='text'>
Backport two upstream json-c fixes for object cleanup in version 0.19.
Clear the user-delete callback after calling it to avoid a second call
and double-free. Clear userdata so iterative cleanup cannot interpret
application data as a parent-object pointer.

Include the upstream regression test and its expected output. Bump the
package release to make the fixes available in updated packages.

Upstream: https://github.com/json-c/json-c/commit/3aa996b5b6bd96c29f2c6da98da33c3fb3d13038
Upstream: https://github.com/json-c/json-c/commit/0c3a5a1994ed6b5957d2e878fc1298ce9aa09b3f
Signed-off-by: Satoshi Ikeuchi &lt;satosan.ikm@gmail.com&gt;
</content>
</entry>
<entry>
<title>libffi: add package</title>
<updated>2026-10-19T10:22:04Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-10-19T10:18:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=9b835ec6264f3364a22a9c67909f16bf5e5328d1'/>
<id>urn:sha1:9b835ec6264f3364a22a9c67909f16bf5e5328d1</id>
<content type='text'>
The ucode ffi module needs libffi. Move the package from the packages
feed (commit 3b7cdf03a6f2) without changes, so that the core tree
provides it.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>Revert "libjson-c: free a container object outside of assert()"</title>
<updated>2026-10-16T14:33:09Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-10-16T14:32:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=71e991a8c01af94fb1fd6d6e4e2d259ce0ff36da'/>
<id>urn:sha1:71e991a8c01af94fb1fd6d6e4e2d259ce0ff36da</id>
<content type='text'>
This reverts commit f6a2ff7c24950c61b6fcb9db098d7f091f036c1c.
This was fixed already.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
</feed>
