Fixes #30266
Miniupnpc 2.2.8 changed the function signature of UPNP_GetValidIGD
without taking much care with the abi :(
~This is the minimal change to cope with that. Also included in this PR is a temporary bump to 2.2.8 to verify that it builds correctly. I’m happy to revert that and discuss the bump separately, as miniupnpc bumps require some scrutiny.~
I believe that this is problematic if we build against one version and encounter a different one at runtime. This is not a problem for depends because we build statically. But for users who are self-building against shared system libs, care must be taken to run against the same version used for linking.
Some quick digging shows that at least Ubuntu/Arch make the distinction between soversions:
libminiupnpc.so.17
-> libminiupnpc.so.18
. So in practice, I suppose this shouldn’t be much of a problem.
Boooo for the upstream loose abi policy.