Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lnav for openSUSE:Factory checked in at 2022-06-10 15:57:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lnav (Old) and /work/SRC/openSUSE:Factory/.lnav.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lnav" Fri Jun 10 15:57:55 2022 rev:3 rq:982031 version:0.10.1 Changes: -------- --- /work/SRC/openSUSE:Factory/lnav/lnav.changes 2022-03-11 11:47:09.322877002 +0100 +++ /work/SRC/openSUSE:Factory/.lnav.new.1548/lnav.changes 2022-06-10 15:58:14.108871556 +0200 @@ -1,0 +2,5 @@ +Tue Jun 7 20:42:51 UTC 2022 - Dirk M??ller <dmuel...@suse.com> + +- add gcc12-includes.patch to fix build with gcc 12 + +------------------------------------------------------------------- New: ---- gcc12-includes.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lnav.spec ++++++ --- /var/tmp/diff_new_pack.pS059W/_old 2022-06-10 15:58:14.672872239 +0200 +++ /var/tmp/diff_new_pack.pS059W/_new 2022-06-10 15:58:14.676872245 +0200 @@ -37,6 +37,7 @@ Source1: lnav.desktop #PATCH-FIX-UPSTREAM fix-for-upstream-sources.patch gh#tstack/lnav#942 Patch0: fix-for-upstream-sources.patch +Patch1: https://github.com/tstack/lnav/commit/b8a31ae9b4bcd5690a2b3d2fbd6373caffbc4a57.patch#/gcc12-includes.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libcurl-devel @@ -66,8 +67,7 @@ quickly and efficiently focus on problems. %prep -%setup -q -%patch0 -p1 +%autosetup -p1 %build export CXX=%{cxx} ++++++ gcc12-includes.patch ++++++ >From b8a31ae9b4bcd5690a2b3d2fbd6373caffbc4a57 Mon Sep 17 00:00:00 2001 From: Peter Schiffer <3899107+pschi...@users.noreply.github.com> Date: Mon, 21 Feb 2022 21:09:30 +0100 Subject: [PATCH] Add `#include <iterator>` to `string_util.cc` Lnav fails to build on the next Fedora version due to the following error: ``` make[3]: Entering directory '/builddir/build/BUILD/lnav-0.10.1/src/base' g++ -std=c++14 -DHAVE_CONFIG_H -I. -I../../src -Wall -I../../src/ -I../../src/third-party -I../../src/fmtlib -I../../src/third-party/doctest-root -I/usr/local/include -D_ISOC99_SOURCE -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o string_util.o string_util.cc make[3]: Leaving directory '/builddir/build/BUILD/lnav-0.10.1/src/base' string_util.cc: In function 'std::string repeat(const std::string&, size_t)': string_util.cc:199:22: error: 'ostream_iterator' is not a member of 'std' 199 | std::fill_n(std::ostream_iterator<std::string>(os), num, input); | ^~~~~~~~~~~~~~~~ string_util.cc:38:1: note: 'std::ostream_iterator' is defined in header '<iterator>'; did you forget to '#include <iterator>'? 37 | #include "string_util.hh" +++ |+#include <iterator> 38 | ``` Reason is probably the updated GNU toolchain, more info: https://fedoraproject.org/wiki/Changes/GNUToolchainF36 This patch fixes the issue. --- src/base/string_util.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/base/string_util.cc b/src/base/string_util.cc index 661add423..ad46cfdcb 100644 --- a/src/base/string_util.cc +++ b/src/base/string_util.cc @@ -29,6 +29,7 @@ #include "config.h" +#include <iterator> #include <regex> #include <sstream>