Skip to contentSkip to conversation

package/cog: fix build with weston 15.x

PATCH In review Bernd Kuhls 2 participants 2 messages Apr 21 – May 20

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/cog: fix build with weston 15.x

Buildroot commit 2e6b2b82d5301977cf2f59adfd633d8774830f69 bumped weston to 15.0.0 causing a configure error with cog:

Run-time dependency libweston-14-protocols found: NO (tried pkgconfig) Run-time dependency libweston-13-protocols found: NO (tried pkgconfig) Run-time dependency libweston-12-protocols found: NO (tried pkgconfig) Run-time dependency libweston-11-protocols found: NO (tried pkgconfig) Run-time dependency libweston-10-protocols found: NO (tried pkgconfig) Run-time dependency libweston-9-protocols found: NO (tried pkgconfig) Run-time dependency libweston-8-protocols found: NO (tried pkgconfig)

output/build/cog-0.18.5/platform/wayland/meson.build:66:8: ERROR:
Problem encountered: No usable weston-protocols dependency found

This error was not yet found by the autobuilders and is solved by adding an upstream patch.

---
 ...-Add-support-for-weston-15-protocols.patch | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 package/cog/0001-Add-support-for-weston-15-protocols.patch
package/cog/0001-Add-support-for-weston-15-protocols.patch new file +29 -0
new file mode 100644
index 0000000000..97ec65a409
@@ -0,0 +1,29 @@
+From b59d3a3c0feceecb10f0376ac2695d9466c9ecf6 Mon Sep 17 00:00:00 2001
+From: James Hilliard <[email protected]>
+Date: Tue, 1 Oct 2024 10:24:56 -0600
+Subject: [PATCH] Add support for weston 15 protocols
+
+Weston 14 was released recently and the weston development branch is
+now using libweston-15-protocols.
+
+Signed-off-by: James Hilliard <[email protected]>
+
+Upstream: https://github.com/Igalia/cog/commit/b59d3a3c0feceecb10f0376ac2695d9466c9ecf6
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ platform/wayland/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/platform/wayland/meson.build b/platform/wayland/meson.build
+index 74215f0a..dad47a6b 100644
+--- a/platform/wayland/meson.build
++++ b/platform/wayland/meson.build
+@@ -49,6 +49,7 @@ wayland_protocols_path = wayland_protocols_dep.get_variable(pkgconfig: 'pkgdatad
+ 
+ if wayland_platform_weston_protocols.length() > 0
+     foreach weston_dep_name : [
++            'libweston-15-protocols',
+             'libweston-14-protocols',
+             'libweston-13-protocols',
+             'libweston-12-protocols',
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 11 lines · Bernd Kuhls

Buildroot commit 2e6b2b82d5301977cf2f59adfd633d8774830f69 bumped weston to 15.0.0 causing a configure error with cog:

Run-time dependency libweston-14-protocols found: NO (tried pkgconfig) Run-time dependency libweston-13-protocols found: NO (tried pkgconfig) Run-time dependency libweston-12-protocols found: NO (tried pkgconfig) Run-time dependency libweston-11-protocols found: NO (tried pkgconfig) Run-time dependency libweston-10-protocols found: NO (tried pkgconfig) Run-time dependency libweston-9-protocols found: NO (tried pkgconfig) Run-time dependency libweston-8-protocols found: NO (tried pkgconfig)

Quoted 7 lines

output/build/cog-0.18.5/platform/wayland/meson.build:66:8: ERROR:
Problem encountered: No usable weston-protocols dependency found

This error was not yet found by the autobuilders and is solved by adding an upstream patch.

Oops sorry I was going through patchwork reverse-chronologically and applied
James' patch instead, even though this commit message is much better.

James, please check patchwork before submitting your own fix.

Regards,
Arnout

Quoted 30 lines
---
  ...-Add-support-for-weston-15-protocols.patch | 29 +++++++++++++++++++
  1 file changed, 29 insertions(+)

create mode 100644 package/cog/0001-Add-support-for-weston-15-protocols.patch

package/cog/0001-Add-support-for-weston-15-protocols.patch new file +19 -0
new file mode 100644
index 0000000000..97ec65a409
@@ -0,0 +1,29 @@
+From b59d3a3c0feceecb10f0376ac2695d9466c9ecf6 Mon Sep 17 00:00:00 2001
+From: James Hilliard <[email protected]>
+Date: Tue, 1 Oct 2024 10:24:56 -0600
+Subject: [PATCH] Add support for weston 15 protocols
+
+Weston 14 was released recently and the weston development branch is
+now using libweston-15-protocols.
+
+Signed-off-by: James Hilliard <[email protected]>
+
+Upstream: https://github.com/Igalia/cog/commit/b59d3a3c0feceecb10f0376ac2695d9466c9ecf6
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ platform/wayland/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/platform/wayland/meson.build b/platform/wayland/meson.build
+index 74215f0a..dad47a6b 100644

package/cog/0001-Add-support-for-weston-15-protocols.patch line 29

Quoted 10 lines
package/cog/0001-Add-support-for-weston-15-protocols.patch new file +10 -0
+--- a/platform/wayland/meson.build
++++ b/platform/wayland/meson.build
+@@ -49,6 +49,7 @@ wayland_protocols_path = wayland_protocols_dep.get_variable(pkgconfig: 'pkgdatad
+
+ if wayland_platform_weston_protocols.length() > 0
+     foreach weston_dep_name : [
++            'libweston-15-protocols',
+             'libweston-14-protocols',
+             'libweston-13-protocols',
+             'libweston-12-protocols',

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