Skip to contentSkip to conversation

package/weston: fix DRM backend build with libdisplay-info 0.3.0

Buildroot Julien Olivain via buildroot 1 participant 1 message Oct 17, 2025

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=49f54c4a9f14ac48c766cb41a25e6c568b2e436e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Weston 14.0.2 has a "< 0.3.0" version constraint for the libdisplay-info dependency. Upstream has relaxed the dependency, explicitly stating "There are no breaking changes for the high-level API that Weston uses" [1], but there is no release with the change yet.

The change had to be backported due to restructuring on upstream "main" since, where libdisplay-info has become a dependency of Weston in general, not just the DRM backend.

[1] https://gitlab.freedesktop.org/wayland/weston/-/commit/683eabb61ec43a270f2e3ed67c63bbe3754b1214

Fixes 1a66cdf7b34328d2b2065bfd22f190c92318e499
---
 .../0001-build-Allow-libdisplay-info-0.3.0.patch   | 37 ++++++++++++++++++++++
 1 file changed, 37 insertions(+)
package/weston/0001-build-Allow-libdisplay-info-0.3.0.patch new file +37 -0
new file mode 100644
index 0000000000..d97d1a9bf4
@@ -0,0 +1,37 @@
+From 83b49400c1dfb72e3019267fd03f165d0bffec76 Mon Sep 17 00:00:00 2001
+From: Fiona Klute <[email protected]>
+Date: Mon, 6 Oct 2025 15:20:26 +0200
+Subject: [PATCH] build: Allow libdisplay-info 0.3.0
+
+This is a backport of the change in upstream commit
+683eabb61ec43a270f2e3ed67c63bbe3754b1214 "build: Allow libdisplay-info 0.3.0"
+[1], applying the loosened version limit to the DRM backend only. The dependency
+definition was moved to the top level meson.build in [2], and the lower bound
+increased in [3].
+
+[1] https://gitlab.freedesktop.org/wayland/weston/-/commit/683eabb61ec43a270f2e3ed67c63bbe3754b1214
+[2] https://gitlab.freedesktop.org/wayland/weston/-/commit/76e659f45edd23a8b1b253a93316ec73c709bc71
+[3] https://gitlab.freedesktop.org/wayland/weston/-/commit/82c5b386d860a479ed5a157f4dde58ffe202b948
+
+Upstream: https://gitlab.freedesktop.org/wayland/weston/-/commit/683eabb61ec43a270f2e3ed67c63bbe3754b1214 (backported)
+Signed-off-by: Fiona Klute (WIWA) <[email protected]>
+---
+ libweston/backend-drm/meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libweston/backend-drm/meson.build b/libweston/backend-drm/meson.build
+index 002669e6..a8f2ea59 100644
+--- a/libweston/backend-drm/meson.build
++++ b/libweston/backend-drm/meson.build
+@@ -4,7 +4,7 @@ endif
+ 
+ dep_libdisplay_info = dependency(
+ 	'libdisplay-info',
+-	version: ['>= 0.1.1', '< 0.3.0'],
++	version: ['>= 0.1.1', '< 0.4.0'],
+ 	fallback: ['display-info', 'di_dep'],
+ 	default_options: [
+ 		'werror=false',
+-- 
+2.51.0
+

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot