FreeBSD Bugzilla – Attachment 252082 Details for
Bug 280298
net/miniupnpc: in 2.2.8 changed API for UPNP_GetValidIGD: build error net-p2p/transmission-components and other
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v2 (apply via `git am`)
0001-net-p2p-transmission-components-Fix-build-with-miniu.patch (text/plain), 2.97 KB, created by
Anton Saietskii
on 2024-07-15 14:37:55 UTC
(
hide
)
Description:
v2 (apply via `git am`)
Filename:
MIME Type:
Creator:
Anton Saietskii
Created:
2024-07-15 14:37:55 UTC
Size:
2.97 KB
patch
obsolete
>From 6d2b6de9ef4bc8d362f39d31e6773876b63f7401 Mon Sep 17 00:00:00 2001 >From: Anton Saietskii <vsasjason@gmail.com> >Date: Mon, 15 Jul 2024 17:21:10 +0259 >Subject: [PATCH] net-p2p/transmission-components: Fix build with > miniupnpc-2.2.8 > >/usr/ports/net-p2p/transmission-components/work-cli/transmission-4.0.6/libtransmission/port-forwarding-upnp.cc:278:13: >error: no matching function for call to 'UPNP_GetValidIGD' > 278 | if (UPNP_GetValidIGD(devlist, &handle->urls, >&handle->data, std::data(lanaddr), std::size(lanaddr) - 1) == > | ^~~~~~~~~~~~~~~~ >/usr/local/include/miniupnpc/miniupnpc.h:122:1: note: candidate function >not viable: requires 7 arguments, but 5 were provided > 122 | UPNP_GetValidIGD(struct UPNPDev * devlist, > | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ > 123 | struct UPNPUrls * urls, > | ~~~~~~~~~~~~~~~~~~~~~~~ > 124 | struct IGDdatas * data, > | ~~~~~~~~~~~~~~~~~~~~~~~ > 125 | char * lanaddr, int lanaddrlen, > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 126 | char * wanaddr, int wanaddrlen); > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >1 error generated. >ninja: build stopped: subcommand failed. >*** Error code 1 >--- > ...ch-libtransmission_port-forwarding-upnp.cc | 20 +++++++++++++++++++ > 1 file changed, 20 insertions(+) > create mode 100644 net-p2p/transmission-components/files/patch-libtransmission_port-forwarding-upnp.cc > >diff --git a/net-p2p/transmission-components/files/patch-libtransmission_port-forwarding-upnp.cc b/net-p2p/transmission-components/files/patch-libtransmission_port-forwarding-upnp.cc >new file mode 100644 >index 000000000000..0a3d6a5d7634 >--- /dev/null >+++ b/net-p2p/transmission-components/files/patch-libtransmission_port-forwarding-upnp.cc >@@ -0,0 +1,20 @@ >+diff --git a/libtransmission/port-forwarding-upnp.cc b/libtransmission/port-forwarding-upnp.cc >+index 6d7bbc7f7c2..a4146e0df13 100644 >+--- libtransmission/port-forwarding-upnp.cc >++++ 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()))); >-- >2.45.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
vsasjason
:
maintainer-approval?
Actions:
View
|
Diff
Attachments on
bug 280298
:
252077
|
252080
|
252081
| 252082 |
252089
|
252090