public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gegl04] f44: Fix missing dependency on OpenCL-Headers
@ 2026-09-11 11:11 Nils Philippsen
  0 siblings, 0 replies; only message in thread
From: Nils Philippsen @ 2026-09-11 11:11 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/gegl04
            Branch : f44
            Commit : b18f58b705508327f79a63641124e714b98bdfe7
            Author : Nils Philippsen <nils@tiptoe.de>
            Date   : 2026-09-11T12:57:50+02:00
            Stats  : +43/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/gegl04/c/b18f58b705508327f79a63641124e714b98bdfe7?branch=f44

            Log:
            Fix missing dependency on OpenCL-Headers

Signed-off-by: Nils Philippsen <nils@tiptoe.de>

---
diff --git a/0001-meson-Declare-opencl-as-a-dependency.patch b/0001-meson-Declare-opencl-as-a-dependency.patch
new file mode 100644
index 0000000..f44391f
--- /dev/null
+++ b/0001-meson-Declare-opencl-as-a-dependency.patch
@@ -0,0 +1,41 @@
+From 34e6fced0f5847e11786b8515c9469f8072fbf92 Mon Sep 17 00:00:00 2001
+From: Nils Philippsen <nils@tiptoe.de>
+Date: Fri, 11 Sep 2026 12:23:59 +0200
+Subject: [PATCH] meson: Declare opencl as a dependency
+
+If using external OpenCL-headers, this needs to be declared in the
+pkgconfig file, otherwise they might be missing for builds.
+
+Signed-off-by: Nils Philippsen <nils@tiptoe.de>
+---
+ meson.build | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 7960c025d..b920ea7f1 100644
+--- a/meson.build
++++ b/meson.build
+@@ -668,6 +668,11 @@ gegl_pub_deps = [
+   babl,
+ ]
+ 
++gegl_lib_deps = gegl_pub_deps + [ gegl_npd_lib ]
++if opencl.found()
++  gegl_lib_deps += [ opencl ]
++endif
++
+ pkgconfig.generate(gegl_lib,
+   filebase: 'gegl-' + api_version,
+   name: 'GEGL',
+@@ -678,7 +683,7 @@ pkgconfig.generate(gegl_lib,
+   # not be removed, even though adding it like this is not so proper. If
+   # one wants to clean up this dependency, a proper port must be done
+   # first so that using application still build and don't lose features.
+-  libraries: gegl_pub_deps + [ gegl_npd_lib ],
++  libraries: gegl_lib_deps,
+   subdirs: api_name,
+ )
+ 
+-- 
+2.55.0
+

diff --git a/gegl04.spec b/gegl04.spec
index dbf1c36..0260a08 100644
--- a/gegl04.spec
+++ b/gegl04.spec
@@ -25,6 +25,8 @@ License:        GPL-3.0-or-later AND LGPL-3.0-or-later
 URL:            https://www.gegl.org/
 Source0:        http://download.gimp.org/pub/gegl/%{apiver}/gegl-%{version}.tar.xz
 
+Patch:		0001-meson-Declare-opencl-as-a-dependency.patch
+
 BuildRequires:  chrpath
 BuildRequires:  enscript
 BuildRequires:  gcc-c++

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 11:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 11:11 [rpms/gegl04] f44: Fix missing dependency on OpenCL-Headers Nils Philippsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox