diff --git a/open-vm-tools-gcc11.patch b/open-vm-tools-gcc11.patch new file mode 100644 index 0000000..ae85124 --- /dev/null +++ b/open-vm-tools-gcc11.patch @@ -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 diff --git a/open-vm-tools.spec b/open-vm-tools.spec index 1db6fb1..c80b951 100644 --- a/open-vm-tools.spec +++ b/open-vm-tools.spec @@ -28,7 +28,7 @@ Name: open-vm-tools Version: %{toolsversion} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Open Virtual Machine Tools for virtual machines hosted on VMware License: GPLv2 URL: https://github.com/vmware/%{name} @@ -46,6 +46,7 @@ ExclusiveArch: %{ix86} x86_64 %endif #Patch1: patch1.patch +Patch2: %{name}-gcc11.patch BuildRequires: autoconf BuildRequires: automake @@ -167,7 +168,7 @@ useful for verifying the functioning of %{name} in VMware virtual machines. %prep -%autosetup -p2 -n %{name}-%{version}-%{toolsbuild} +%autosetup -p1 -n %{name}-%{version}-%{toolsbuild} %build # Required for regenerating configure script when @@ -391,6 +392,9 @@ fi %{_bindir}/vmware-vgauth-smoketest %changelog +* Fri Oct 30 2020 Jeff Law - 11.1.5-2 +- Fix incorrect volatile exposed by gcc-11 + * Tue Sep 08 2020 Ravindra Kumar - 11.1.5-1 - Package new upstream version open-vm-tools-11.1.5-16724464. - Removed gcc10-warning.patch and sdmp-fixes.patch (no longer needed).