diff --git a/nvml-gcc11.patch b/nvml-gcc11.patch new file mode 100644 index 0000000..10dda34 --- /dev/null +++ b/nvml-gcc11.patch @@ -0,0 +1,13 @@ +diff --git a/src/test/util_badblock/util_badblock.c b/src/test/util_badblock/util_badblock.c +index a2274c7..0ee4479 100644 +--- a/src/test/util_badblock/util_badblock.c ++++ b/src/test/util_badblock/util_badblock.c +@@ -104,7 +104,7 @@ static void + do_open(const char *path) + { + struct pool_set *set; +- const struct pool_attr attr; ++ const struct pool_attr attr = { 0 }; + unsigned nlanes = 1; + + if (util_pool_open(&set, path, MIN_PART, diff --git a/nvml.spec b/nvml.spec index 65540c4..7e55349 100644 --- a/nvml.spec +++ b/nvml.spec @@ -32,13 +32,14 @@ Name: nvml Version: 1.9 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Persistent Memory Development Kit (formerly NVML) License: BSD URL: http://pmem.io/pmdk Source0: https://github.com/pmem/pmdk/releases/download/%{upstreamversion}/pmdk-%{upstreamversion}.tar.gz Patch0: 0001-test-fix-symbol-format-in-the-scope-tests.patch +Patch1: nvml-gcc11.patch BuildRequires: gcc BuildRequires: make @@ -533,6 +534,7 @@ provided in the command line options to check whether files are in a consistent %prep %setup -q -n pmdk-%{upstreamversion} %patch0 -p1 +%patch1 -p1 %build @@ -614,6 +616,9 @@ cp utils/pmdk.magic %{buildroot}%{_datadir}/pmdk/ %changelog +* Tue Sep 15 2020 Jeff Law - 1.9-5 +- Fix uninitialized variable in tests caught by gcc-11 + * Tue Aug 18 2020 Adam Borowski - 1.9-4 - Fix FTBFS with new binutils.