From 715b4193e94984830f65e2804f922d914201ff28 Mon Sep 17 00:00:00 2001 From: EastDong Date: Tue, 13 Jun 2023 16:54:57 +0800 Subject: [PATCH] fix gcc error --- byzanz-gcc11.patch | 13 +++++++++++++ byzanz.spec | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 byzanz-gcc11.patch diff --git a/byzanz-gcc11.patch b/byzanz-gcc11.patch new file mode 100644 index 0000000..b3e131a --- /dev/null +++ b/byzanz-gcc11.patch @@ -0,0 +1,13 @@ +diff --git a/src/byzanzencoder.c b/src/byzanzencoder.c +index b3a4d51..d05abf9 100644 +--- a/src/byzanzencoder.c ++++ b/src/byzanzencoder.c +@@ -171,7 +171,7 @@ static void byzanz_encoder_class_intern_init (gpointer klass, gpointer data) + GType + byzanz_encoder_get_type (void) + { +- static volatile gsize g_define_type_id__volatile = 0; ++ static gsize g_define_type_id__volatile = 0; + if (g_once_init_enter (&g_define_type_id__volatile)) { + GTypeInfo info = { + sizeof (ByzanzEncoderClass), diff --git a/byzanz.spec b/byzanz.spec index 6d4f356..ff8695c 100644 --- a/byzanz.spec +++ b/byzanz.spec @@ -2,12 +2,13 @@ Summary: A desktop recorder Name: byzanz Version: 0.3 -Release: 0.24 +Release: 0.25 License: GPLv3+ URL: http://git.gnome.org/browse/byzanz/ #Source0: http://download.gnome.org/sources/%{name}/0.2/%{name}-%{version}.tar.bz2 # git archive --format=tar --prefix=byzanz-%{git}/ %{git} | xz > byzanz-%{git} Source0: byzanz-%{git}.tar.xz +Patch0: byzanz-gcc11.patch BuildRequires: cairo-devel >= 1.8.10 gtk3-devel libXdamage-devel >= 1.0 glib2-devel >= 2.6.0 BuildRequires: gnome-common gstreamer1-devel gstreamer1-plugins-base-devel gettext-devel @@ -24,6 +25,7 @@ A command-line recording tool is included. %prep %setup -q -n byzanz-%{git} +%patch0 -p1 %build ./autogen.sh @@ -52,6 +54,9 @@ make DESTDIR=%{buildroot} install %{_mandir}/man1/byzanz-record.1* %changelog +* Tue Jun 13 2023 EastDong - 0.3-0.25 +- Fix '__atomic_load' discards 'volatile' qualifier + * Fri May 07 2021 weidong - 0.3-0.24 - Initial package.