From 9bcec7fa7485b5b040f279a6f8e620930579cdfd Mon Sep 17 00:00:00 2001 From: Duncaen Date: Mon, 10 Oct 2022 17:48:16 +0200 Subject: [PATCH] lyx: fix build with gcc>=12 --- srcpkgs/lyx/patches/lyx-2.3.6.1-gcc12.patch | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/lyx/patches/lyx-2.3.6.1-gcc12.patch diff --git a/srcpkgs/lyx/patches/lyx-2.3.6.1-gcc12.patch b/srcpkgs/lyx/patches/lyx-2.3.6.1-gcc12.patch new file mode 100644 index 00000000000..b1acbdb9087 --- /dev/null +++ b/srcpkgs/lyx/patches/lyx-2.3.6.1-gcc12.patch @@ -0,0 +1,22 @@ +https://src.fedoraproject.org/rpms/lyx/raw/rawhide/f/lyx-2.3.6-fix-gcc12.patch +https://bugs.gentoo.org/841743 +--- a/src/insets/InsetListings.cpp ++++ b/src/insets/InsetListings.cpp +@@ -44,6 +44,7 @@ + + #include "support/regex.h" + ++#include + #include + + using namespace std; +--- a/src/lyxfind.cpp ++++ b/src/lyxfind.cpp +@@ -52,6 +52,7 @@ + #include "support/lstrings.h" + + #include "support/regex.h" ++#include + + using namespace std; + using namespace lyx::support;