`puts` needs to be writable for the cli code path.
Fixes the error:
"Unable to compile ucode handler: Syntax error: Invalid assignment to
constant 'puts'"
since ucode commit
ddb06a19 "compiler: make strict mode function names constant bindings"
Signed-off-by: Andre Heider <a.heider@gmail.com>
As uci config file editing is an essential functionality for editors
in OpenWrt context, change nano packaging:
* make the old 'plus' variant to be the new default 'nano' package,
with syntax highlighting enabled for uci, ucode, sh, javascript and
patch files.
* define a new minimal nano-tiny variant for the minimal size.
* adjust nanorc by removing the old 'extra' dir include,
copy all nanorc files to the same dir. (Still create 'extra' dir
to avoid problem with old nanorc files.)
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Some properties may not be available, properly guard them.
Fixes error like:
error running collector 'wifi':
left-hand side expression is null
In this case it corresponds to a link with a signal too weak.
iwinfo phy0-mesh0 assoclist
xx:xx:xx:xx:xx:xx -89 dBm / -107 dBm (SNR 18) 90 ms ago
RX: unknown 183148 Pkts.
TX: unknown 53985 Pkts.
expected throughput: unknown
Co-authored-by: OpenWrt AI review account <openwrt-ai@hauke-m.de>
Signed-off-by: Samuele Longhi <agave@dracaena.it>
Specify correct make targets instead of source patching. Avoid noisy
gitdir lookup failures triggered repeatedly by the podman build system.
Follow upstream's switch from slirp4netns to passt.
Supply an upgraded v2-format registries.conf with entries matching those
previously pulled from the old Fedora Atomic vendor repo. Though we
retain them for now, these entries are specific to RedHat products and
are likely not meaningful long-term defaults for OpenWrt.
Link: https://github.com/podman-container-tools/podman/releases/tag/v6.1.2
Signed-off-by: Gary Dotzler <geldot@protonmail.com>
Reduce installed footprint by ~30 MiB: The main podman executable
already includes podman-remote via its --remote flag, so there is never
a reason to install both binaries simultaneously. Provide a tiny
podman-remote wrapper script for compatibility instead.
This commit does not introduce a subpackage for the standalone
podman-remote binary though we can do so in future if a use-case arises.
Signed-off-by: Gary Dotzler <geldot@protonmail.com>
The KERNEL_DIRECT_IO option was removed from OpenWrt in 2017 together
with the out-of-tree hack to disable direct I/O, and direct I/O is
always available. Selecting the undefined symbol has no effect.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
KERNEL_MEMCG_SWAP_ENABLED and KERNEL_CFQ_GROUP_IOSCHED refer to kernel
symbols that no longer exist (MEMCG swap accounting is no longer a
separate option, and CFQ was removed in Linux 5.0). The selects have
no effect.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
KERNEL_MEMCG_KMEM and KERNEL_DEVPTS_MULTIPLE_INSTANCES refer to kernel
symbols that no longer exist: kernel memory accounting is always part of
MEMCG, and devpts always supports multiple instances. The selects have
no effect.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
With gnupg removed, let gnupg2, gpgv2 and gnupg2-utils provide gnupg,
gpgv and gnupg-utils, so apk can replace an installed GnuPG 1.4 with
GnuPG 2 on upgrade.
gnupg2 already installs /usr/bin/gpg and /usr/bin/gpgv as alternatives,
and GnuPG 2 migrates a GnuPG 1.x secret keyring on first use.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
GnuPG 1.4 is the legacy branch; its last release, 1.4.23, dates from
June 2018. gnupg2 covers its uses, and fwknop, the last package
depending on it, now uses gnupg2.
The next commit lets gnupg2 provide gnupg, so existing installations
are upgraded to it.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
The rootfs archive the OCI tests unpack is installed among the test
binaries in /usr/libexec/oci-runtime-test, where the packages CI
expects every file to be executable, so the generic tests of
oci-runtime-tests fail on every architecture that builds it. Install
the archive in /usr/share/oci-runtime-test and link it from its old
place, where test harnesses copy it into the test directory from.
Fixes: 6b9fdf2e77 ("oci-runtime-tools: add package")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
The hugetlb tests fail on kernels without huge pages or the hugetlb
cgroup controller, and the rlimit test sets limits of 4 GiB and more
that a 32-bit kernel turns into RLIM_INFINITY, so they fail against
every runtime on most OpenWrt targets. Carry the pending upstream
fixes that skip the hugetlb tests on such kernels, report a refused
hugetlb container as a failed test and leave out the rlimits the host
cannot hold.
Link: https://github.com/opencontainers/runtime-tools/pull/823
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
acl 2.4.0 declares acl_get_file_at(), acl_set_file_at() and
acl_delete_def_file_at() in sys/acl.h, which clash with the static
helpers of the same names in tar's src/xattrs.c and break the build
with POSIX ACL support. Backport the upstream commit that renames the
helpers with a tar_ prefix; no tar release contains it yet.
Fixes: 0f5b47363e ("acl: update to 2.4.0")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Most cgroup tests fail on OpenWrt because the test suite can only read
cgroup v1, and several assertions contradict the runtime-spec or depend
on the test host. Carry the fixes pending upstream in
opencontainers/runtime-tools until they are merged: #812 (cgroup v2
reader), #813 (lifecycle assertions), #814 (pids limit by value), #816
(device rules checked from inside the container), #820 (misc_props
process), #821 (blkio rules on an existing block device) and #822
(RLIMIT_NOFILE read from a child process).
The default seccomp profile of the test configurations lists only the
32-bit time syscalls. On 32-bit targets the Go runtime of runtimetest
uses futex_time64 on Linux 5.1 and later, which the profile denies, so
runtimetest crashes inside every container and most tests report
nothing on i386. Add a patch allowing the time64 variant of every
syscall the profile already allows.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
- Major security and robustness improvements: fix CVE-2026-54369 and CVE-2026-54370
- New library functions: acl_get_file_at, acl_set_file_at, acl_delete_def_file_at
- API improvements and bug fixes: Remove libacl dependency on libattr
- Build system and code organization
- Test suite improvements
- Documentation updates
- Translation updates
- Add test-version.sh
Changelog: https://cgit.git.savannah.nongnu.org/cgit/acl.git/plain/doc/CHANGES
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
See the changelog for the complete list
- Many improvements to floating panes
- Layout strings now use a JSON subset format which includes floating panes
- Add support for themes and improve default colours
Changelog: https://raw.githubusercontent.com/tmux/tmux/3.8/CHANGES
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
uvol creates /tmp/run/uvol/.meta/apk as the database directory of apk's
uvol layer, but leaves it empty. apk only activates a layer other than
the root one when its world file can be read, so every package built
for that layer is refused as "masked in: layer" until something writes
the file. The container runtime keeps its global state in
/tmp/run/uvol/.meta/uxc, which only container packages ship, so on a
device without any of them that state cannot be stored.
Create an empty world file and the uxc directory when they are missing,
whenever .meta is created or adopted at boot.
uvol up on an LVM volume that is already active and registered with
blockd registers it again. blockd answers each registration with a
mount.add notification, so a consumer that brings volumes up from a
mount.add trigger, such as the container runtime, triggers itself again
without end. Return success for such a volume without registering it,
as the UBI backend already does for an active volume.
Fixes: 6772c0fe44 ("uvol: clean up paths and fix delayed startup")
Fixes: cb60600aec ("uvol: bump version to 1.1")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
See https://github.com/fwupd/fwupd/releases/tag/2.1.8
Remove backported patches which were adding support for
the MaxLinear MxL862xx switch family to 2.1.7 downstream.
Restore the glib2 host build dependency
src/meson.build calls gnome.compile_resources(), which resolves
glib_compile_resources from the staged gio-2.0.pc. glib2 rewrites that
variable to point into staging_dir/hostpkg, as a cross-built generator
cannot run on the build host, so fwupd has to build glib2/host. With
the dependency gone, meson only configures when an unrelated package
stages the host tools first, and otherwise fails with "tool variable
'glib_compile_resources' contains erroneous value".
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
One $(INSTALL_BIN) per binary, where several share a source directory.
Use brace expansion as the rest of the feed does. Packaged contents are
unchanged.
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
Upstream dropped the standalone hcidump tool, whose functionality has
lived inside btmon for years, so stop installing it; bluez-utils-btmon
covers it. Refresh 211-shared-gatt-helpers-Ignore-invalid-characteristic-
entries.patch, which otherwise applies with an offset of twelve lines,
and give 201-readline.patch and 202-fix-endianness.patch the git headers
the formality check asks for.
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
Run collectd in a VRF, using the procd 'vrf' parameter:
config globals 'globals'
option vrf '<dev>'
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Nick Hainke <vincent@systemli.org>
Changes:
- clear old retained topics when a topic translation is added
- configurable sensor offline time (sensor-offline-seconds)
- fix a buffer overflow and a crash on empty MQTT messages
- add --version option
- do not build the tests in the package (BUILD_TESTING=OFF)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FKXWPFfkJSBzsjL6umsjGD
Signed-off-by: Peter Liedholm <peterfromswe884@gmail.com>
liblzma.pc is generated by a make rule that expands $(libdir) and
$(includedir) to absolute paths, which OpenWrt's pkg-config wrapper
cannot redirect at the staging directory. Rewrite the staged copy with
SED instead of patching the template, as ~50 other packages here do.
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
tio embeds Lua for its scripting support, which is not optional. It
looks Lua up through pkg-config as lua-5.4, lua-5.3, lua-5.2, lua-5.1
and lua, in this order, with no option to select the version. The
package depends on lua (5.1), which tio has found as lua.pc so far.
Since lua5.4 stages lua-5.4.pc, tio finds Lua 5.4 first and links
liblua5.4 without depending on it.
Depend on liblua5.4, the version tio looks up first, instead of lua,
which is the documented preferred version anyway.
Only the library is needed; tio does not run the lua interpreter.
Signed-off-by: Mirko Vogt <mirko-openwrt@nanl.de>
duperemove is a simple tool for finding duplicated
extents and submitting them for deduplication. It
will de-dupe results on btrfs.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Keith T. Garner <kgarner@kgarner.com>
--enable-small builds only the resumable mode of the LZMA decoder and a
single-table CRC32/CRC64 without the architecture-specific CRC code.
Keep it for SMALL_FLASH targets and build the fast variants elsewhere.
xz -dc -T1 of a 32 MiB file (3.3 MiB .xz), median of 5: 966 -> 880 ms
on Cortex-A53, 813 -> 634 ms on Cortex-A72 in AArch32. liblzma grows by
11.5 KiB (aarch64) to 19.6 KiB (mips_24kc), compressed with xz.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
- Add interface trigger handling in watchcat.init
- Log when raw interface trigger is activated by any interface coming up
- Move helper functions to separate file
- Update Makefile to install new functions file
Closes: #30463
Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
We use shellcheck even though it is pedantic to assist in reducing
errors. Therefore, we add shellcheck directives to silence false
positives. We keep changes minimal as some shellcheck suggestions
result in watchcat failing to function properly.
Also make formatting shmt clean (using -ln=bash due to ash constructs
that shfmt 3.8.0 does not accept for posix shells including busybox).
Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
The package allocates a group named scanner with a dynamic id, while
openwrt.git's scanner-support package allocates it as gid 47. Two
different ids for one group name make the metadata scan fail.
Depend on scanner-support and pin the group to the same id. The hotplug
script stays here: it matches a scanner by vendor and product id against
the usbid lists this package ships, which scanner-support has no way to
do, and it already checks that the group exists before granting access.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
get_bootdev() identifies the boot disk for a root=PARTUUID=xxxxxxxx-NN
command line by reading the four-byte signature at offset 440 of each
block device, but renders it with %x per byte, so a byte below 0x10 comes
out as a single digit and the string is too short to ever match. A disk
whose signature is cf0a3161 yields "cfa3161", get_bootdev() returns null,
and every backend's init fails: uvol then reports no backend at all and
no volume can be created on a perfectly good volume group.
Pad each byte to two digits, as the GPT branch of the same function
already does.
Fixes: 6350c7bc63 ("uvol: replace with re-write in ucode")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>