[packages/gstreamer-plugins-bad] fix atomic check for arm
atler
atler at pld-linux.org
Tue Aug 5 19:07:11 CEST 2025
commit 9fd9f6f4e92dfa19471d717e818c79689329fdf2
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Aug 5 18:33:35 2025 +0200
fix atomic check for arm
likely patch to be removed in next version
atomic.patch | 11 +++++++++++
gstreamer-plugins-bad.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/gstreamer-plugins-bad.spec b/gstreamer-plugins-bad.spec
index 7505983..e336ce4 100644
--- a/gstreamer-plugins-bad.spec
+++ b/gstreamer-plugins-bad.spec
@@ -88,6 +88,7 @@ Patch0: musepack.patch
Patch1: %{name}-gs-c++17.patch
Patch2: %{name}-aja-update.patch
Patch3: %{name}-x265.patch
+Patch4: atomic.patch
URL: https://gstreamer.freedesktop.org/
BuildRequires: docbook-dtd412-xml
BuildRequires: gettext-tools >= 0.17
@@ -1641,6 +1642,7 @@ Wtyczka GStreamera ZXing wykrywająca kody kreskowe.
%patch -P 1 -p1
%patch -P 2 -p1
%patch -P 3 -p1
+%patch -P 4 -p1
# disable SCTP debugging (even though gst_debug is enabled by default)
# (SCTP_DEBUG requires libusrsctp built with debugging)
diff --git a/atomic.patch b/atomic.patch
new file mode 100644
index 0000000..71fb5be
--- /dev/null
+++ b/atomic.patch
@@ -0,0 +1,11 @@
+--- gst-plugins-bad-1.26.0/gst-libs/gst/cuda/meson.build.orig 2025-03-11 21:14:44.000000000 +0100
++++ gst-plugins-bad-1.26.0/gst-libs/gst/cuda/meson.build 2025-08-05 17:41:09.463823745 +0200
+@@ -49,7 +49,7 @@
+ endif
+
+ # Linux ARM would need -latomic for std::atomic<int64_t>
+-if host_system == 'linux' and host_machine.cpu_family() in ['aarch64', 'arm']
++if get_option('cuda-nvmm').allowed() and host_system == 'linux' and host_machine.cpu_family() in ['aarch64', 'arm']
+ libatomic_dep = cxx.find_library('atomic', required: get_option('cuda-nvmm'))
+ if not libatomic_dep.found()
+ subdir_done()
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gstreamer-plugins-bad.git/commitdiff/e54a8a81eca5216b55254f51b3badfa7bcdc1df0
More information about the pld-cvs-commit
mailing list