Accepting request 896607 from home:cgiboudeaux:branches:devel:libraries:c_c++
- Add GCC 11 build fix: * 0001-Fix-build-with-GCC-11.patch OBS-URL: https://build.opensuse.org/request/show/896607 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libLASi?expand=0&rev=19
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 1 08:30:05 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
- Add GCC 11 build fix:
|
||||
* 0001-Fix-build-with-GCC-11.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 5 12:03:33 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>
|
||||
|
||||
|
||||
+3
-3
@@ -29,6 +29,8 @@ Source: http://download.sourceforge.net/lasi/%{name}-%{version}.tar.gz
|
||||
Patch0: libLASi-link_gobject2.patch
|
||||
# PATCH-FEATURE-OPENSUSE libLASi-do_not_build_examples.patch
|
||||
Patch1: libLASi-do_not_build_examples.patch
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch2: 0001-Fix-build-with-GCC-11.patch
|
||||
BuildRequires: cmake >= 3.13.2
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: fdupes
|
||||
@@ -102,9 +104,7 @@ This package provides the header files necessary for development with
|
||||
%{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
From 75d1d700ecfb1627eb61722d4de31fbf4f97347e Mon Sep 17 00:00:00 2001
|
||||
From: Christophe Giboudeaux <christophe@krop.fr>
|
||||
Date: Tue, 1 Jun 2021 10:29:37 +0200
|
||||
Subject: [PATCH] Fix build with GCC 11
|
||||
|
||||
Dynamic exception specification are deprecated in C++11 and were removed
|
||||
in C++17.
|
||||
---
|
||||
src/util.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/util.h b/src/util.h
|
||||
index 8e728de..6e6f8b3 100644
|
||||
--- a/src/util.h
|
||||
+++ b/src/util.h
|
||||
@@ -27,7 +27,7 @@ std::ostream& operator<<(std::ostream&, const FT_Outline);
|
||||
|
||||
/** Converts a freetype return code into an exception.
|
||||
*/
|
||||
-inline void evalReturnCode(const int errCode, const char* funcName) throw (std::runtime_error) {
|
||||
+inline void evalReturnCode(const int errCode, const char* funcName) {
|
||||
if (errCode)
|
||||
throw std::runtime_error(std::string("Error returned from ") + funcName);
|
||||
}
|
||||
--
|
||||
2.31.1
|
||||
|
||||
Reference in New Issue
Block a user