Fix incorrect volatile exposed by gcc-11
This commit is contained in:
parent
1486520481
commit
b7a7c93548
13
open-vm-tools-gcc11.patch
Normal file
13
open-vm-tools-gcc11.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/lib/pollGtk/pollGtk.c b/lib/pollGtk/pollGtk.c
|
||||||
|
index 4ccaeda..336a8bf 100644
|
||||||
|
--- a/lib/pollGtk/pollGtk.c
|
||||||
|
+++ b/lib/pollGtk/pollGtk.c
|
||||||
|
@@ -127,7 +127,7 @@ typedef struct Poll {
|
||||||
|
} Poll;
|
||||||
|
|
||||||
|
static Poll *pollState;
|
||||||
|
-static volatile gsize inited = 0;
|
||||||
|
+static gsize inited = 0;
|
||||||
|
|
||||||
|
static VMwareStatus
|
||||||
|
PollGtkCallback(PollClassSet classSet, // IN
|
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
Name: open-vm-tools
|
Name: open-vm-tools
|
||||||
Version: %{toolsversion}
|
Version: %{toolsversion}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
|
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://github.com/vmware/%{name}
|
URL: https://github.com/vmware/%{name}
|
||||||
@ -46,6 +46,7 @@ ExclusiveArch: %{ix86} x86_64
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
#Patch1: patch1.patch
|
#Patch1: patch1.patch
|
||||||
|
Patch2: %{name}-gcc11.patch
|
||||||
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -167,7 +168,7 @@ useful for verifying the functioning of %{name} in VMware virtual
|
|||||||
machines.
|
machines.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p2 -n %{name}-%{version}-%{toolsbuild}
|
%autosetup -p1 -n %{name}-%{version}-%{toolsbuild}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Required for regenerating configure script when
|
# Required for regenerating configure script when
|
||||||
@ -391,6 +392,9 @@ fi
|
|||||||
%{_bindir}/vmware-vgauth-smoketest
|
%{_bindir}/vmware-vgauth-smoketest
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 30 2020 Jeff Law <law@redhat.com> - 11.1.5-2
|
||||||
|
- Fix incorrect volatile exposed by gcc-11
|
||||||
|
|
||||||
* Tue Sep 08 2020 Ravindra Kumar <ravindrakumar@vmware.com> - 11.1.5-1
|
* Tue Sep 08 2020 Ravindra Kumar <ravindrakumar@vmware.com> - 11.1.5-1
|
||||||
- Package new upstream version open-vm-tools-11.1.5-16724464.
|
- Package new upstream version open-vm-tools-11.1.5-16724464.
|
||||||
- Removed gcc10-warning.patch and sdmp-fixes.patch (no longer needed).
|
- Removed gcc10-warning.patch and sdmp-fixes.patch (no longer needed).
|
||||||
|
Loading…
Reference in New Issue
Block a user