Skip to contentSkip to conversation

Update for package/waffle

PATCH Applied Raphael Gallais-Pou 2 participants 8 messages Oct 5, 2025 – Oct 18, 2025

lore
Share & tools
lore
#0 lore raw

cover Update for package/waffle

Several commit for a single package update:

* Website has changed
* Waffle has moved from cmake to meson
* Bump to latest version since old reference was over 4y old (project isn't too lively, latest change is from a year ago)
* Use git download method since latest change isn't an official
* Remove deprecated or already merged patches
* Fix default breaking pkg_config_path

It is my first time updating a package, please to not hesitate to comment. I initially thought about squashing all commits together, but since this is a pretty complexe update I preferred sending a series in order to ease readability and code review.

---
Raphael Gallais-Pou (4):
package/waffle: fix website reference
package/waffle: bump to 5f1f48287e806544d745e9a8f5aed47234c61292 package/waffle: remove patches
package/waffle: fix pkg_config_path value

 ...rd-cflags-from-.pc-files-to-waffle-cflags.patch | 42 ---------------
 ...02-wayland-fix-build-against-version-1-20.patch | 59 ----------------------
 package/waffle/0003-drop-C-dependency.patch        | 46 -----------------
 package/waffle/Config.in                           |  2 +-
 package/waffle/waffle.hash                         |  4 +-
 package/waffle/waffle.mk                           | 39 +++++++-------
 6 files changed, 22 insertions(+), 170 deletions(-)

---
base-commit: 7bbc66a39e6e18d5298564167b42e56b82c9360a
change-id: 20251005-waffle-3265eaadd5e0

Best regards,

Signature · 6 lines
Raphael Gallais-Pou <[email protected]>

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

PATCH 1/4 package/waffle: fix website reference

http://www.waffle-gl.org yields "403 Forbidden".
Switch to freedesktop.org subdomain.

---
 package/waffle/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/waffle/Config.in +1 -1
index 79cb4ca2ede65613f23a8c612623aa18524ad331..c8661e1a0b929538c5fad9d1d849b1197e51851a 100644
@@ -44,4 +44,4 @@ config BR2_PACKAGE_WAFFLE
 	  [1] http://piglit.freedesktop.org
 	  [2] http://github.com/apitrace/apitrace#readme
 
-	  http://www.waffle-gl.org
+	  https://waffle.freedesktop.org/
Signature · 6 lines
2.51.0

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

Re: [Buildroot] [PATCH 1/4] package/waffle: fix website reference

Hi Raphael,

Quoted 4 lines · Raphael Gallais-Pou

http://www.waffle-gl.org yields "403 Forbidden".
Switch to freedesktop.org subdomain.

I applied this series on master. Thanks.

I did few minor changes.
- I squashed patches related to the bump altogether
- I changed _VERSION to use "git describe --abbrev=40" format
- I removed .checkpackageignore entries to fix check-package errors

See:
https://gitlab.com/buildroot.org/buildroot/-/commit/106b3d43a44fb126d4bd7ff6828110e85e3eca22

While reviewing and testing this patch, I've seen that the only waffle user package is piglit, which did not received any update since 2020 and no longer build. In case you are interested to update it, please send a patch.

Best regards,

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

#3 lore raw

Re: [Buildroot] [PATCH 1/4] package/waffle: fix website reference

Le 18/10/2025 à 17:59, Julien Olivain a écrit :

Quoted 15 lines

Hi Raphael,

Quoted 4 lines · Raphael Gallais-Pou

http://www.waffle-gl.org yields "403 Forbidden".
Switch to freedesktop.org subdomain.

I applied this series on master. Thanks.

I did few minor changes.
- I squashed patches related to the bump altogether
- I changed _VERSION to use "git describe --abbrev=40" format
- I removed .checkpackageignore entries to fix check-package errors

Quoted 7 lines

See:
https://gitlab.com/buildroot.org/buildroot/-/ commit/106b3d43a44fb126d4bd7ff6828110e85e3eca22

While reviewing and testing this patch, I've seen that the only waffle user package is piglit, which did not received any update since 2020 and no longer build. In case you are interested to update it, please send a patch.

Thanks for all of that.

Yes indeed, it was while updating Piglit that I found out for Waffle. Patches are incoming. :)

Best regards,
Raphaël>

Quoted 3 lines

Best regards,

Julien.

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

#4 lore raw

PATCH 2/4 package/waffle: bump to 5f1f48287e806544d745e9a8f5aed47234c61292

In reply to Raphael Gallais-Pou

Waffle has two build systems. In commit f162f8126ec4 ("cmake: deprecate cmake in favour of meson"), cmake is not the preferred build system, and fails when used. Bump to latest version available (which has been released a year ago) and switch to meson build system

---
 package/waffle/waffle.hash |  4 +---
 package/waffle/waffle.mk   | 38 +++++++++++++++++++-------------------
 2 files changed, 20 insertions(+), 22 deletions(-)
package/waffle/waffle.hash +1 -3
index 8968dd6fd36c46cb774897a22c1f3b3fc3aac588..ee35b129c05c89348cd9554f7152b875d021f0be 100644
@@ -1,5 +1,3 @@
-# From https://gitlab.freedesktop.org/mesa/waffle/uploads/42030b1cc0f81fd738152104e1811919/waffle-1.7.0.sha256sums
-sha256  69e42d15d08f63e7a54a8b8770295a6eb04dfd1c6f86c328b6039dbe7de28ef3  waffle-1.7.0.tar.xz
-
 # Locally calculated
+sha256  46d3339d857098b31cd758a2fffec6bcee0b693ca1b23d9fbb52a344eb018b04  waffle-5f1f48287e806544d745e9a8f5aed47234c61292-git4.tar.gz
 sha256  630844d1911c8a1b7b888a1de9097c4860b7e381362fd5aa64141d58ab7ecc9b  LICENSE.txt
package/waffle/waffle.mk +19 -19
index 87d44c4217b1db4b1694bcb28d7ff954cfc42895..5c8d0f051c8c7b763c19ce3ecb92c09e2c4865c3 100644
@@ -4,47 +4,47 @@
 #
 ################################################################################
 
-WAFFLE_VERSION = 1.7.0
-WAFFLE_SOURCE = waffle-$(WAFFLE_VERSION).tar.xz
-WAFFLE_SITE = https://gitlab.freedesktop.org/mesa/waffle/uploads/9eaadda4ec2ed1d8a26ddefd2cfd16be
+WAFFLE_VERSION = 5f1f48287e806544d745e9a8f5aed47234c61292
+WAFFLE_SITE = https://gitlab.freedesktop.org/mesa/waffle.git
+WAFFLE_SITE_METHOD = git
 WAFFLE_INSTALL_STAGING = YES
 WAFFLE_LICENSE = BSD-2-Clause
 WAFFLE_LICENSE_FILES = LICENSE.txt
 
 WAFFLE_DEPENDENCIES = host-pkgconf
 
-WAFFLE_CONF_OPTS = -Dwaffle_build_tests=OFF \
-	-Dwaffle_build_examples=OFF \
-	-Dwaffle_build_manpages=OFF \
-	-Dwaffle_build_htmldocs=OFF \
-	-Dwaffle_has_nacl=OFF
+WAFFLE_CONF_OPTS = -Dbuild-tests=false \
+	-Dbuild-examples=false \
+	-Dbuild-manpages=false \
+	-Dbuild-htmldocs=false \
+	-Dnacl=false
 
 ifeq ($(BR2_PACKAGE_WAFFLE_SUPPORTS_WAYLAND),y)
 WAFFLE_DEPENDENCIES += libegl wayland
-WAFFLE_CONF_OPTS += -Dwaffle_has_wayland=ON
+WAFFLE_CONF_OPTS += -Dwayland=enabled
 else
-WAFFLE_CONF_OPTS += -Dwaffle_has_wayland=OFF
+WAFFLE_CONF_OPTS += -Dwayland=disabled
 endif
 
 ifeq ($(BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL),y)
 WAFFLE_DEPENDENCIES += libegl libxcb xlib_libX11
-WAFFLE_CONF_OPTS += -Dwaffle_has_x11_egl=ON
+WAFFLE_CONF_OPTS += -Dx11_egl=enabled
 else
-WAFFLE_CONF_OPTS += -Dwaffle_has_x11_egl=OFF
+WAFFLE_CONF_OPTS += -Dx11_egl=disabled
 endif
 
 ifeq ($(BR2_PACKAGE_WAFFLE_SUPPORTS_GLX),y)
 WAFFLE_DEPENDENCIES += libgl libxcb xlib_libX11
-WAFFLE_CONF_OPTS += -Dwaffle_has_glx=ON
+WAFFLE_CONF_OPTS += -Dglx=enabled
 else
-WAFFLE_CONF_OPTS += -Dwaffle_has_glx=OFF
+WAFFLE_CONF_OPTS += -Dglx=disabled
 endif
 
 ifeq ($(BR2_PACKAGE_WAFFLE_SUPPORTS_GBM),y)
 WAFFLE_DEPENDENCIES += libegl udev
-WAFFLE_CONF_OPTS += -Dwaffle_has_gbm=ON
+WAFFLE_CONF_OPTS += -Dgbm=enabled
 else
-WAFFLE_CONF_OPTS += -Dwaffle_has_gbm=OFF
+WAFFLE_CONF_OPTS += -Dgbm=disabled
 endif
 
 ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
@@ -53,9 +53,9 @@ endif
 
 ifeq ($(BR2_PACKAGE_MESA3D)$(BR2_PACKAGE_MESA3D_OPENGL_EGL),yy)
 WAFFLE_DEPENDENCIES += mesa3d
-WAFFLE_CONF_OPTS += -Dwaffle_has_surfaceless_egl=ON
+WAFFLE_CONF_OPTS += -Dsurfaceless_egl=enabled
 else
-WAFFLE_CONF_OPTS += -Dwaffle_has_surfaceless_egl=OFF
+WAFFLE_CONF_OPTS += -Dsurfaceless_egl=disabled
 endif
 
-$(eval $(cmake-package))
+$(eval $(meson-package))
Signature · 6 lines
2.51.0

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

PATCH 3/4 package/waffle: remove patches

In reply to Raphael Gallais-Pou

Patches make no longer sense since they are either merged or related to deprecated cmake build.

---
 ...rd-cflags-from-.pc-files-to-waffle-cflags.patch | 42 ---------------
 ...02-wayland-fix-build-against-version-1-20.patch | 59 ----------------------
 package/waffle/0003-drop-C-dependency.patch        | 46 -----------------
 3 files changed, 147 deletions(-)
package/waffle/0001-cmake-forward-cflags-from-.pc-files-to-waffle-cflags.patch deleted +0 -42
deleted file mode 100644
index b2a1294f24da581268031ab0ca753291b0997e17..0000000000000000000000000000000000000000
@@ -1,42 +0,0 @@
-From 8b0ae49c8bea78df73c3ecae0059d54a95c561fa Mon Sep 17 00:00:00 2001
-From: Romain Naour <[email protected]>
-Date: Sun, 24 Dec 2017 00:11:45 +0100
-Subject: [PATCH] cmake: forward cflags from *.pc files to waffle cflags
-
-When building mesa egl without x11 and gles2 the headers need a
-EGL_NO_X11 define to avoid including X11 headers.
-
-This define EGL_NO_X11 is lost while building waffle
-since CFLAGS defined by pc files are not used.
-
-EGL_NO_X11 is defined in CFLAGS from egl.pc.
-
-Signed-off-by: Romain Naour <[email protected]>
-[Upstream status:
-https://gitlab.freedesktop.org/mesa/waffle/-/merge_requests/111]
----
- src/waffle/CMakeLists.txt | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
-diff --git a/src/waffle/CMakeLists.txt b/src/waffle/CMakeLists.txt
-index d76e029..2ff72c8 100644
---- a/src/waffle/CMakeLists.txt
-+++ b/src/waffle/CMakeLists.txt
-@@ -5,6 +5,14 @@
- add_definitions(
-     -DWAFFLE_API_VERSION=${waffle_api_version}
-     -DWAFFLE_API_EXPERIMENTAL
-+    ${egl_CFLAGS}
-+    ${gbm_CFLAGS}
-+    ${gl_CFLAGS}
-+    ${GLEXT_CFLAGS}
-+    ${libudev_CFLAGS}
-+    ${wayland-client_CFLAGS}
-+    ${wayland-egl_CFLAGS}
-+    ${x11-xcb_CFLAGS}
-     )
- 
- include_directories(
--- 
-2.14.3
-
package/waffle/0002-wayland-fix-build-against-version-1-20.patch deleted +0 -59

59 lines not on this page · raw message

package/waffle/0003-drop-C-dependency.patch deleted +0 -46

46 lines not on this page · raw message

Signature · 6 lines
2.51.0

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

PATCH 4/4 package/waffle: fix pkg_config_path value

In reply to Raphael Gallais-Pou

Default path goes for $(HOST)/lib/pkgconfig. This does not work for latest waffle version since prefix in the pkg-config file points to the host directory. This results in the concatenation of $(STAGING_DIR)/xxx and $(HOST_DIR)/... which ultimately resolve in a file not found.

Instead, override the default path to $(STAGING_DIR)/usr/share.

---
 package/waffle/waffle.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/waffle/waffle.mk +2 -1
index 5c8d0f051c8c7b763c19ce3ecb92c09e2c4865c3..2dc36c4b23b03d3b14e66ae6838be20f3eadadcc 100644
@@ -13,7 +13,8 @@ WAFFLE_LICENSE_FILES = LICENSE.txt
 
 WAFFLE_DEPENDENCIES = host-pkgconf
 
-WAFFLE_CONF_OPTS = -Dbuild-tests=false \
+WAFFLE_CONF_OPTS = -Dbuild.pkg_config_path=$(STAGING_DIR)/usr/lib/pkgconfig \
+	-Dbuild-tests=false \
 	-Dbuild-examples=false \
 	-Dbuild-manpages=false \
 	-Dbuild-htmldocs=false \
Signature · 6 lines
2.51.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw
In reply to Raphael Gallais-Pou

Le 05/10/2025 à 15:24, Raphael Gallais-Pou a écrit :

Quoted 1 line

Several commit for a single package update:

Hi,

Just a gentle ping regarding this patch.

Thanks for your time.

Best regards,
Raphaël>

Quoted 28 lines

* Website has changed
* Waffle has moved from cmake to meson
* Bump to latest version since old reference was over 4y old (project isn't too lively, latest change is from a year ago)
* Use git download method since latest change isn't an official
* Remove deprecated or already merged patches
* Fix default breaking pkg_config_path

It is my first time updating a package, please to not hesitate to comment. I initially thought about squashing all commits together, but since this is a pretty complexe update I preferred sending a series in order to ease readability and code review.

---
Raphael Gallais-Pou (4):
package/waffle: fix website reference
package/waffle: bump to 5f1f48287e806544d745e9a8f5aed47234c61292 package/waffle: remove patches
package/waffle: fix pkg_config_path value

  ...rd-cflags-from-.pc-files-to-waffle-cflags.patch | 42 ---------------
  ...02-wayland-fix-build-against-version-1-20.patch | 59 ----------------------
  package/waffle/0003-drop-C-dependency.patch        | 46 -----------------
  package/waffle/Config.in                           |  2 +-
  package/waffle/waffle.hash                         |  4 +-
  package/waffle/waffle.mk                           | 39 +++++++-------
  6 files changed, 22 insertions(+), 170 deletions(-)
Quoted 5 lines

---
base-commit: 7bbc66a39e6e18d5298564167b42e56b82c9360a
change-id: 20251005-waffle-3265eaadd5e0

Best regards,

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