public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/ffmpeg/files/
Date: Tue, 26 Mar 2024 20:25:56 +0000 (UTC)	[thread overview]
Message-ID: <1711484647.ba51a1ee8ed6dfb8f0beaae97119da9b27e09f35.sam@gentoo> (raw)

commit:     ba51a1ee8ed6dfb8f0beaae97119da9b27e09f35
Author:     Alexander Golubev <fatzer2 <AT> gmail <DOT> com>
AuthorDate: Mon Mar 25 18:53:50 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 26 20:24:07 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba51a1ee

media-video/ffmpeg: fix parallel build with opencl

Closes: https://bugs.gentoo.org/782553
Signed-off-by: Alexander Golubev <fatzer2 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35917
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../ffmpeg-4.4.4-opencl-parallel-gmake-fix.patch    | 21 ++++++++++-----------
 .../ffmpeg-6.1-opencl-parallel-gmake-fix.patch      | 21 ++++++++++-----------
 2 files changed, 20 insertions(+), 22 deletions(-)

diff --git a/media-video/ffmpeg/files/ffmpeg-4.4.4-opencl-parallel-gmake-fix.patch b/media-video/ffmpeg/files/ffmpeg-4.4.4-opencl-parallel-gmake-fix.patch
index c0b1b1b1ce76..9ac8ec79cf2e 100644
--- a/media-video/ffmpeg/files/ffmpeg-4.4.4-opencl-parallel-gmake-fix.patch
+++ b/media-video/ffmpeg/files/ffmpeg-4.4.4-opencl-parallel-gmake-fix.patch
@@ -1,13 +1,12 @@
 Bug: https://bugs.gentoo.org/782553
 
---- a/libavfilter/Makefile
-+++ b/libavfilter/Makefile
-@@ -562,7 +562,7 @@
- clean::
- 	$(RM) $(CLEANSUFFIXES:%=libavfilter/dnn/%) $(CLEANSUFFIXES:%=libavfilter/opencl/%)
- 
--OPENCL = $(subst $(SRC_PATH)/,,$(wildcard $(SRC_PATH)/libavfilter/opencl/*.cl))
-+OPENCL = $(wildcard libavfilter/opencl/*.cl)
- .SECONDARY: $(OPENCL:.cl=.c)
- libavfilter/opencl/%.c: TAG = OPENCL
- libavfilter/opencl/%.c: $(SRC_PATH)/libavfilter/opencl/%.cl
+--- ffmpeg-4.4.4/tools/cl2c.orig        2024-03-14 04:53:45.468507151 +0300
++++ ffmpeg-4.4.4/tools/cl2c     2024-03-14 04:54:53.503086088 +0300
+@@ -24,6 +24,7 @@
+
+ name=$(basename "$input" | sed 's/.cl$//')
+
++mkdir -p "$(dirname "$output")"
+ cat >$output <<EOF
+ // Generated from $input
+ const char *ff_opencl_source_$name =

diff --git a/media-video/ffmpeg/files/ffmpeg-6.1-opencl-parallel-gmake-fix.patch b/media-video/ffmpeg/files/ffmpeg-6.1-opencl-parallel-gmake-fix.patch
index c7eef79f347a..271a18999fb3 100644
--- a/media-video/ffmpeg/files/ffmpeg-6.1-opencl-parallel-gmake-fix.patch
+++ b/media-video/ffmpeg/files/ffmpeg-6.1-opencl-parallel-gmake-fix.patch
@@ -1,13 +1,12 @@
 Bug: https://bugs.gentoo.org/782553
 
---- a/libavfilter/Makefile
-+++ b/libavfilter/Makefile
-@@ -663,7 +663,7 @@ clean::
- 	$(RM) $(CLEANSUFFIXES:%=libavfilter/dnn/%) $(CLEANSUFFIXES:%=libavfilter/opencl/%) \
-               $(CLEANSUFFIXES:%=libavfilter/vulkan/%)
- 
--OPENCL = $(subst $(SRC_PATH)/,,$(wildcard $(SRC_PATH)/libavfilter/opencl/*.cl))
-+OPENCL = $(wildcard libavfilter/opencl/*.cl)
- .SECONDARY: $(OPENCL:.cl=.c)
- libavfilter/opencl/%.c: TAG = OPENCL
- libavfilter/opencl/%.c: $(SRC_PATH)/libavfilter/opencl/%.cl
+--- ffmpeg-6.1.1/tools/source2c.orig        2024-03-14 04:53:45.468507151 +0300
++++ ffmpeg-6.1.1/tools/source2c     2024-03-14 04:54:53.503086088 +0300
+@@ -24,6 +24,7 @@
+
+ name=$(basename "$input" | sed 's/.cl$//')
+
++mkdir -p "$(dirname "$output")"
+ cat >$output <<EOF
+ // Generated from $input
+ const char *ff_opencl_source_$name =


             reply	other threads:[~2024-03-26 20:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-26 20:25 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-13 23:43 [gentoo-commits] repo/gentoo:master commit in: media-video/ffmpeg/files/ Ionen Wolkens
2025-01-09 15:13 Conrad Kostecki
2024-11-23 22:23 James Le Cuirot
2024-08-20  8:01 Joonas Niilola
2024-07-20  4:09 Sam James
2023-12-31  2:38 Conrad Kostecki
2023-06-23 21:29 Conrad Kostecki
2022-12-26 10:19 Sam James
2022-10-15 19:34 Conrad Kostecki
2018-12-02 21:43 James Le Cuirot
2017-12-19 23:42 James Le Cuirot

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=1711484647.ba51a1ee8ed6dfb8f0beaae97119da9b27e09f35.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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