Control: tags 1137168 + pending

Dear maintainer,

I've prepared an NMU for gulkan (versioned as 0.15.1-2.4) and uploaded 
it to DELAYED/2. Please feel free to tell me if I should cancel it.

cu
Adrian
diffstat for gulkan-0.15.1 gulkan-0.15.1

 changelog                                                          |   12 ++
 patches/0003-fix-ftbfs-add-gl-dep-to-external-memory-example.patch |   49 ++++++++++
 patches/series                                                     |    1 
 3 files changed, 62 insertions(+)

diff -Nru gulkan-0.15.1/debian/changelog gulkan-0.15.1/debian/changelog
--- gulkan-0.15.1/debian/changelog	2025-03-08 16:09:33.000000000 +0200
+++ gulkan-0.15.1/debian/changelog	2026-07-14 14:51:09.000000000 +0300
@@ -1,3 +1,15 @@
+gulkan (0.15.1-2.4) unstable; urgency=medium
+
+  * Non-maintainer upload.
+
+  [ Azeez Syed ]
+  * Fix FTBFS: add explicit libGL dependency (gl_dep) for the external-
+    memory example; GLEW 2.3.1 changed GLEW_LIBRARIES linkage from
+    PUBLIC to PRIVATE, so libGL no longer propagates transitively to
+    consumers (Closes: #1137168).
+
+ -- Adrian Bunk <[email protected]>  Tue, 14 Jul 2026 14:51:09 +0300
+
 gulkan (0.15.1-2.3) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru gulkan-0.15.1/debian/patches/0003-fix-ftbfs-add-gl-dep-to-external-memory-example.patch gulkan-0.15.1/debian/patches/0003-fix-ftbfs-add-gl-dep-to-external-memory-example.patch
--- gulkan-0.15.1/debian/patches/0003-fix-ftbfs-add-gl-dep-to-external-memory-example.patch	1970-01-01 02:00:00.000000000 +0200
+++ gulkan-0.15.1/debian/patches/0003-fix-ftbfs-add-gl-dep-to-external-memory-example.patch	2026-07-14 14:51:09.000000000 +0300
@@ -0,0 +1,49 @@
+Description: Fix FTBFS: add explicit libGL dependency for GLEW-using targets
+ GLEW 2.3.1 (glew_2.3.1+dfsg2-5) changed the CMakeLists.txt to link
+ ${GLEW_LIBRARIES} (which includes libGL) as PRIVATE instead of PUBLIC.
+ This means libGL is no longer transitively exported to consumers of the
+ GLEW pkg-config target, so packages that rely on GLEW to pull in libGL
+ now fail with undefined references to core GL symbols such as glGetError,
+ glGenTextures, glBindTexture, glTexParameteri, glTexSubImage2D, glFinish,
+ and glDeleteTextures.
+ .
+ Fix: add an explicit gl_dep dependency (libGL) in the root meson.build and
+ pass it to the two GLEW-using build targets: the external-memory example
+ and the test_texture_external test.
+Author: Azeez Syed <[email protected]>
+Bug-Debian: https://bugs.debian.org/1137168
+Forwarded: no
+Last-Update: 2026-05-24
+---
+--- a/examples/meson.build
++++ b/examples/meson.build
+@@ -47,7 +47,7 @@ executable(
+ if glew_dep.found()
+   executable(
+     'external-memory', ['external-memory.c', test_resources, shader_resources],
+-    dependencies: [gulkan_deps, glfw_dep, glew_dep],
++    dependencies: [gulkan_deps, glfw_dep, glew_dep, gl_dep],
+     link_with: gulkan_lib,
+     link_whole: common_lib,
+     include_directories: gulkan_inc,
+--- a/meson.build
++++ b/meson.build
+@@ -60,6 +60,7 @@ libdrm_dep = dependency('libdrm', requir
+ libdrm_amdgpu_dep = dependency('libdrm_amdgpu', required : false)
+ glfw_dep = dependency('glfw3', required : false)
+ glew_dep = dependency('glew', version : '>=2.1.0', required : false)
++gl_dep = dependency('gl', required : false)
+
+ shaderc_dep = dependency('shaderc', required : false)
+ json_glib_dep = dependency('json-glib-1.0', required : false)
+--- a/tests/meson.build
++++ b/tests/meson.build
+@@ -34,7 +34,7 @@ if glfw_dep.found()
+   if glew_dep.found()
+     test_texture_external = executable(
+       'test_texture_external', ['test_texture_external.c', test_resources],
+-      dependencies: [gulkan_deps, glfw_dep, glew_dep],
++      dependencies: [gulkan_deps, glfw_dep, glew_dep, gl_dep],
+       link_with: gulkan_lib,
+       include_directories: gulkan_inc,
+       install: false)
diff -Nru gulkan-0.15.1/debian/patches/series gulkan-0.15.1/debian/patches/series
--- gulkan-0.15.1/debian/patches/series	2024-12-15 23:12:51.000000000 +0200
+++ gulkan-0.15.1/debian/patches/series	2026-07-14 14:51:09.000000000 +0300
@@ -1,2 +1,3 @@
 0001-Fix-incompatible-types.patch
 gcc-14-compat-1086208.patch
+0003-fix-ftbfs-add-gl-dep-to-external-memory-example.patch

Reply via email to