[packages/feathercoin] - updated to 0.19.1.1, added patch for miniupnpc API 18

qboosh qboosh at pld-linux.org
Sun Sep 22 14:29:18 CEST 2024


commit 414449494d19692a5e3cd7b97c7ef2376ecc113a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Sep 22 14:32:05 2024 +0200

    - updated to 0.19.1.1, added patch for miniupnpc API 18

 feathercoin-miniupnpc.patch | 14 ++++++++++++++
 feathercoin.spec            | 10 +++++-----
 qt-5.15.patch               | 22 ----------------------
 3 files changed, 19 insertions(+), 27 deletions(-)
---
diff --git a/feathercoin.spec b/feathercoin.spec
index 8c0667e..8a7ee94 100644
--- a/feathercoin.spec
+++ b/feathercoin.spec
@@ -7,15 +7,15 @@
 Summary:	Feathercoin - a peer-to-peer currency
 Summary(pl.UTF-8):	Feathercoin - waluta peer-to-peer
 Name:		feathercoin
-Version:	0.19.1
-Release:	9
+Version:	0.19.1.1
+Release:	1
 License:	MIT
 Group:		Applications/Networking
 #Source0Download: https://github.com/FeatherCoin/Feathercoin/releases
 Source0:	https://github.com/FeatherCoin/Feathercoin/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	5af573e26b1fc7cb57ef5efc5dd88801
+# Source0-md5:	23f9b229dbf6bf9c8763f3f426c25fcd
 Patch0:		lib.patch
-Patch1:		qt-5.15.patch
+Patch1:		%{name}-miniupnpc.patch
 Patch2:		%{name}-includes.patch
 Patch3:		%{name}-univalue.patch
 Patch4:		missing-includes.patch
@@ -121,7 +121,7 @@ Oparty na Qt portfel Feathercoin.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-# --with-gui defaults to qt4, but it doesn't build (QJsonObject is required)
+# --with-gui accepts no,auto,qt5
 %configure \
 	--disable-bench \
 	--enable-bip70 \
diff --git a/feathercoin-miniupnpc.patch b/feathercoin-miniupnpc.patch
new file mode 100644
index 0000000..3818f26
--- /dev/null
+++ b/feathercoin-miniupnpc.patch
@@ -0,0 +1,14 @@
+--- Feathercoin-0.19.1.1/src/net.cpp.orig	2022-10-29 18:23:33.000000000 +0200
++++ Feathercoin-0.19.1.1/src/net.cpp	2024-09-22 13:03:50.669769555 +0200
+@@ -1448,7 +1448,11 @@ static void ThreadMapPort()
+     struct IGDdatas data;
+     int r;
+ 
++#if MINIUPNPC_API_VERSION < 18
+     r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr));
++#else
++    r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr), NULL, 0);
++#endif
+     if (r == 1)
+     {
+         if (fDiscover) {
diff --git a/qt-5.15.patch b/qt-5.15.patch
deleted file mode 100644
index 8ba7b32..0000000
--- a/qt-5.15.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From 79b0a69e09c1a912122e6431ea3c530cc292c690 Mon Sep 17 00:00:00 2001
-From: Andrew Chow <achow101-github at achow101.com>
-Date: Thu, 28 May 2020 14:56:47 -0400
-Subject: [PATCH] Add missing QPainterPath include
-
-This is needed to compile with Qt 5.15.
----
- src/qt/trafficgraphwidget.cpp | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/qt/trafficgraphwidget.cpp b/src/qt/trafficgraphwidget.cpp
-index 757648f4854d..6428fc4dafc8 100644
---- a/src/qt/trafficgraphwidget.cpp
-+++ b/src/qt/trafficgraphwidget.cpp
-@@ -7,6 +7,7 @@
- #include <qt/clientmodel.h>
- 
- #include <QPainter>
-+#include <QPainterPath>
- #include <QColor>
- #include <QTimer>
- 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/feathercoin.git/commitdiff/414449494d19692a5e3cd7b97c7ef2376ecc113a



More information about the pld-cvs-commit mailing list