[packages/Servus] fix build due to missing header include; rel 3
atler
atler at pld-linux.org
Sat Feb 18 15:50:15 CET 2023
commit 68d816c5ca58e937b58855333cd3d795e9f180c9
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Feb 18 15:49:39 2023 +0100
fix build due to missing header include; rel 3
from: https://github.com/HBPVIS/Servus/pull/100
Servus.spec | 4 +++-
missing-headers.patch | 21 +++++++++++++++++++++
2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/Servus.spec b/Servus.spec
index 3edb744..499f836 100644
--- a/Servus.spec
+++ b/Servus.spec
@@ -6,12 +6,13 @@ Summary: C++ network utility library that provides a zeroconf API, URI parsing a
Summary(pl.UTF-8): Biblioteka narzędzi sieciowych udostępniająca API zeroconf, analizy URI i UUID
Name: Servus
Version: 1.5.2
-Release: 2
+Release: 3
License: LGPL v3
Group: Libraries
#Source0Download: https://github.com/HBPVIS/Servus/releases
Source0: https://github.com/HBPVIS/Servus/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: bc6fb62a002fd288fc2c1f12878a533c
+Patch0: missing-headers.patch
URL: https://github.com/HBPVIS/Servus
BuildRequires: Eyescale-CMake >= 2016.04
BuildRequires: Qt5Core-devel >= 5
@@ -101,6 +102,7 @@ Graficzny interfejs servusBrowser.
%prep
%setup -q
+%patch0 -p1
rmdir CMake/common
ln -s %{_datadir}/Eyescale-CMake CMake/common
diff --git a/missing-headers.patch b/missing-headers.patch
new file mode 100644
index 0000000..b61c087
--- /dev/null
+++ b/missing-headers.patch
@@ -0,0 +1,21 @@
+From d3ac67e53ab82f9a5e701566cd622d9e0bde92b3 Mon Sep 17 00:00:00 2001
+From: Alan Mok <34705943+mokpi at users.noreply.github.com>
+Date: Mon, 15 Feb 2021 02:26:55 +0900
+Subject: [PATCH] Add ` #include <stdexcept>`.
+
+---
+ servus/serializable.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/servus/serializable.h b/servus/serializable.h
+index 0ee07dc..651b4ae 100644
+--- a/servus/serializable.h
++++ b/servus/serializable.h
+@@ -23,6 +23,7 @@
+ #include <servus/api.h>
+ #include <servus/types.h>
+
++#include <stdexcept> // runtime_error
+ #include <functional> // function
+ #include <memory> // shared_ptr
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/Servus.git/commitdiff/68d816c5ca58e937b58855333cd3d795e9f180c9
More information about the pld-cvs-commit
mailing list