From 71afea71a2fbcb00fa4d7942e2267611d2be9f28 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Nov 06 2020 17:35:32 +0000 Subject: Fix bogus volatile caught by gcc-11 --- diff --git a/cjs-gcc11.patch b/cjs-gcc11.patch new file mode 100644 index 0000000..957e265 --- /dev/null +++ b/cjs-gcc11.patch @@ -0,0 +1,13 @@ +diff --git a/cjs/error-types.cpp b/cjs/error-types.cpp +index ab91ac1..d2d41ef 100644 +--- a/cjs/error-types.cpp ++++ b/cjs/error-types.cpp +@@ -31,7 +31,7 @@ G_DEFINE_QUARK(gjs-js-error-quark, gjs_js_error) + // clang-format on + + GType gjs_js_error_get_type(void) { +- static volatile GType g_type_id; ++ static GType g_type_id; + + if (g_once_init_enter(&g_type_id)) { + static GEnumValue errors[] = { diff --git a/cjs.spec b/cjs.spec index 2e7c658..6dcae53 100644 --- a/cjs.spec +++ b/cjs.spec @@ -10,7 +10,7 @@ Name: cjs Epoch: 1 Version: 4.7.0 -Release: 0.2%{?shortcommit0:.%{date}git%{shortcommit0}}%{?dist} +Release: 0.3%{?shortcommit0:.%{date}git%{shortcommit0}}%{?dist} Summary: Javascript Bindings for Cinnamon License: MIT and (MPLv1.1 or GPLv2+ or LGPLv2+) @@ -20,6 +20,7 @@ License: MIT and (MPLv1.1 or GPLv2+ or LGPLv2+) # Stack printer (gjs/stack.c) URL: https://github.com/linuxmint/%{name} Source0: %{url}/archive/%{commit}/%{name}-%{commit}.tar.gz +Patch0: %{name}-gcc11.patch BuildRequires: dbus-daemon BuildRequires: gcc-c++ @@ -110,6 +111,9 @@ xvfb-run -a /usr/bin/meson test -C %{_vpath_builddir} \ %changelog +* Fri Nov 06 2020 Jeff Law - 1:4.7.0-0.3.20201019gitbefc11a +- Fix bogus volatile caught by gcc-11 + * Tue Oct 20 2020 Leigh Scott - 1:4.7.0-0.2.20201019gitbefc11a - Rebuild against mozjs78-78.4.0-1