fix build with gcc 11; rel 14 auto/th/elektra-0.8.23-14
authorJan Palus <atler@pld-linux.org>
Thu, 27 May 2021 22:56:28 +0000 (00:56 +0200)
committerJan Palus <atler@pld-linux.org>
Thu, 27 May 2021 22:56:28 +0000 (00:56 +0200)
elektra.spec
gcc11.patch [new file with mode: 0644]

index 939b43ebe422e528f10ae9fff76208c732bc80f0..c307971b21030f7740761b1aa6c1c770e4ba9544 100644 (file)
@@ -28,7 +28,7 @@ Summary:      A key/value pair database to store software configurations
 Summary(pl.UTF-8):     Baza kluczy/wartości do przechowywania konfiguracji oprogramowania
 Name:          elektra
 Version:       0.8.23
-Release:       13
+Release:       14
 License:       BSD
 Group:         Applications/System
 Source0:       https://www.libelektra.org/ftp/elektra/releases/%{name}-%{version}.tar.gz
@@ -36,6 +36,7 @@ Source0:      https://www.libelektra.org/ftp/elektra/releases/%{name}-%{version}.tar.
 Patch0:                %{name}-zsh.patch
 Patch1:                %{name}-no-markdown.patch
 Patch2:                disable-broken-tests.patch
+Patch3:                gcc11.patch
 URL:           https://www.libelektra.org/
 %if %{with qt}
 BuildRequires: Qt5Core-devel >= 5.3
@@ -518,6 +519,7 @@ Wiązanie języka Ruby dla Elektry.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' $(grep -l '/usr/bin/env bash' -r scripts)
 %{__sed} -i -e '1s,/usr/bin/env python,%{__python},' scripts/{find-tools,update-infos-status}
diff --git a/gcc11.patch b/gcc11.patch
new file mode 100644 (file)
index 0000000..84438d6
--- /dev/null
@@ -0,0 +1,10 @@
+--- elektra-0.8.23.orig/src/tools/kdb/cmdline.cpp      2018-05-13 18:57:57.000000000 +0200
++++ elektra-0.8.23/src/tools/kdb/cmdline.cpp   2021-05-28 00:53:03.152527591 +0200
+@@ -16,6 +16,7 @@
+ #include <cstdio>
+ #include <iostream>
++#include <limits>
+ #include <set>
+ #include <vector>
This page took 0.469718 seconds and 4 git commands to generate.