-
Notifications
You must be signed in to change notification settings - Fork 38.7k
build: Remove port-forwarding runtime setting options from configure #26896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: Remove port-forwarding runtime setting options from configure #26896
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
1489586 to
e9db104
Compare
099b893 to
387b86a
Compare
387b86a to
fb8f847
Compare
|
Concept ACK Looking at the history, the Dbus and qrencode are now handled in "special" qt configure checks, while the ipv6 option was removed in #4115. Control of ipv6 usage was still somewhat retained through the |
|
Concept ACK on:
That's true. |
hebasto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK fb8f847
The content of src/config/bitcoin-config.h:
- on master (6b7ccb9)
$ grep -B 2 -E USE_UPNP\|USE_NATPMP src/config/bitcoin-config.h
/* NAT-PMP support not compiled if undefined, otherwise value (0 or 1)
determines default state */
#define USE_NATPMP 0
--
/* UPnP support not compiled if undefined, otherwise value (0 or 1) determines
default state */
#define USE_UPNP 0
- this PR:
$ grep -B 2 -E USE_UPNP\|USE_NATPMP src/config/bitcoin-config.h
/* NAT-PMP support */
#define USE_NATPMP 1
--
/* UPnP support */
#define USE_UPNP 1
Two suggestions only:
- No need to use
AC_DEFINE_UNQUOTEDmacros. TheAC_DEFINEworks just fine as no arguments require expansion. - Maybe document the value, which a macro is defined to, explicitly?
Default to false.
Default to false.
fb8f847 to
d51f0fa
Compare
hebasto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sedited
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK d51f0fa
…tions from configure d51f0fa doc: add release notes for 26896 (fanquake) 2b24879 build: remove --enable-upnp-default from configure (fanquake) 02f5a5e build: remove --enable-natpmp-default from configure (fanquake) 25a0e8b Remove configure-time setting of DEFAULT_UPNP (fanquake) 06562e5 Remove configure-time setting of DEFAULT_NATPMP (fanquake) Pull request description: This PR removes the `--enable-upnp-default` and `--enable-natpmp-default` options from configure. It's odd to me that we maintain configure-time options for setting the default port-forwarding runtime state (but no other similar options), and I'm not sure what use-case it satisfies, that can't be achieved by multiple other means. I also doubt that we'll ever restart using these in release builds, or turning on any of this by default. I think the only scenario these options would be used is when you want to compile your own binaries (we don't use them in Guix), with port-forwarding on by default, but otherwise can't or don't want to use a `.conf` file, can't or don't want to pass command line options at runtime, and also don't want to modify the source code? ACKs for top commit: hebasto: ACK d51f0fa, rebased and comments have been addressed since my recent [review](bitcoin#26896 (review)). TheCharlatan: ACK d51f0fa Tree-SHA512: 481decd8bddd8b03b7319591e3acf189f7b6b96c9a9a8c5bc1a3f8ec00d0b8f9b52d2f5c28a298a2ec947cfe9611cfd184e393ccb2e4e21bfce86ca7d4de60d3
…tions from configure d51f0fa doc: add release notes for 26896 (fanquake) 2b24879 build: remove --enable-upnp-default from configure (fanquake) 02f5a5e build: remove --enable-natpmp-default from configure (fanquake) 25a0e8b Remove configure-time setting of DEFAULT_UPNP (fanquake) 06562e5 Remove configure-time setting of DEFAULT_NATPMP (fanquake) Pull request description: This PR removes the `--enable-upnp-default` and `--enable-natpmp-default` options from configure. It's odd to me that we maintain configure-time options for setting the default port-forwarding runtime state (but no other similar options), and I'm not sure what use-case it satisfies, that can't be achieved by multiple other means. I also doubt that we'll ever restart using these in release builds, or turning on any of this by default. I think the only scenario these options would be used is when you want to compile your own binaries (we don't use them in Guix), with port-forwarding on by default, but otherwise can't or don't want to use a `.conf` file, can't or don't want to pass command line options at runtime, and also don't want to modify the source code? ACKs for top commit: hebasto: ACK d51f0fa, rebased and comments have been addressed since my recent [review](bitcoin#26896 (review)). TheCharlatan: ACK d51f0fa Tree-SHA512: 481decd8bddd8b03b7319591e3acf189f7b6b96c9a9a8c5bc1a3f8ec00d0b8f9b52d2f5c28a298a2ec947cfe9611cfd184e393ccb2e4e21bfce86ca7d4de60d3
This PR removes the
--enable-upnp-defaultand--enable-natpmp-defaultoptions from configure.It's odd to me that we maintain configure-time options for setting the default port-forwarding runtime state (but no other similar options), and I'm not sure what use-case it satisfies, that can't be achieved by multiple other means. I also doubt that we'll ever restart using these in release builds, or turning on any of this by default.
I think the only scenario these options would be used is when you want to compile your own binaries (we don't use them in Guix), with port-forwarding on by default, but otherwise can't or don't want to use a
.conffile, can't or don't want to pass command line options at runtime, and also don't want to modify the source code?