Add fix for GCC-12
This commit is contained in:
parent
5d1b12d347
commit
0bc24d2ae5
10
pstoedit-fix-gcc12.patch
Normal file
10
pstoedit-fix-gcc12.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/src/drvpptx.orig.cpp 2021-08-29 16:25:45.000000000 +0200
|
||||
+++ b/src/drvpptx.cpp 2022-01-28 11:57:44.765756339 +0100
|
||||
@@ -65,6 +65,7 @@
|
||||
#define ZIP_EXTERN extern
|
||||
|
||||
#include <zip.h>
|
||||
+#include <memory>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// MS VC++ Windows
|
@ -13,6 +13,9 @@ Source0: https://sourceforge.net/projects/pstoedit/files/pstoedit/%{versi
|
||||
# Fix cflags of the pkg-config file
|
||||
Patch0: pstoedit-pkglibdir.patch
|
||||
|
||||
# drvpptx.cpp:68:1: note: 'std::unique_ptr' is defined in header '<memory>'; did you forget to '#include <memory>'?
|
||||
Patch1: pstoedit-fix-gcc12.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gd-devel
|
||||
BuildRequires: dos2unix
|
||||
@ -45,7 +48,12 @@ applications
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
%autosetup -N
|
||||
|
||||
%patch0 -p1
|
||||
%if 0%{?fedora} > 35
|
||||
%patch1 -p1
|
||||
%endif
|
||||
|
||||
dos2unix doc/*.htm doc/readme.txt
|
||||
|
||||
@ -92,6 +100,7 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/pstoedit
|
||||
%changelog
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.78-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
- Add fix for GCC-12
|
||||
|
||||
* Tue Nov 23 2021 Antonio Trande <sagitter@fedoraproject.org> - 3.78-1
|
||||
- Release 3.78
|
||||
|
Loading…
Reference in New Issue
Block a user