From a0817d75a469834cce9b6b0b70184087c127b7ca Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Jan 22 2023 04:47:32 +0000 Subject: Add patch for missing include with gcc 13 --- diff --git a/xournalpp-include.patch b/xournalpp-include.patch new file mode 100644 index 0000000..7388b51 --- /dev/null +++ b/xournalpp-include.patch @@ -0,0 +1,11 @@ +diff -up xournalpp-1.1.3/src/view/background/BackgroundConfig.h.include xournalpp-1.1.3/src/view/background/BackgroundConfig.h +--- xournalpp-1.1.3/src/view/background/BackgroundConfig.h.include 2022-11-25 23:09:30.000000000 -0700 ++++ xournalpp-1.1.3/src/view/background/BackgroundConfig.h 2023-01-21 21:25:33.487219643 -0700 +@@ -11,6 +11,7 @@ + + #pragma once + ++#include + #include + #include + diff --git a/xournalpp.spec b/xournalpp.spec index 57e3d06..cd33603 100644 --- a/xournalpp.spec +++ b/xournalpp.spec @@ -10,6 +10,8 @@ Summary: Handwriting note-taking software with PDF annotation support License: GPLv2+ URL: https://github.com/%{name}/%{name} Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +# Add missing include for gcc 13 +Patch: xournalpp-include.patch BuildRequires: cmake >= 3.10 BuildRequires: desktop-file-utils @@ -61,7 +63,7 @@ The %{name}-ui package contains a graphical user interface for %{name}. %prep -%autosetup +%autosetup -p1 %build %cmake \