From d782d8b0a74bf40822944dd23483ccdafd78d9cb Mon Sep 17 00:00:00 2001 From: Peter Schiffer Date: Feb 20 2023 20:31:41 +0000 Subject: fix FTBFS on F38+ - resolves: #2171598 --- diff --git a/bz-2171598-ftbfs-gcc-13.patch b/bz-2171598-ftbfs-gcc-13.patch new file mode 100644 index 0000000..8e3dadf --- /dev/null +++ b/bz-2171598-ftbfs-gcc-13.patch @@ -0,0 +1,27 @@ +From e25d3e3c69fcf57bbaec2333846b9a43c4d1fc90 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sat, 21 Jan 2023 18:11:20 +0000 +Subject: [PATCH] Fix build with GCC 13 (add missing include) + +GCC 13 (as usual for new compiler releases) shuffles around some +internal includes and so is no longer transitively included. + +Explicitly include for uint32_t. + +Signed-off-by: Sam James +--- + src/base/lnav_log.hh | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/base/lnav_log.hh b/src/base/lnav_log.hh +index 8fd8e36c0..a0837e348 100644 +--- a/src/base/lnav_log.hh ++++ b/src/base/lnav_log.hh +@@ -32,6 +32,7 @@ + #ifndef lnav_log_hh + #define lnav_log_hh + ++#include + #include + + #include diff --git a/lnav.spec b/lnav.spec index 2819c51..8dd167c 100644 --- a/lnav.spec +++ b/lnav.spec @@ -1,6 +1,6 @@ Name: lnav Version: 0.11.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Curses-based tool for viewing and analyzing log files License: BSD @@ -20,6 +20,9 @@ BuildRequires: readline-devel BuildRequires: sqlite-devel BuildRequires: zlib-devel +# https://bugzilla.redhat.com/show_bug.cgi?id=2171598 +Patch1: bz-2171598-ftbfs-gcc-13.patch + %description %{name} is an enhanced log file viewer that takes advantage of any semantic information that can be gleaned from the files being viewed, such as @@ -32,6 +35,7 @@ quickly and efficiently zero in on problems. %prep %setup -q +%patch1 -p1 %build %configure --disable-static --disable-silent-rules @@ -49,6 +53,10 @@ quickly and efficiently zero in on problems. %changelog +* Mon Feb 20 2023 Peter Schiffer - 0.11.1-3 +- resolves: #2171598 + fix FTBFS on F38+ + * Thu Jan 19 2023 Fedora Release Engineering - 0.11.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild