bitcoin/depends/packages
merge-script 6e21dedbf2
Merge bitcoin/bitcoin#31130: Drop miniupnp dependency
40e5f26a3f mapport: remove dead code in DispatchMapPort (Antoine Poinsot)
38fdf7c1fb mapport: drop outdated comments (Antoine Poinsot)
b7b2435290 doc: add release note for #31130 (Antoine Poinsot)
1b6dec98da depends: drop miniupnpc (Antoine Poinsot)
953533d021 doc: remove mentions of UPnP (Antoine Poinsot)
94ad614482 ci: remove UPnP options (Antoine Poinsot)
a9598e5eaa build: drop miniupnpc dependency (Antoine Poinsot)
a5fcfb7385 interfaces: remove now unused 'use_upnp' arg from 'mapPort' (Antoine Poinsot)
038bbe7b20 daemon: remove UPnP support (Antoine Poinsot)
844770b05e qt: remove UPnP settings (Antoine Poinsot)

Pull request description:

  This PR removes UPnP IGD support and drops our [miniupnp](https://github.com/miniupnp/miniupnp) dependency.

  Miniupnpc is a C library (somewhat) maintained by a single person which had several vulnerabilities in the past (a couple dozens are listed [here](https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=miniupnp)), some of which directly affected our software ([RCE in 2015](https://bitcoincore.org/en/2024/07/03/disclose_upnp_rce/), [OOM in 2020](https://bitcoincore.org/en/2024/07/31/disclose-upnp-oom/)).

  The main purpose of this functionality is to have more (non-data-center) reachable nodes on the network. For a non-technical user running Bitcoin Core at home, the software would automatically open a port on their router to receive incoming connections. This way, users not able to manually open a port on their router would still provide the network with more resources and enhance its diversity.

  However, due to past vulnerabilities (and a worry about unknown future ones) in miniupnpc this feature was disabled by default in https://github.com/bitcoin/bitcoin/pull/6795. Having it disabled by default kills (most of?) the purpose of having this functionality in the first place: someone technical enough to understand the `-upnp` startup option or the "enable UPnP" setting is most likely able to open a port on his box in the first place.

  In addition, laanwj implemented PCP with a NAT-PMP fallback directly in Bitcoin Core in https://github.com/bitcoin/bitcoin/pull/30043. If we ever want to re-enable automatic NAT traversal by default in Bitcoin Core, this is the best option (and in my opinion the only sane one). The NAT-PMP fallback makes it so compatibility shouldn't be (much of) an issue.

  On balance, i believe that keeping this functionality and this barely maintained C dependency has higher costs than benefits. Therefore i propose that we get rid of it.

ACKs for top commit:
  jarolrod:
    ACK 40e5f26a3f
  1440000bytes:
    Code Review ACK 40e5f26a3f
  laanwj:
    Code review ACK 40e5f26a3f
  i-am-yuvi:
    Tested ACK 40e5f26a3f

Tree-SHA512: 9ea48662775510f5ec6de7af65790f7c8d211603398e9d8c634a86387be81b28081419a95b4d6680d3d7fe6a9f16cec99f16516548201dc7e49781909899a657
2024-10-28 10:47:34 +00:00
..
bdb.mk depends: always configure with --with-pic 2024-03-14 15:41:17 +00:00
boost.mk depends: Update Boost download link 2024-06-03 09:49:34 +01:00
capnp.mk depends: Fix reproducibility when building with MULTIPROCESS=1 2024-09-23 13:24:08 +01:00
expat.mk depends: switch to building expat with CMake 2024-07-23 15:37:01 +01:00
fontconfig.mk depends: switch fontconfig to .tar.gz 2024-04-19 13:01:09 +01:00
freetype.mk depends: Cleanup postprocess commands after switching to CMake 2024-07-25 11:59:18 +01:00
libevent.mk depends: build libevent with -D_GNU_SOURCE 2024-09-03 10:16:52 +01:00
libmultiprocess.mk depends: Fix reproducibility when building with MULTIPROCESS=1 2024-09-23 13:24:08 +01:00
libXau.mk depends: switch libXau to .tar.gz 2024-04-19 13:01:09 +01:00
libxcb.mk libxcb: use a patch instead of sed 2022-07-29 14:02:23 +01:00
libxcb_util.mk depends: switch libxcb_util to .tar.gz 2024-04-19 13:01:09 +01:00
libxcb_util_image.mk depends: switch libxcb_util_image to .tar.gz 2024-04-19 13:01:10 +01:00
libxcb_util_keysyms.mk depends: switch libxcb_util_keysyms to .tar.gz 2024-04-19 13:01:10 +01:00
libxcb_util_render.mk depends: switch libxcb_util_render to .tar.gz 2024-04-19 13:01:10 +01:00
libxcb_util_wm.mk depends: switch libxcb_util_wm to .tar.gz 2024-04-19 13:01:10 +01:00
libxkbcommon.mk build: suppress array-bounds errors in libxkbcommon 2022-06-23 17:29:31 +01:00
native_capnp.mk depends: Build native_capnp package with CMake 2023-12-04 14:39:59 +00:00
native_libmultiprocess.mk Update libmultiprocess library 2024-10-16 12:13:27 -04:00
packages.mk depends: drop miniupnpc 2024-10-25 09:27:30 -04:00
qrencode.mk depends: cleanup after qrencode build 2024-07-25 12:02:48 +01:00
qt.mk cmake: Add cross-compiling support 2024-08-16 21:19:11 +01:00
sqlite.mk depends: sqlite 3.46.1 2024-08-29 16:42:18 +01:00
systemtap.mk Revert "depends: systemtap: remove variadic params that trigger compiler warnings" 2024-01-04 17:11:37 +00:00
xcb_proto.mk depends: xcb-proto 1.15.2 2023-07-18 11:27:24 +01:00
xproto.mk depends: switch xproto to .tar.gz 2024-04-19 13:01:09 +01:00
zeromq.mk depends: Fix CMake-generated libzmq.pc file 2024-08-28 12:00:49 +01:00