Fix invalid use of volatile caught by gcc-11

This commit is contained in:
Jeff Law 2020-11-02 09:54:46 -07:00
parent 83534d6046
commit bbd2d17f8d
2 changed files with 18 additions and 1 deletions

13
rpm-ostree-gcc11.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/src/daemon/rpmostree-sysroot-upgrader.c b/src/daemon/rpmostree-sysroot-upgrader.c
index 7b160e4..af48122 100644
--- a/src/daemon/rpmostree-sysroot-upgrader.c
+++ b/src/daemon/rpmostree-sysroot-upgrader.c
@@ -1712,7 +1712,7 @@ rpmostree_sysroot_upgrader_deploy (RpmOstreeSysrootUpgrader *self,
GType
rpmostree_sysroot_upgrader_flags_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))
{

View File

@ -4,12 +4,13 @@
Summary: Hybrid image/package system
Name: rpm-ostree
Version: 2020.6
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2+
URL: https://github.com/coreos/rpm-ostree
# This tarball is generated via "cd packaging && make -f Makefile.dist-packaging dist-snapshot"
# in the upstream git. If rust is enabled, it contains vendored sources.
Source0: https://github.com/coreos/rpm-ostree/releases/download/v%{version}/rpm-ostree-%{version}.tar.xz
Patch0: %{name}-gcc11.patch
ExclusiveArch: %{rust_arches}
@ -193,6 +194,9 @@ $PYTHON autofiles.py > files.devel \
%files devel -f files.devel
%changelog
* Mon Nov 02 2020 Jeff Law <law@redhat.com> - 2020.6-2
- Fix invalid use of volatile caught by gcc-11
* Fri Oct 30 16:48:43 UTC 2020 Colin Walters <walters@verbum.org> - 2020.6-1
- https://github.com/coreos/rpm-ostree/releases/tag/v2020.6