<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/xback/tools, branch master</title>
<subtitle>Staging tree of Koen Vandeputte</subtitle>
<id>https://git.openwrt.org/openwrt/staging/xback/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/xback/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/'/>
<updated>2026-11-26T16:25:20Z</updated>
<entry>
<title>tools/ninja: support the pipe-based jobserver of GNU Make</title>
<updated>2026-11-26T16:25:20Z</updated>
<author>
<name>Koen Vandeputte</name>
</author>
<published>2026-11-04T10:32:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=aa8a2829ab842b7955cf3f8870725c0eeaca97f1'/>
<id>urn:sha1:aa8a2829ab842b7955cf3f8870725c0eeaca97f1</id>
<content type='text'>
Since the update to 1.13.1, ninja uses its own jobserver client instead
of the patch OpenWrt carried. That client only implements the fifo form
of GNU Make 4.4 and later. GNU Make 4.3, the version of Ubuntu 22.04 and
24.04 and of Debian 12, passes its jobserver as a pair of pipe
descriptors, which ninja ignores with "Pipe-based protocol is not
supported!". Every ninja build then runs as many jobs as there are CPUs
plus two, whatever -j the build was started with: tools/cmake and all
CMake and Meson packages.

Building several trees at -j6 on a 32 thread host ran 34 compilers per
tree in tools/cmake, filling 30 GB of RAM and 39 GB of swap.

Support the pipe form on Linux: open new non-blocking file descriptions
of the inherited pipe through /proc/self/fd, so that make's own
descriptors stay blocking. With make -j4, tools/cmake now runs at most
4 compilers at once, and two ninjas under one make share its 4 slots.

Assisted-by: Claude Opus 5.5
Signed-off-by: Koen Vandeputte &lt;koen.vandeputte@citymesh.com&gt;
</content>
</entry>
<entry>
<title>mac80211: drop brcmsmac</title>
<updated>2026-11-23T08:43:36Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2026-10-28T20:23:43Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=dd441bca35b8a9d6f30374f98ce2280edb993c25'/>
<id>urn:sha1:dd441bca35b8a9d6f30374f98ce2280edb993c25</id>
<content type='text'>
Nothing selects kmod-brcmsmac by default. Rosen Penev reports that on
the RT-N16 it only works with a firmware whose version check is patched
by hand [1], and the bcm47xx target uses b43 for these SoCs.

Remove the driver, the option that cuts its firmware out of broadcom-wl
and the brcmsmac only regulatory patch. BCM4313 cards lose their driver,
kmod-b43 has no LCN-PHY support.

Checked with CONFIG_ALL defconfig on bcm47xx, bcm53xx and x86. There
are no new warnings, and b43, brcmfmac and brcmutil are still built.

[1] https://github.com/openwrt/openwrt/pull/26267#issuecomment-6475312956

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/26267
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/cmake: pass zlib and liblzma paths to bootstrap</title>
<updated>2026-11-12T11:09:53Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2026-11-11T09:15:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=30a23ae451602aa8cdaa8532c19855162c3e2de1'/>
<id>urn:sha1:30a23ae451602aa8cdaa8532c19855162c3e2de1</id>
<content type='text'>
Instead of carrying 110-liblzma.patch and 140-zlib.patch, which make
FindLibLZMA and FindZLIB search with pkg-config, pass the staging
include and library paths to CMake's bootstrap script. This avoids
refreshing the patches on every CMake update.

LIBLZMA_INCLUDE_DIR, LIBLZMA_LIBRARY, ZLIB_INCLUDE_DIR and ZLIB_LIBRARY
are cache variables, so setting them skips the search, and CMake links
the static libraries from staging instead of the host ones.

This replaces the patches introduced in 3848cf458ef9 ("tools/cmake:
Build without some included libs").

Tested on Linux with the host zlib and liblzma development packages
installed: cmake, ctest and cpack link the staging libraries.

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/26619
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/libressl: update to 4.2.3</title>
<updated>2026-11-11T06:29:25Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2026-10-26T12:58:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=d068e4608f83361fb4a6ae8a8cc4b46d81219bbe'/>
<id>urn:sha1:d068e4608f83361fb4a6ae8a8cc4b46d81219bbe</id>
<content type='text'>
4.2.2 fixes an off-by-one in the X.509 verifier depth checking, an OCSP
responder authorization bypass in libtls and several DTLS issues, and
adds support for building on macOS 27. 4.2.3 removes the eMudhra emSign
ECC Root CA - G3 from cert.pem.

Release notes:
https://github.com/libressl/portable/releases/tag/v4.2.2
https://github.com/libressl/portable/releases/tag/v4.2.3

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/26211
Signed-off-by: Nick Hainke &lt;nick.hainke@posteo.de&gt;
</content>
</entry>
<entry>
<title>tools/ccache: update to 4.14.2</title>
<updated>2026-11-08T16:40:02Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2026-10-26T12:58:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=7360c0cf0bd451dd520b3df23ce085f5ff3f0bc2'/>
<id>urn:sha1:7360c0cf0bd451dd520b3df23ce085f5ff3f0bc2</id>
<content type='text'>
Refresh the patch. 4.14 removes the cpp_extension option, which is not
used in the tree.

Release Notes:
- https://ccache.dev/releasenotes.html#_ccache_4_13_4
- https://ccache.dev/releasenotes.html#_ccache_4_13_5
- https://ccache.dev/releasenotes.html#_ccache_4_13_6
- https://ccache.dev/releasenotes.html#_ccache_4_14
- https://ccache.dev/releasenotes.html#_ccache_4_14_1
- https://ccache.dev/releasenotes.html#_ccache_4_14_2

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/26212
Signed-off-by: Nick Hainke &lt;nick.hainke@posteo.de&gt;
</content>
</entry>
<entry>
<title>tools: fakeroot: fix build on musl host</title>
<updated>2026-11-06T17:53:14Z</updated>
<author>
<name>Shine- GH</name>
</author>
<published>2026-11-04T14:02:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=21d948fc5fb0f637dbf0bab8742e34c87460fc7a'/>
<id>urn:sha1:21d948fc5fb0f637dbf0bab8742e34c87460fc7a</id>
<content type='text'>
fakeroot 2.1.3 fails to compile on MUSL based build hosts, such as Alpine
Linux, due to lack of stat64 support. This has already been fixed upstream
(labelled as "NetBSD fixes"), but no new version has been released yet that
contains the fix.

Backport the relevant single commit.

Fixes: 8b5702e32810f086f8b20a8b080a858e0b607e92
Signed-off-by: Shine- GH &lt;4c.fce2@proton.me&gt;
Link: https://github.com/openwrt/openwrt/pull/26478
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/patch: update to 2.8.1</title>
<updated>2026-11-03T11:30:15Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2026-10-26T12:58:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=1356b3ab32ab73b2f4f031ace94d6f58929e2edd'/>
<id>urn:sha1:1356b3ab32ab73b2f4f031ace94d6f58929e2edd</id>
<content type='text'>
This fixes creating files outside of the working directory with a
crafted patch, a NULL pointer dereference on bad hunks and an infinite
loop on null ranges.

Fixes: CVE-2026-56288
Fixes: CVE-2026-56289
Fixes: CVE-2026-115207

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/26210
Signed-off-by: Jonas Jelonek &lt;jonas@jonasjelonek.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/xback/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>tools/meson: add rust entry to meson cross file</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/xback/commit/?id=0508180cc788356f5cdf563bfbab9318960c2a81'/>
<id>urn:sha1:0508180cc788356f5cdf563bfbab9318960c2a81</id>
<content type='text'>
Add target and native Rust compiler entries when a package includes
rust-values.mk. Its include guard tells, as the packages feed has a
rust-values.mk of its own, which python3-host.mk includes for every
Python package. The target entry carries the triple, CPU flags,
target-owned sysroot and standard-library linkage choice; native probes
use the host sysroot.

Supply bindgen with the toolchain sysroot and selected LLVM paths.
Register the target libstd build dependency and configuration inputs
for Rust consumers.

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/xback/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>
</feed>
