[3.0] Backport upnp contrib update
- May 05, 2022
-
-
This configure flag was dropped in 1.8. See pupnp upstream 8abbd63b9a8190bcbbbbcbcff5cdbaaf83fbe99a (cherry picked from commit 5f20a2b4)
2baf4b09 -
Adding the `UPNP_` prefix just like the other variables will avoid potential namespaces conflicts. (cherry picked from commit 48cf7013)
a0db8719 -
(cherry picked from commit cb610b5b)
a9bfd4e5 -
libupnp 1.6 is starting to get really old and caused bugs recently with the new winpthread rework for contribs. Added contrib patches: - revert-ifaddrs.patch (revert changes breaking android) Removed contrib patches: - 0001-Do-not-try[...] -> Fixed upstream by 386b7ed7 - dont_use_down_intf.patch -> Fixed upstream by 1f2e3b88 - fix_infinite_loop.patch -> Fixed upstream by 4367cbfa - libpthread.patch -> Replaced - missing_win32.patch -> Fixed upstream by 02bb90c5 - no-getifinfo.patch -> Fixed upstream by 0296c3cd - use-inet-pton.patch -> Fixed upstream by 44cdeeb7 - use-unicode.patch -> Fixed upstream - windows-random.patch -> Fixed upstream by 44e092a6 Edited patches (mostly to fit the new sources): - miniserver.patch - upnp-no-debugfile.patch - pthread-w32-checks.patch (Partially fixed upstream by e0f44dd9) - libupnp-win32.patch (Partially fixed upstream) - libupnp-win64.patch (Partially fixed upstream by 421d5d28) - windows-version-inet.patch - libupnp-win32-exports.patch Renamed patch: - pthread-w32-force -> pthread-force (Gets applied to linux too now) (cherry picked from commit 4b31cb69)
9419aec1 -
We will soon bump libupnp to a more recent version fixing vulnerabilities for libupnp >= 1.8.3. It might be preferable to switch to the contribs version of libupnp also for snapcraft as our snap repo is still using `core18` which only provides libupnp 1.6.
9d223a21 -
VLC needs Mingw-w64 v5.0 or higher , the define mentioned in the patch was added in v3.0.0 (cherry picked from commit 6b94b967)
43a5df25 -
This patch was never used. (cherry picked from commit cf47ddcc)
5c7ba52a -
`UpnpInit` is deprecated since 1.8.3 and removed in 1.14. `UpnpInit2` offer a better replacement, working for both ipv6 and ipv4. There is no reason to keep using `UpnpInit` apart from keeping the module usable with 1.6.
de9c8cde -
These functions are inline and will be removed by the compiler anyway if unused. The #if guards add unecessary compexity. (cherry picked from commit aaef25ce)
75bb776c
-