mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
package/transmission: add upstream patch to build with libminiupnpc >= 2.2.8
Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
7d95c34d64
commit
d1193da9a8
39
package/transmission/0001-bump-miniupnpc-to-2.2.8.patch
Normal file
39
package/transmission/0001-bump-miniupnpc-to-2.2.8.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
From febfe49ca3ecab1a7142ecb34012c1f0b2bcdee8 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?C=C5=93ur?= <coeur@gmx.fr>
|
||||
Date: Sat, 15 Jun 2024 07:24:06 +0800
|
||||
Subject: [PATCH] bump miniupnpc to 2.2.8 (#6907)
|
||||
|
||||
* bump miniupnpc to 2.2.8
|
||||
|
||||
* Avoid build error "ln: include/miniupnpc/.: Operation not permitted"
|
||||
|
||||
Upstream: https://github.com/transmission/transmission/commit/febfe49ca3ecab1a7142ecb34012c1f0b2bcdee8
|
||||
|
||||
[Bernd: rebased for version 4.0.6]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
Transmission.xcodeproj/project.pbxproj | 2 +-
|
||||
libtransmission/port-forwarding-upnp.cc | 9 +++++++--
|
||||
third-party/miniupnp | 2 +-
|
||||
3 files changed, 9 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/libtransmission/port-forwarding-upnp.cc b/libtransmission/port-forwarding-upnp.cc
|
||||
index 6d7bbc7f7c2..a4146e0df13 100644
|
||||
--- a/libtransmission/port-forwarding-upnp.cc
|
||||
+++ b/libtransmission/port-forwarding-upnp.cc
|
||||
@@ -261,8 +261,13 @@ tr_port_forwarding_state tr_upnpPulse(
|
||||
|
||||
FreeUPNPUrls(&handle->urls);
|
||||
auto lanaddr = std::array<char, TR_ADDRSTRLEN>{};
|
||||
- if (UPNP_GetValidIGD(devlist, &handle->urls, &handle->data, std::data(lanaddr), std::size(lanaddr) - 1) ==
|
||||
- UPNP_IGD_VALID_CONNECTED)
|
||||
+ if (
|
||||
+#if (MINIUPNPC_API_VERSION >= 18)
|
||||
+ UPNP_GetValidIGD(devlist, &handle->urls, &handle->data, std::data(lanaddr), std::size(lanaddr) - 1, nullptr, 0)
|
||||
+#else
|
||||
+ UPNP_GetValidIGD(devlist, &handle->urls, &handle->data, std::data(lanaddr), std::size(lanaddr) - 1)
|
||||
+#endif
|
||||
+ == UPNP_IGD_VALID_CONNECTED)
|
||||
{
|
||||
tr_logAddInfo(fmt::format(_("Found Internet Gateway Device '{url}'"), fmt::arg("url", handle->urls.controlURL)));
|
||||
tr_logAddInfo(fmt::format(_("Local Address is '{address}'"), fmt::arg("address", lanaddr.data())));
|
||||
Reference in New Issue
Block a user