diff --git a/Fix-build-with-GCC-13.patch b/Fix-build-with-GCC-13.patch new file mode 100644 index 0000000..9db1f93 --- /dev/null +++ b/Fix-build-with-GCC-13.patch @@ -0,0 +1,30 @@ +From b47102bf6066e5342fdbb69bd767cd70a0a59bf9 Mon Sep 17 00:00:00 2001 +From: Yaakov Selkowitz +Date: Sun, 19 Feb 2023 21:28:10 -0500 +Subject: [PATCH] Fix build with GCC 13 + +As in previous versions, libstdc++ in GCC 13 has trimmed internal +inclusion of standard headers, necessitating their proper inclusion +when used: + +https://gcc.gnu.org/gcc-13/porting_to.html +--- + Common/DtaOptions.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/Common/DtaOptions.h b/Common/DtaOptions.h +index c012af1..ae368c9 100644 +--- a/Common/DtaOptions.h ++++ b/Common/DtaOptions.h +@@ -21,6 +21,8 @@ along with sedutil. If not, see . + #ifndef _DTAOPTIONS_H + #define _DTAOPTIONS_H + ++#include ++ + /** Output modes */ + typedef enum _sedutiloutput { + sedutilNormal, +-- +2.39.2 + diff --git a/sedutil.changes b/sedutil.changes index 0ce8c37..f0a018e 100644 --- a/sedutil.changes +++ b/sedutil.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 28 03:25:34 UTC 2023 - Michael Chang + +- Fix GCC 13 build error + * Fix-build-with-GCC-13.patch + ------------------------------------------------------------------- Sun Dec 4 12:16:10 UTC 2022 - Dirk Müller diff --git a/sedutil.spec b/sedutil.spec index 8f38984..af32ac0 100644 --- a/sedutil.spec +++ b/sedutil.spec @@ -1,7 +1,7 @@ # # spec file for package sedutil # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,6 +29,7 @@ Source1: module-setup.sh Source2: linuxpba.sh Source3: sedutil-pba.pl Patch0: kernel_nvme_header.patch +Patch1: Fix-build-with-GCC-13.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ @@ -47,6 +48,7 @@ the PBA image itself. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build autoreconf -fi