public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nils Philippsen <nils@tiptoe.de>
To: git-commits@fedoraproject.org
Subject: [rpms/gegl04] f44: Fix missing dependency on OpenCL-Headers
Date: Fri, 11 Sep 2026 11:11:25 GMT	[thread overview]
Message-ID: <178912508555.1.591920469132909820.rpms-gegl04-b18f58b70550@fedoraproject.org> (raw)

            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++

                 reply	other threads:[~2026-09-11 11:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178912508555.1.591920469132909820.rpms-gegl04-b18f58b70550@fedoraproject.org \
    --to=nils@tiptoe.de \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox