[packages/gstreamer0.10] - fix using volatile var in atomic ops in glib with c++11, rel 12

baggins baggins at pld-linux.org
Mon Oct 25 00:00:52 CEST 2021


commit 5790abb5e2a2cd8013a0990e3e7bda07742ce1bd
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Oct 25 00:00:11 2021 +0200

    - fix using volatile var in atomic ops in glib with c++11, rel 12

 glib2-cxx11.patch  | 11 +++++++++++
 gstreamer0.10.spec |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/gstreamer0.10.spec b/gstreamer0.10.spec
index 06d1efc..33d3be3 100644
--- a/gstreamer0.10.spec
+++ b/gstreamer0.10.spec
@@ -2,7 +2,7 @@ Summary:	GStreamer Streaming-media framework runtime
 Summary(pl.UTF-8):	GStreamer - biblioteki środowiska do obróbki strumieni
 Name:		gstreamer0.10
 Version:	0.10.36
-Release:	11
+Release:	12
 License:	LGPL v2+
 Group:		Libraries
 Source0:	https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{version}.tar.xz
@@ -11,6 +11,7 @@ Patch0:		gstreamer-without_ps_pdf.patch
 Patch1:		gstreamer-eps.patch
 Patch2:		gstreamer-inspect-rpm-format.patch
 Patch3:		bison3.patch
+Patch4:		glib2-cxx11.patch
 URL:		http://gstreamer.net/
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake >= 1:1.11
@@ -108,6 +109,7 @@ Dokumentacja API Gstreamera.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 # po/Makefile.in.in is modified
diff --git a/glib2-cxx11.patch b/glib2-cxx11.patch
new file mode 100644
index 0000000..c8c9bc1
--- /dev/null
+++ b/glib2-cxx11.patch
@@ -0,0 +1,11 @@
+--- gstreamer-0.10.36/gst/gstutils.h~	2011-12-30 02:14:35.000000000 +0100
++++ gstreamer-0.10.36/gst/gstutils.h	2021-10-24 23:52:43.922687886 +0200
+@@ -136,7 +136,7 @@
+   /* The typedef for GType may be gulong or gsize, depending on the	\
+    * system and whether the compiler is c++ or not. The g_once_init_*	\
+    * functions always take a gsize * though ... */			\
+-  static volatile gsize gonce_data = 0;					\
++  static gsize gonce_data = 0;					\
+   if (g_once_init_enter (&gonce_data)) {				\
+     GType _type;							\
+     _type = gst_type_register_static_full (parent_type_macro,           \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gstreamer0.10.git/commitdiff/5790abb5e2a2cd8013a0990e3e7bda07742ce1bd



More information about the pld-cvs-commit mailing list