Creating the dll subdir is no-longer required. We can drop our wingen patch.
One issue that came up in #19867:
unrelated to this change but: why are we inserting the architecture in here, seems like something not necessary to reveal
My assumption is that it was being inserted to make depends more deterministic. However I think we can improve this, as there’s no reason to reveal more of the version information either. Could leave the version as is /2.0 and either drop the architecture, or insert something else?
I’ve dropped our sed
and added a patch that just removes the OS string and miniupnpc version from the User-Agent. i.e:
0# master
1strings depends/x86_64-apple-darwin19.6.0/lib/libminiupnpc.a | rg -i User-Agent
2User-Agent: x86_64-apple-darwin19.6.0, UPnP/1.1, MiniUPnPc/2.0.20180203
3User-Agent: x86_64-apple-darwin19.6.0, UPnP/1.1, MiniUPnPc/2.0.20180203
4
5# this PR
6strings depends/x86_64-apple-darwin19.6.0/lib/libminiupnpc.a | rg -i User-Agent
7User-Agent: UPnP/1.1
8User-Agent: UPnP/1.1
Note that built unmodified (https://github.com/miniupnp/miniupnp/commit/22c13863518adfc4eae11de82cb55a69414afdae), the User-Agent would be:
0strings libminiupnpc.dylib | rg User-Agent
1User-Agent: Darwin/19.6.0, UPnP/1.1, MiniUPnPc/2.2.0
2User-Agent: Darwin/19.6.0, UPnP/1.1, MiniUPnPc/2.2.0