Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gstreamer-plugins-good for openSUSE:Factory checked in at 2021-04-18 21:44:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gstreamer-plugins-good (Old) and /work/SRC/openSUSE:Factory/.gstreamer-plugins-good.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gstreamer-plugins-good" Sun Apr 18 21:44:55 2021 rev:77 rq:885636 version:1.18.4 Changes: -------- --- /work/SRC/openSUSE:Factory/gstreamer-plugins-good/gstreamer-plugins-good.changes 2021-04-10 15:27:16.566371312 +0200 +++ /work/SRC/openSUSE:Factory/.gstreamer-plugins-good.new.12324/gstreamer-plugins-good.changes 2021-04-18 21:45:05.564720046 +0200 @@ -1,0 +2,6 @@ +Thu Apr 15 11:31:59 UTC 2021 - Dominique Leuenberger <dims...@opensuse.org> + +- Add 612102fdbc3f813bf9d3406165692b5f742e51a6.patch: Fix build + with gcc 11, based on upstream git. + +------------------------------------------------------------------- New: ---- 612102fdbc3f813bf9d3406165692b5f742e51a6.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gstreamer-plugins-good.spec ++++++ --- /var/tmp/diff_new_pack.iPUQ8f/_old 2021-04-18 21:45:06.360721392 +0200 +++ /var/tmp/diff_new_pack.iPUQ8f/_new 2021-04-18 21:45:06.364721399 +0200 @@ -40,7 +40,8 @@ Source0: %{_name}-%{version}.tar.xz Source1: gstreamer-plugins-good.appdata.xml Source99: baselibs.conf - +# PATCH-FIX-UPSTREAM 612102fdbc3f813bf9d3406165692b5f742e51a6.patch dims...@opensuse.org -- Fix build with GCC 11 +Patch0: 612102fdbc3f813bf9d3406165692b5f742e51a6.patch BuildRequires: Mesa-libGLESv2-devel BuildRequires: Mesa-libGLESv3-devel BuildRequires: gcc-c++ ++++++ 612102fdbc3f813bf9d3406165692b5f742e51a6.patch ++++++ >From 612102fdbc3f813bf9d3406165692b5f742e51a6 Mon Sep 17 00:00:00 2001 From: Matthew Waters <matt...@centricular.com> Date: Thu, 18 Mar 2021 19:52:53 +1100 Subject: [PATCH] gst: don't use volatile to mean atomic volatile is not sufficient to provide atomic guarantees and real atomics should be used instead. GCC 11 has started warning about using volatile with atomic operations. https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719 Discovered in https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/868 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/911> --- ext/jack/gstjack.c | 6 +++--- ext/jack/gstjackaudiosink.c | 2 +- ext/jack/gstjackaudiosrc.c | 2 +- ext/pulse/pulsesink.h | 2 +- ext/qt/gstqsgtexture.cc | 2 +- ext/qt/gstqtglutility.cc | 2 +- ext/qt/qtglrenderer.cc | 6 +++--- ext/qt/qtitem.cc | 2 +- ext/qt/qtwindow.cc | 4 ++-- ext/vpx/gstvpxdec.c | 2 +- ext/vpx/gstvpxenc.c | 16 ++++++++-------- gst/audioparsers/gstac3parse.h | 2 +- sys/rpicamsrc/gstrpicamsrc.c | 2 +- sys/ximage/ximageutil.c | 2 +- 14 files changed, 26 insertions(+), 26 deletions(-) Index: gst-plugins-good-1.18.4/ext/jack/gstjack.c =================================================================== --- gst-plugins-good-1.18.4.orig/ext/jack/gstjack.c +++ gst-plugins-good-1.18.4/ext/jack/gstjack.c @@ -28,7 +28,7 @@ GType gst_jack_connect_get_type (void) { - static volatile gsize jack_connect_type = 0; + static gsize jack_connect_type = 0; if (g_once_init_enter (&jack_connect_type)) { static const GEnumValue jack_connect_enums[] = { @@ -50,7 +50,7 @@ gst_jack_connect_get_type (void) GType gst_jack_transport_get_type (void) { - static volatile gsize type = 0; + static gsize type = 0; if (g_once_init_enter (&type)) { static const GFlagsValue flag_values[] = { @@ -84,7 +84,7 @@ gst_jack_client_free (gpointer jclient) GType gst_jack_client_get_type (void) { - static volatile gsize jack_client_type = 0; + static gsize jack_client_type = 0; if (g_once_init_enter (&jack_client_type)) { /* hackish, but makes it show up nicely in gst-inspect */ Index: gst-plugins-good-1.18.4/ext/jack/gstjackaudiosink.c =================================================================== --- gst-plugins-good-1.18.4.orig/ext/jack/gstjackaudiosink.c +++ gst-plugins-good-1.18.4/ext/jack/gstjackaudiosink.c @@ -131,7 +131,7 @@ gst_jack_audio_sink_free_channels (GstJa static GType gst_jack_ring_buffer_get_type (void) { - static volatile gsize ringbuffer_type = 0; + static gsize ringbuffer_type = 0; if (g_once_init_enter (&ringbuffer_type)) { static const GTypeInfo ringbuffer_info = { Index: gst-plugins-good-1.18.4/ext/jack/gstjackaudiosrc.c =================================================================== --- gst-plugins-good-1.18.4.orig/ext/jack/gstjackaudiosrc.c +++ gst-plugins-good-1.18.4/ext/jack/gstjackaudiosrc.c @@ -151,7 +151,7 @@ gst_jack_audio_src_free_channels (GstJac static GType gst_jack_ring_buffer_get_type (void) { - static volatile gsize ringbuffer_type = 0; + static gsize ringbuffer_type = 0; if (g_once_init_enter (&ringbuffer_type)) { static const GTypeInfo ringbuffer_info = { sizeof (GstJackRingBufferClass), Index: gst-plugins-good-1.18.4/ext/pulse/pulsesink.h =================================================================== --- gst-plugins-good-1.18.4.orig/ext/pulse/pulsesink.h +++ gst-plugins-good-1.18.4/ext/pulse/pulsesink.h @@ -72,7 +72,7 @@ struct _GstPulseSink GstStructure *properties; pa_proplist *proplist; - volatile gint format_lost; + gint format_lost; GstClockTime format_lost_time; }; Index: gst-plugins-good-1.18.4/ext/qt/gstqsgtexture.cc =================================================================== --- gst-plugins-good-1.18.4.orig/ext/qt/gstqsgtexture.cc +++ gst-plugins-good-1.18.4/ext/qt/gstqsgtexture.cc @@ -35,7 +35,7 @@ GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAU GstQSGTexture::GstQSGTexture () { - static volatile gsize _debug; + static gsize _debug; initializeOpenGLFunctions(); Index: gst-plugins-good-1.18.4/ext/qt/gstqtglutility.cc =================================================================== --- gst-plugins-good-1.18.4.orig/ext/qt/gstqtglutility.cc +++ gst-plugins-good-1.18.4/ext/qt/gstqtglutility.cc @@ -66,7 +66,7 @@ gst_qt_get_gl_display () { GstGLDisplay *display = NULL; QGuiApplication *app = static_cast<QGuiApplication *> (QCoreApplication::instance ()); - static volatile gsize _debug; + static gsize _debug; g_assert (app != NULL); Index: gst-plugins-good-1.18.4/ext/qt/qtglrenderer.cc =================================================================== --- gst-plugins-good-1.18.4.orig/ext/qt/qtglrenderer.cc +++ gst-plugins-good-1.18.4/ext/qt/qtglrenderer.cc @@ -22,7 +22,7 @@ GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAU static void init_debug (void) { - static volatile gsize _debug; + static gsize _debug; if (g_once_init_enter (&_debug)) { GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "qtglrenderer", 0, @@ -115,7 +115,7 @@ typedef enum struct SharedRenderData { - volatile int refcount; + int refcount; SharedRenderDataState state; GMutex lock; GCond cond; @@ -130,7 +130,7 @@ shared_render_data_new (void) { struct SharedRenderData *ret = g_new0 (struct SharedRenderData, 1); - ret->refcount = 1; + g_atomic_int_set (&ret->refcount, 1); g_mutex_init (&ret->lock); return ret; Index: gst-plugins-good-1.18.4/ext/qt/qtitem.cc =================================================================== --- gst-plugins-good-1.18.4.orig/ext/qt/qtitem.cc +++ gst-plugins-good-1.18.4/ext/qt/qtitem.cc @@ -104,7 +104,7 @@ void InitializeSceneGraph::run() QtGLVideoItem::QtGLVideoItem() { - static volatile gsize _debug; + static gsize _debug; if (g_once_init_enter (&_debug)) { GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "qtglwidget", 0, "Qt GL Widget"); Index: gst-plugins-good-1.18.4/ext/qt/qtwindow.cc =================================================================== --- gst-plugins-good-1.18.4.orig/ext/qt/qtwindow.cc +++ gst-plugins-good-1.18.4/ext/qt/qtwindow.cc @@ -103,7 +103,7 @@ QtGLWindow::QtGLWindow ( QWindow * paren QQuickWindow( parent ), source (src) { QGuiApplication *app = static_cast<QGuiApplication *> (QCoreApplication::instance ()); - static volatile gsize _debug; + static gsize _debug; g_assert (app != NULL); @@ -152,7 +152,7 @@ QtGLWindow::beforeRendering() g_mutex_lock (&this->priv->lock); - static volatile gsize once = 0; + static gsize once = 0; if (g_once_init_enter(&once)) { this->priv->start = QDateTime::currentDateTime().toMSecsSinceEpoch(); g_once_init_leave(&once,1); Index: gst-plugins-good-1.18.4/ext/vpx/gstvpxdec.c =================================================================== --- gst-plugins-good-1.18.4.orig/ext/vpx/gstvpxdec.c +++ gst-plugins-good-1.18.4/ext/vpx/gstvpxdec.c @@ -79,7 +79,7 @@ gst_vpx_dec_post_processing_flags_get_ty {C_FLAGS (VP8_MFQE), "Multi-frame quality enhancement", "mfqe"}, {0, NULL, NULL} }; - static volatile GType id = 0; + static GType id = 0; if (g_once_init_enter ((gsize *) & id)) { GType _id; Index: gst-plugins-good-1.18.4/ext/vpx/gstvpxenc.c =================================================================== --- gst-plugins-good-1.18.4.orig/ext/vpx/gstvpxenc.c +++ gst-plugins-good-1.18.4/ext/vpx/gstvpxenc.c @@ -165,7 +165,7 @@ gst_vpx_enc_end_usage_get_type (void) {VPX_CQ, "Constant Quality Mode (CQ) mode", "cq"}, {0, NULL, NULL} }; - static volatile GType id = 0; + static GType id = 0; if (g_once_init_enter ((gsize *) & id)) { GType _id; @@ -188,7 +188,7 @@ gst_vpx_enc_multipass_mode_get_type (voi {VPX_RC_LAST_PASS, "Last pass of multipass encoding", "last-pass"}, {0, NULL, NULL} }; - static volatile GType id = 0; + static GType id = 0; if (g_once_init_enter ((gsize *) & id)) { GType _id; @@ -210,7 +210,7 @@ gst_vpx_enc_kf_mode_get_type (void) {VPX_KF_DISABLED, "Don't automatically place keyframes", "disabled"}, {0, NULL, NULL} }; - static volatile GType id = 0; + static GType id = 0; if (g_once_init_enter ((gsize *) & id)) { GType _id; @@ -232,7 +232,7 @@ gst_vpx_enc_tuning_get_type (void) {VP8_TUNE_SSIM, "Tune for SSIM", "ssim"}, {0, NULL, NULL} }; - static volatile GType id = 0; + static GType id = 0; if (g_once_init_enter ((gsize *) & id)) { GType _id; @@ -256,7 +256,7 @@ gst_vpx_enc_scaling_mode_get_type (void) {VP8E_ONETWO, "1:2", "1:2"}, {0, NULL, NULL} }; - static volatile GType id = 0; + static GType id = 0; if (g_once_init_enter ((gsize *) & id)) { GType _id; @@ -280,7 +280,7 @@ gst_vpx_enc_token_partitions_get_type (v {VP8_EIGHT_TOKENPARTITION, "Eight token partitions", "8"}, {0, NULL, NULL} }; - static volatile GType id = 0; + static GType id = 0; if (g_once_init_enter ((gsize *) & id)) { GType _id; @@ -303,7 +303,7 @@ gst_vpx_enc_er_flags_get_type (void) "Allow partitions to be decoded independently", "partitions"}, {0, NULL, NULL} }; - static volatile GType id = 0; + static GType id = 0; if (g_once_init_enter ((gsize *) & id)) { GType _id; Index: gst-plugins-good-1.18.4/gst/audioparsers/gstac3parse.h =================================================================== --- gst-plugins-good-1.18.4.orig/gst/audioparsers/gstac3parse.h +++ gst-plugins-good-1.18.4/gst/audioparsers/gstac3parse.h @@ -62,7 +62,7 @@ struct _GstAc3Parse { gint blocks; gboolean eac; gboolean sent_codec_tag; - volatile gint align; + gint align; GstPadChainFunction baseparse_chainfunc; }; Index: gst-plugins-good-1.18.4/sys/rpicamsrc/gstrpicamsrc.c =================================================================== --- gst-plugins-good-1.18.4.orig/sys/rpicamsrc/gstrpicamsrc.c +++ gst-plugins-good-1.18.4/sys/rpicamsrc/gstrpicamsrc.c @@ -292,7 +292,7 @@ gst_rpi_cam_src_sensor_mode_get_type (vo "640x480 4:3 60.1-90fps", "640x480-fast"}, {0, NULL, NULL} }; - static volatile GType id = 0; + static GType id = 0; if (g_once_init_enter ((gsize *) & id)) { GType _id; _id = g_enum_register_static ("GstRpiCamSrcSensorMode", values); Index: gst-plugins-good-1.18.4/sys/ximage/ximageutil.c =================================================================== --- gst-plugins-good-1.18.4.orig/sys/ximage/ximageutil.c +++ gst-plugins-good-1.18.4/sys/ximage/ximageutil.c @@ -26,7 +26,7 @@ GType gst_meta_ximage_api_get_type (void) { - static volatile GType type; + static GType type; static const gchar *tags[] = { "memory", NULL }; if (g_once_init_enter (&type)) {