378 Commits
Author SHA1 Message Date
Daniel Golle 6917907d4d plymouth-theme-openwrt-demo: suit small hi-DPI panels
The theme was laid out and drawn with a 1080p screen in mind, and on a
small panel with a device scale above one it falls short.

The backdrop holding the logo, links and nodes is now allocated in
device pixels and drawn through a canvas scaled by the device scale, so
the static scene is as sharp as what is drawn on top of it. At scale 1
the texture matrix is the identity and plutovg keeps its plain blit.

The pictograms get a floor of 12 logical pixels and shrink only as far
as needed for the row to fit the screen width. The row is reserved for
that size and the logo and graph are laid out in the height left above
it; where the floor does not apply, the layout is unchanged.

In boot-up mode the backlight that the DRM panel references through its
backlight phandle is taken to zero before the first frame and faded in
over 1.5 s to 80% of its maximum, as full brightness lifts the black
background to grey. A panel carrying the bootloader-initialized
property already shows the bootloader's picture and is left alone. On
a backlight whose scale is not perceptual the ramp follows the CIE 1931
lightness curve pwm_bl uses for its own tables.

Nothing reports how far a system upgrade has got, so the upgrade modes
keep the whole graph and turn a spinner around the router node instead
of dismantling the graph on a timer, which would read as progress.
The pictograms stand for services coming up, so only boot-up mode
shows them. A router shuts down within a few seconds, so shutdown and
reboot take the graph down one level every 250 ms, leaves first, and
only the logo is left after three steps.

paint() walked every packet and pulse once per damaged rectangle, and
every packet and pulse damaged a rectangle of its own, so the cost of a
frame grew with the square of the packet count and was spent in script
loops rather than in pixels. A splash connecting to a running bus
received one packet per existing ubus object, without the cap
flow_spawn() observes, and dropped far below its frame rate. Damage is
now collected into one box per frame, paint() draws each packet once
with colours built when the packet is created, pulse rings are filled
as annuli where a stroke cost considerably more, and FLOW_CAP, lowered
to 8 as a handful of packets conveys activity as well as two dozen,
applies to packets launched by ubus objects too.

Fixes: 6aca04f334 ("plymouth-theme-openwrt-demo: add a demo theme for the ucode engine")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-11 18:23:56 +01:00
Daniel Golle 74c76563c7 plymouth-plugin-ucode: hand the display over and back
A splash shown by the plugin held the display until something told
plymouthd to let go, gave a waiting display client no way to know when
that happened, and crashed or lost its ubus link on changes of mode.

In boot-up mode, open the input event nodes present when the splash
starts and those procd announces later, and on the first key, button
or touch press send plymouthd the deactivate request over its own
socket. procd replaces /dev with a fresh tmpfs after preinit, where the
splash starts, so the nodes it creates cannot be watched for; its
hotplug.d scripts run for every input device once the node exists,
coldplugged ones included, and the one shipped here hands the node to
the plugin as a plymouth status update.

Publish a plymouth object whose status method reports whether the
splash holds the display, and hand procd a plymouth.release event
whenever it lets go, without waiting for the reply, so a service can
wait for it with a trigger; procd runs triggers for events it is
handed, not for broadcasts. Stop the frame timer on the way to idle
and start it again when plymouth redraws the splash after
reactivating, and drop the unused progress callback.

Clear the ucode VM after freeing it, as uc_vm_init() leaves
vm->registry pointing at the freed registry. Remove the object before
freeing the connection. Drop a connection whose ubusd went away from a
disconnect handler, since plymouth's event loop frees the watch
itself, keep the inotify wait on the ubus socket directory armed so a
restarted ubusd is picked up, and clear the ids libubus caches from
the previous ubusd before registering again.

Keep the splash up through sysupgrade: in stage2, copy plymouth's
files, plugins and ucode modules into the ramfs, take the display back
with plymouth-evict and switch to system-upgrade mode; in do_stage2,
start plymouthd from the ramfs. Schedule frames against a deadline
advancing by one interval, so a theme keeps its frame rate under load.

Fixes: 9ef83aa136 ("plymouth-plugin-ucode: add a scripted splash plugin for ucode")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-11 18:23:56 +01:00
Daniel Golle eb8e5b3614 plymouth: hand the display over and take it back
A deactivated splash kept flushing its displays from a timer. When the
shutdown sequence reactivated the daemon waiting since boot, whatever
had taken the display over still held DRM master, so the splash never
appeared, and the last frame gave way to the console during the final
kill. libudev-zero cannot tie a frame buffer device to its DRM card, so
every fbdev emulation of a DRM driver was driven as a second display.

Carry a patch that stops the frame timer while the splash is
deactivated. Add plymouth-evict, which stops every process holding a
KMS device other than plymouthd and waits until they are gone. A
process that belongs to a procd service is stopped through procd,
which applies the service's own term_timeout and does not respawn it,
and the wait ends on procd's instance.stop notifications; anything
else, and everything once ubus is gone as in sysupgrade's stage2, gets
SIGTERM directly. The shutdown action runs it, ignores rcS cancelling
the K script, and switches to shutdown mode before reactivating, so
the first frame back is already the shutdown splash.

Install plymouthd-fd-escrow, which keeps the last frame on the display
through the final kill, and install the DRM renderer alone, as the
splash is meant for devices with a KMS driver.

Fixes: 1a39b47dbd ("plymouth: add boot splash for KMS devices")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-11 18:23:56 +01:00
Daniel Golle 8d4551ceb2 kmscon: wait for the splash, add unifont, depend on evdev
Started while plymouth holds DRM master, kmscon retries taking it from
a timer and logs a failure on every attempt. Its built-in 8x16 font
covers the first 256 code points only, held in CP437 order while
kmscon looks glyphs up by Unicode code point, so box drawing, block and
braille characters come out wrong. The input event nodes it reads only
exist with the evdev handler, which nothing pulled in.

Do not start the instance while plymouth reports that it holds the
display, and start it on the plymouth.release event the splash hands
procd when it lets go. Build the GNU Unifont engine into a
kmscon-mod-unifont package; its generator genunifont is packaged as a
host build, and a patch lets meson use that one. The init script
passes --font-engine only when one is configured, so kmscon falls
through to unifont when the module is installed. GNU Unifont is
dual-licensed under GPL-2.0-or-later with a font embedding exception
and OFL-1.1; kmscon takes the font under OFL-1.1, so the module
package carries that licence besides MIT. Depend on kmod-input-evdev.

Fixes: 3c8ebee9b4 ("kmscon: depend on input-support for the evdev nodes")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-07 08:23:38 +01:00
Daniel Golle afb0a7453e kmscon: drop the enabled option
Whether a service runs at boot is already expressed by its rc.d symlink,
which service enable and service disable maintain. A UCI option saying
the same thing is a second source of truth that disagrees with the first
as soon as either is touched on its own.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-03 16:57:13 +01:00
Daniel Golle 42627cc499 kmscon: make the libseat backend activate its seat
The seat is enabled while libseat_open_seat() is still running, before
uterm_vt_allocate() has installed the callbacks an activation needs, and
whatever libseat has buffered is never dispatched because watching its fd
for readability yields nothing. kmscon therefore stayed asleep with
--libseat: no video device was initialised and the display stayed dark.

Carry patches that dispatch libseat once from an idle callback and replay
an enable that arrived too early, and that mark an unopened tty as -1 so
the backend stops issuing VT ioctls on file descriptor 0.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-03 16:57:13 +01:00
Daniel Golle 90b4a43150 seatd: deliver the enable event sent while opening a seat
seatd answers CLIENT_OPEN_SEAT by buffering the response and the enable
event together, so both reach libseat in one read. libseat parses only
the response and leaves the event in its connection buffer, with nothing
left on the socket for a client watching the fd to be woken by, so a
client that follows the documented contract never activates its seat.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-03 16:57:13 +01:00
Daniel Golle 656818e12b seatd: enable VT-less operation
Start seatd to manage physical consoles directly in case CONFIG_VT is
disabled by passing SEATD_VTBOUND=0 env variable.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-03 16:57:13 +01:00
Daniel Golle 816fa8fe0c plymouth-theme-openwrt-demo: fix the theme descriptor name
plymouth resolves a configured theme as themes/<name>/<name>.plymouth,
so the descriptor has to carry the name of its directory. Named
openwrt.plymouth it is never found, and plymouth walks its fallback
chain down to the built-in text splash, which draws nothing at all on a
board that has no text console.

Name the descriptor after the theme so the configured theme loads.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-02 08:56:57 +01:00
Daniel Golle cf4452f67a plymouth-plugin-ucode: start the splash without a console
The preinit hook asked for a splash by appending "splash" to a faked
kernel command line and told plymouth to ignore serial consoles, which
left it free to take the system console as its terminal anyway.

--graphical-boot covers both and keeps plymouth on KMS only.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-02 08:56:57 +01:00
Daniel Golle fd188acfb6 plymouth-plugin-ucode: honour the display device scale
ply_pixel_buffer_get_size() reports the logical area while
ply_pixel_buffer_get_argb32_data() points at the device pixel buffer.
Where the device scale is above one, the plutovg surface then describes
the buffer as too narrow and with too short a stride, so each odd
logical row lands in the right half of the panel and the image collapses
into a fraction of it. The damaged area is handed over in logical
coordinates as well, while ply_renderer_head_flush_area() reads it as
device pixels.

Size the surface in device pixels, scale the canvas by the device scale
so a theme keeps drawing in logical coordinates, and report the damaged
area in device pixels.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-02 08:56:57 +01:00
Daniel Golle 389a52b148 plymouth: keep the daemon off the system console
OpenWrt builds the kernel without CONFIG_VT, so BOOT_TTY never exists
and plymouth falls back to the first serial device it finds, which is
the system console. It opens that console, watches it for input, puts it
in raw mode and locks every termios bit, so a shell sharing it loses its
cursor keys, its interrupt character and a share of everything typed.
Forcing details mode along the way also costs the splash its renderer.

Carry a patch that makes --graphical-boot keep plymouth away from a
console altogether and pass it from both entry points. The faked
"splash" kernel argument and --ignore-serial-consoles go with it, both
implied now, as does --attach-to-session, which redirected the console
into plymouth's pty with TIOCCONS and stopped kernel messages reaching
the serial port.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-02 08:56:57 +01:00
Daniel Golle 2baec75e2c mesa: depend on accel-support in the hardware drivers
A hardware driver renders through /dev/dri/renderD*, which is 0600
root:root until accel-support allocates the render group and ships the
rule that puts the node into it.

The software rasterisers are the exception and keep no such dependency:
libmesa-softpipe, libmesa-llvmpipe and libvulkan-lvp run on the CPU and
open no device. Because the gate sits on each driver, an image built
around a software rasteriser stays out of the render group, while one
that picks a hardware driver pulls the group in with it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-30 12:28:18 +01:00
Daniel Golle 3c8ebee9b4 kmscon: depend on input-support for the evdev nodes
kmscon reads its keyboard from /dev/input directly through libudev, so
it needs the input group and the hotplug rule that input-support ships.
It has no libevdev or libinput dependency to inherit that from, unlike
the compositors in this feed.

The DRM side already comes from libdrm.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-30 12:28:18 +01:00
Daniel Golle e5bbe28a27 libwpe: remove
Nothing depends on the libwpe API any more: wpewebkit is built against
WPEPlatform, and wpebackend-fdo and cog are gone.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-29 12:37:13 +01:00
Daniel Golle d4540d0ce9 wpebackend-fdo: remove
The only consumers were wpewebkit, which is now built with
ENABLE_WPE_LEGACY_API=OFF, and cog, which is gone.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-29 12:37:13 +01:00
Daniel Golle 7225a8673a cog: remove
Cog is a launcher built on the libwpe API and wpebackend-fdo, which
wpewebkit no longer provides now that it is built against WPEPlatform
only. MiniBrowser covers the testing role, and applications should use
the WPE API directly.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-29 12:37:13 +01:00
Daniel Golle 37a9a02168 wpewebkit: update to 2.54.0
Switch to WPEPlatform only: ENABLE_WPE_LEGACY_API=OFF drops the libwpe
API and with it the wpebackend-fdo backend, which served no other
package. MiniBrowser builds against WPEPlatform without them.

WPEWebKit now needs 128-bit atomics, so add libatomic. libstdcpp and
libxkbcommon used to arrive through libwpe and are linked directly, so
declare them.

Patch 122 is upstream and is dropped; 126 keeps only its DWARF register
mapping hunk. 138 and 147 are ported to the refactored atomic op macros,
where upstream hoisted 63 inline bodies out into named macros, and 147's
compare-exchange slow path gains the expected-value argument and the
result move it was missing.

Eight patches are new. The WebDriver log channel is read unguarded while
it is only declared when logging is compiled in. WPE reports
prefers-reduced-motion inverted, so animations are disabled by default.
WebKit cannot resolve a WebCore header that another WebCore header
includes by bare name, which stops the prefix header compiling as the
translation unit of its own that a precompiled header needs. libpas picks
a __uint128_t for pas_pair wherever the compiler is not Clang and the
target is not 32-bit ARM, which leaves 32-bit x86 without a type, and its
pair atomics then need the same unreachable stub that 32-bit ARM already
uses.

The remaining four are RISCV64. The offlineasm backend cannot lower a call
to a local label, nor a floating-point branch to a global label, both of
which the LLInt asm emits. B3 declares u64 inside the ARM64 and X86_64
arms of isValidFPImm64Form and reads it after the #endif, which no other
architecture compiles. The MacroAssembler is missing the
store64(TrustedImm32, BaseIndex) and immediate-valued moveConditionally32
forms that DFGSpeculativeJIT calls.

Add test-version.sh: nothing the packages install reports the version, so
the generic test cannot probe for it. The helper processes take no
arguments and print nothing, WPEWebDriver has no --version, and the .pc
file that carries the version belongs to Build/InstallDev.

Regenerate the whole series with git format-patch so every patch carries
a git-am header and a description, refresh it for the new line numbers,
and correct two descriptions that referred to WebKitGTK.

Link: https://wpewebkit.org/release/wpewebkit-2.54.0.html

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-29 12:37:13 +01:00
Daniel Golle 7dd5eba75d kmscon: split the OpenGL ES path into kmscon-mod-gl
kmscon depends on a libmesa provider, so every system with a KMS
console pulls in Mesa, but the main binary links none of it: the GL
code lives entirely in mod-drm3d.so and mod-gltex.so, which are
dlopened from a directory scan of the module directory. The software
renderer bbulk is built into the binary, the drm2d backend needs only
libdrm, and hwaccel is off by default, so Mesa is unused on a default
install and the modules are absent-tolerant by construction.

Ship those two modules as kmscon-mod-gl and build them only when it
is selected. A system that carries Mesa for other reasons installs
the package and starts kmscon with --hwaccel; everything else gets a
console with no Mesa in the build at all.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-29 00:17:38 +01:00
Daniel Golle 605d768782 kmscon: add terminal emulator for KMS devices
A system without a framebuffer console has no text console at all.
kmscon draws a terminal straight onto a DRM device, through OpenGL ES
where the GPU allows and in software on the same device otherwise.

Device access goes through libseat, so the seat owns the drm device and
the vt rather than kmscon reaching for both itself. That needs seatd,
which is a small daemon and already starts before this service. Built
without the fbdev backend and with the built-in PC screen font, so it
needs neither pango nor freetype. The service is off until enabled, so
it does not take the display from whatever else is using it.

Two patches are carried. The first keeps the unifont generator, a
native helper linked against zlib for the build machine, out of a build
that has the unifont backend disabled, which otherwise breaks cross
compilation. The second stops an error loop: a render-only drm node
answers NULL to drmModeGetResources, which the hotplug path treated as
an error and returned from the poll handler, so kmscon wrote 776 error
lines in eighty seconds on a board where the GPU enumerates before the
display controller.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-26 12:41:58 +01:00
Daniel Golle 9ab8f1fcaf libtsm: add terminal emulator state machine
State machine for a VT220 terminal emulator, with no rendering or input
handling of its own. kmscon builds on it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-26 12:41:58 +01:00
Daniel Golle 6aca04f334 plymouth-theme-openwrt-demo: add a demo theme for the ucode engine
A worked example of what the ucode splash plugin can do, and the
default theme once it is installed: nothing here is meant to be the
last word on how an OpenWrt boot should look.

The scene is a network graph, laid out afresh on every boot, drawn from
one ucode program and one SVG with no rendered frames anywhere. It has
two phases because the splash does. Before ubusd exists there is
nothing true to report, so the graph simply grows, a node every second
or so, for however long preinit takes. Once the bus is up the rest of
the graph completes at once, the row of pictograms is built from
/etc/rc.d/S*, and the packets that move afterwards are driven by real
ubus activity rather than a timer.

A stage is shown only for a service that is actually enabled and has a
pictogram, dark until the service's own ubus object appears, so a box
without blockd never shows storage. sysntpd has no object and reports
its sync through /etc/hotplug.d/ntp instead, which is the general way
for a service with a hook but no object to light its stage. Shutdown,
reboot and sysupgrade take the graph apart rather than building it.

About 5 ms a frame at any resolution from 640x480 to 3840x2160 on a
Rock 5B, against 33 ms at the default frame rate.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-26 10:21:06 +01:00
Daniel Golle 9ef83aa136 plymouth-plugin-ucode: add a scripted splash plugin for ucode
Plymouth's own script plugin has its own little language and draws by
compositing prepared images, which means a theme arrives as a few
hundred PNGs. This plugin makes a theme one ucode program instead, with
a plutovg canvas over plymouth's pixel buffer, so a theme is source and
its artwork is SVG.

A theme returns setup, frame, paint and event. frame advances state and
declares what changed, paint draws one damaged rectangle, and nothing
reaches the screen that the theme did not ask for, which keeps a busy
scene at a couple of milliseconds a frame rather than repainting
everything. Themes are written against the contract in files/README.md
and can be measured offscreen, on any target, with the included
plymouth-theme-bench, which reports the package version it was built
from.

The plugin connects to ubus and passes events through, along with the
objects that already existed when it connected, so a theme can show
what the system is actually doing rather than animating a guess. It
starts the splash from a preinit hook, before the overlay is mounted,
and keeps it up through sysupgrade.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-26 10:21:06 +01:00
Daniel Golle 1a39b47dbd plymouth: add boot splash for KMS devices
Plymouth draws a boot splash straight onto a DRM device and holds the
display until whatever follows it takes over, so nothing of the boot is
visible between reset and the user interface. On a board with no
framebuffer console that is the only way to put anything on screen
early.

Built without the framebuffer backend, without systemd and upstart
integration, and without gtk, pango and freetype, so the runtime needs
only libpng and libdrm. msgfmt is needed at build time, for the themes
that are built and then not installed. Neither binary answers to
--version, so the CI version probe is answered by test-version.sh
instead. No theme is installed and none is named in
the daemon configuration: a theme is a package of its own and selects
itself when it is installed.

Four patches are carried. Two are build fixes for musl, which has
neither rpmatch() nor execinfo.h. The other two are bugs, both
submitted upstream. The drm renderer drops master immediately after
opening the device, so every connector probe runs as a client that is
not drm master; the kernel declines it a forced probe and returns a
cached status of "unknown", and the renderer gives up with "Could not
initialize heads", which leaves the splash able to light only a display
something else has already probed. The escape key tears the splash down
for a text view, guarded only on a VT existing, so on a kernel with
CONFIG_VT but no framebuffer console the dummy driver is bound, the
text goes nowhere and the screen turns black.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-26 10:21:06 +01:00
Daniel Golle 6968dd1804 xkeyboard-config: stage the pkg-config file
The package builds xkeyboard-config-2.pc and a compatibility symlink
to it, but installs neither into the staging directory, so anything
asking pkg-config for xkeyboard-config fails to configure. plymouth
does, for the xkb_base path.

Install both names; the symlink alone leaves a dangling link.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-26 10:21:06 +01:00
Daniel Golle e54dc4ed6b ucode-mod-plutosvg: add ucode binding for plutosvg
Make SVG documents loadable and renderable from ucode. A document is a
resource type that reports its intrinsic size, computes the extents of
the whole drawing or of one element by id, and renders either onto a
plutovg canvas or into a fresh surface. CSS currentColor is passed as
an ordinary colour value and colour variables resolve through a ucode
object or callback invoked during rendering.

Script data handed to the loader is copied because the parser keeps
pointers into it for the lifetime of the document; the copy is released
through the destroy callback. An element id is dereferenced in the
frame that owns the argument, as a short ucode string lives inside the
variable holding the value.

Surfaces returned by the renderer are plutovg resources, so the plutovg
module is loaded on demand when it is not already present.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-25 13:27:56 +01:00
Daniel Golle 63d2ac13cf ucode-mod-plutovg: add ucode binding for plutovg
Make the plutovg drawing API usable from ucode. Surfaces, canvases,
paths, paints and font faces become ucode resource types with method
tables, while colours, points, rectangles, matrices and gradient stops
cross the boundary as plain ucode objects or arrays, so a whole scene
can be built and mutated from script. Enumerations are spelled as
strings rather than opaque integers.

Each resource holds one plutovg reference and drops it from the type
destructor; getters that return a borrowed pointer take a reference
before wrapping it, so a canvas keeps its surface alive and nothing is
released twice at collection time.

The value conversion helpers live in a separate header installed into
the staging directory because the plutosvg binding needs the same
colour and rectangle marshalling.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-25 13:27:56 +01:00
Daniel Golle 128eaf286e plutosvg: add SVG rendering library
Parses SVG and draws it through plutovg, which lets a theme ship its
artwork as text rather than as rendered bitmaps. 33 KiB on aarch64, and
it needs nothing beyond plutovg and libc.

freetype is disabled: it only serves OpenType SVG glyphs, and pulling it
in for that would outweigh the library several times over. The bundled
plutovg wrap is refused so a failed dependency check cannot stage a
second copy over the packaged one.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-25 13:27:56 +01:00
Daniel Golle cb8954878d plutovg: add 2D vector graphics library
Software rasteriser for paths, strokes, gradients and transforms onto a
32-bit premultiplied ARGB surface, which it can create over memory the
caller already owns. Needed to draw a boot splash procedurally rather
than from a baked frame sequence.

Links against nothing but libc, and comes to 172 KiB on aarch64. The
font face cache is disabled along with the examples and tests, since
nothing here renders text.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-25 13:27:56 +01:00
Daniel Golle 11dae3ae49 weston: refuse meson subproject fallbacks
weston ships wrap files for aml, display-info, edid-decode, neatvnc
and perfetto. When a dependency check fails, meson quietly builds the
bundled copy, and Build/InstallDev then stages its library, headers
and pkg-config file over the ones of the real package, which broke
every later consumer of libdisplay-info. Pass --wrap-mode=nofallback
so a missing or unsuitable dependency fails the configure step.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-23 11:16:31 +01:00
Daniel Golle a7ca7540f9 weston: accept libdisplay-info 0.4
weston 16.0.0 requires libdisplay-info below 0.4.0 while the feed
ships 0.4.0, so meson silently fell back to the bundled 0.2.0
subproject. libweston uses no interface that 0.4.0 lacks; raise the
upper bound of the version constraint so the system library is used.

Fixes: 644a662612 ("weston: update to version 16.0.0")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-23 11:16:31 +01:00
Daniel Golle 938621437f llvm-mesa: update to 23.1.1 / SPIRV-LLVM-Translator 23.1.1
Update LLVM and SPIRV-LLVM-Translator, which are used for the Mesa
build, to the latest release. libclc is no longer a standalone LLVM
project and is no longer built either, as the Intel GPU drivers do not
need it any more. Give the refreshed ARC patch the git header the
OpenWrt patch guidelines require.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-18 16:16:45 +01:00
Daniel Golle b1f2e305d9 mesa: update to version 26.2.2
26.2.0 was a development release which upstream advised against using;
26.2.1 is the first stable point release on the 26.2 branch and 26.2.2
adds further bug fixes on top of it, among them the armhf build fix and
one potential security issue. Drop patch 400, whose fix is now present
upstream, and refresh the remaining patches. Add a new patch adapting
the gallivm ORCJIT object linking layer creator to the signature change
in LLVM 23, which targets without MCJIT support such as riscv64 need.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-18 16:16:45 +01:00
Daniel Golle aa4a28522c sdl3: add missing dependency on libffmpeg
Some of test programs packaged as sdl3-tests dynamically link against
some of FFmpeg's libraries in case their presence is detected.

In the case sdl3-tests fails to be packaged as the linker dependency
isn't reflected as a package dependency.

Add the missing dependency, so the tests for FFmpeg are always built,
and building sdl3-tests always succeeds.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-17 01:04:48 +01:00
Daniel Golle 2a19bbb57e llvm: use ATOMIC64_DEPENDS
The libraries depend on libatomic on every architecture, link it only
on mips through an open-coded LDFLAGS addition, and still name the
removed arc architecture in their dependencies. ATOMIC64_DEPENDS
restricts the dependency to the targets whose compiler calls libatomic
for 64-bit atomics, and the link flag follows the same symbol, which
also covers the ARMv5 targets.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-14 16:47:15 +01:00
Daniel Golle c421d1944c mesa: use ATOMIC64_DEPENDS
libatomic is only needed where the compiler does not inline 64-bit
atomics, but the package depends on it on every target.
ATOMIC64_DEPENDS restricts the dependency to those targets.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-14 16:47:15 +01:00
Daniel Golle 644a662612 weston: update to version 16.0.0
Removed fullscreen-shell entirely; deprecated (but not yet removed)
xdg-shell-v6, the GStreamer-based remoting plug-in and the old
Pipewire virtual-output plug-in in favour of the new first-class
backend-pipewire backend. Improved Perfetto traces with debug
annotations, further HDR/colour-management work (grayscale output
colour effect, better inversion documentation), new DRM connector
properties (color-format, underscan/margin), DRM state-reuse and
plane-handling rework, Vulkan renderer explicit-synchronisation and
non-axis-aligned rotation support, and a large number of memory-leak
and use-after-free fixes across the DRM/GL/Vulkan/xdg-shell code
paths.

The old 'pipewire' and 'remoting' meson options were renamed to
'deprecated-pipewire' and 'deprecated-remoting' upstream (migrating to
the first-class 'backend-pipewire' option, already explicitly disabled
here); updated accordingly, otherwise meson configure would fail with
"Unknown options". Verified every other MESON_ARGS option referenced
by this Makefile still exists unchanged in 16.0.0's meson_options.txt.

Also add an explicit PKG_RELEASE:=1 line (version bump resets it from
the prior package's PKG_RELEASE:=2).

No patches to refresh. Hash verified against the release download and
the official SHA256 published in the upstream release announcement
(wayland-devel mailing list).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 17:47:11 +01:00
Daniel Golle 0de25e3bdd glslang: update to 16.4.0 (Vulkan SDK 1.4.357.0)
16.4.0 references the same commit as the vulkan-sdk-1.4.357.0 release
tag; use the semver tag as before to keep package-manager version
comparisons monotonic. Part of a joint bump across vulkan-headers/
loader/tools, spirv-headers/tools and glslang to LunarG's latest
released Vulkan SDK.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 02:26:51 +01:00
Daniel Golle 763da5a0d8 spirv-tools: update to Vulkan SDK 1.4.357.0
Track LunarG's latest released Vulkan SDK (1.4.357.0), part of a joint
bump across vulkan-headers/loader/tools, spirv-headers/tools and
glslang.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 02:26:51 +01:00
Daniel Golle 05d406ffc9 spirv-headers: update to Vulkan SDK 1.4.357.0
Track LunarG's latest released Vulkan SDK (1.4.357.0), part of a joint
bump across vulkan-headers/loader/tools, spirv-headers/tools and
glslang.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 02:26:51 +01:00
Daniel Golle 99934f8cf4 vulkan-tools: update to Vulkan SDK 1.4.357.0
Track LunarG's latest released Vulkan SDK (1.4.357.0), part of a joint
bump across vulkan-headers/loader/tools, spirv-headers/tools and
glslang.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 02:26:51 +01:00
Daniel Golle 5be6028993 vulkan-loader: update to Vulkan SDK 1.4.357.0
Track LunarG's latest released Vulkan SDK (1.4.357.0), part of a joint
bump across vulkan-headers/loader/tools, spirv-headers/tools and
glslang.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 02:26:51 +01:00
Daniel Golle 09a1a00ad4 vulkan-headers: update to Vulkan SDK 1.4.357.0
Track LunarG's latest released Vulkan SDK (1.4.357.0), part of a joint
bump across vulkan-headers/loader/tools, spirv-headers/tools and
glslang.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 02:26:51 +01:00
Daniel Golle b446792c1d cage: update to 0.3.1
- guard git version detection against a missing .git directory
- stop using DEFAULT_XCURSOR as a cursor theme name
- fix XDG-shell windows requesting fullscreen on startup

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 02:26:02 +01:00
Daniel Golle 4c5a3bb191 wlroots: update to version 0.20.2
Also add an explicit PKG_RELEASE line (was previously undefined).

Several Xwayland hardening fixes for handling malformed/malicious
client input: an out-of-bounds strndup() in read_surface_class(),
removed VLAs for MIME type atom lists, use of const pointers for
xcb_get_property_value(), no longer relying on the (removable)
xcb_get_property_reply_t.value_len field, a WM_TRANSIENT_FOR length
check, and checks against duplicate/mistyped WL_SURFACE_ID association
messages. Also: intersect the visible area with the output layout in
update_node_update_outputs(), don't send a new dmabuf feedback after a
scene node is disabled, set CLOEXEC on client FDs in
security_context_v1, emit set_parent when an Xwayland parent surface
is destroyed, and check the drag-and-drop action/accepted state on
touch-up.

No patches to refresh. Hash verified against the release archive and
an independent fresh git clone of the same tag (byte-identical tree
content after extraction).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 02:25:40 +01:00
Daniel Golle e2214ddc0f libva: update to 2.24.1
2.24.0: added the VA_PICTURE_H264_NON_EXISTING flag; security hardening
(use secure_getenv instead of getenv in va_x11.c); expanded tracing/
logging for protected session operations (dump input/output data in
va_TraceProtectedSessionExecute); fixed the AV1 Doxygen documentation
link.

2.24.1: include <unistd.h> for getuid/getgid in the secure_getenv
fallback (build fix following the 2.24.0 secure_getenv change).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 02:25:16 +01:00
Daniel Golle 029ccd91fa harfbuzz: update to 14.3.1
From 14.2.1, via minor point releases in between:
- fixed AAT insertion at the end of the text
- fixed various rendering bugs in the experimental GPU library
- the WASM shaper can now read user features
- various fuzzing, build and subsetting fixes

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 02:24:41 +01:00
Daniel Golle 694b1d532b pango: update to version 1.58.2
1.58.0: PangoFontDescription gained a width attribute (like stretch,
but allowing intermediate values); PangoRenderer can now render only
selected layout components (overlines/underlines/strikethrough/text).

1.58.1: raised minimum harfbuzz to 11 and glib to 2.88 (both already
satisfied by this feed/packages); CoreText variations and font
features from descriptions; renderer keeps over/under/through lines
in sync; assorted undefined-behaviour fixes.

1.58.2: no functional changes, version bump only.

Hash verified against two independent GNOME mirrors.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 02:23:36 +01:00
Daniel Golle 03c0664552 wayland: update to 1.26.0
Notable changes: added wl_fixes.ack_global_remove() and delivery of
wl_registry.global_remove to a global's offer list; added the
wl_pointer.warp event; added new wl_shm formats and a
wl_shm_pool::error enum; added server-side wl_display_remove_socket_fd();
fixed a use-after-free in for_each_helper; several scanner fixes
(dropped a redundant exit() after fail(), fixed the emitted types for
new_id arguments, removed an unused arg_count); protocol documentation
fixes.

001-fix-wayland-scanner-detect.patch refreshed cleanly, no hunk-offset
changes needed. Hash verified against the release tarball and
Debian's independently-hosted orig tarball for 1.26.0-1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 02:23:17 +01:00
Daniel Golle 7f69452fb1 libdisplay-info: update to 0.4.0
From 0.3.0. Notable changes:
- added DisplayID v2 CTA-861 data block support (parsing and
  di-edid-decode printing), with CTA data now searchable from DisplayID
  v2 extensions
- added DisplayID type IV timing support
- regenerated the CTA VIC table for CTA-861-I and added a reverse
  timing-to-code lookup
- wrapped DMT/VIC codes in typed structs instead of bare uint8_t
- fixed a double free of cta_vics in displayid, an out-of-bounds VIC
  array access, a potential overflow in a shift operation, and several
  failed-allocation/uninitialised-variable issues (helped by adding
  gcc's static analyzer to CI)
- cta error handling switched from errno to negative error numbers,
  with several "do not fail on a single bad/erroring block" fixes
- disabled most v4l-utils build options by default

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-25 02:22:57 +01:00