Backport upstream patches to fix invalid use of volatile objects

This is needed for gcc 11.
This commit is contained in:
Kalev Lember 2020-11-24 12:25:41 +01:00
parent a6c366328b
commit f9fbe5a4c8
2 changed files with 3426 additions and 1 deletions

3417
1719.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
Name: glib2
Version: 2.67.0
Release: 4%{?dist}
Release: 5%{?dist}
Summary: A library of handy utility functions
License: LGPLv2+
@ -14,6 +14,10 @@ Patch0: gnutls-hmac.patch
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1728
Patch1: 1728.patch
# gcc 11 support: Fix invalid use of volatile objects
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719
Patch2: 1719.patch
# For gnutls-hmac.patch
BuildRequires: pkgconfig(gnutls)
@ -238,6 +242,10 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%{_datadir}/installed-tests
%changelog
* Tue Nov 24 2020 Kalev Lember <klember@redhat.com> - 2.67.0-5
- Backport upstream patches to fix invalid use of volatile objects
(gcc 11 support)
* Wed Nov 11 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.67.0-4
- Make GnuTLS patch RHEL-specific, and make glib2-static subpackage Fedora-specific