Skip to content

Conversation

hebasto
Copy link
Member

@hebasto hebasto commented Mar 16, 2020

This PR changes the help string for --with-gui option of the configure script in the following way:

On master (3d28c88):

$ ./configure --help | grep -A 1 'with-gui\['
  --with-gui[=no|qt5|auto]
                          build bitcoin-qt GUI (default=auto)

With this PR:

$ ./configure --help | grep -A 2 'with-gui\['
  --with-gui[=yes|no|auto|qt5]
                          build bitcoin-qt GUI (default is auto; --with-gui
                          and --with-gui=qt5 are equivalent to --with-gui=yes)

Also the QT_LIB_PREFIX variable is removed for code simplicity and readability.

This PR does not change behavior of the configure script for known values of the --with-gui option, and raises an error otherwise.

Fix #17813
Based on #18297 (492971d..8a26848)

hebasto added 8 commits March 9, 2020 02:02
This change adds the correct suffix to debug mode .pc filenames for
MinGW and also to the Qt libraries listed in the `Requires` field.
The filename adjustment fixes the accidental overwriting of release
mode .pc files with the debug mode variant which required the wrong
variant of the libraries when `debug_and_release` is active.
Note that macOS also supports the `debug_and_release' configuration
but may use the regular library names together with DYLD_IMAGE_SUFFIX.
Creation of *_debug.pc files is turned off as they're identical to their
non-debug counterparts.
More info:
- QTBUG-4155
- Qt commit a0d8fb4ac3cb7bafdb39f340055eacee4f957513
This change adds to the BITCOIN_QT_CONFIGURE script ability to use
pkg-config for MinGW. All of the non-pkg-config paths are removed as
needless.
If depends is built with DEBUG=1 the configure script fails to pickup
Qt:
- for macOS host (similar, but not the same as issue 16391)
- for Windows host (regression)
QT_STATICPLUGIN is defined in BITCOIN_QT_CONFIGURE macro.
This change removes discrepancies between the help string and actual
behavior of the configure script. Also "yes" value is described
explicitly.
@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 16, 2020

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@hebasto hebasto changed the title build: Overhaul --with-gui option of configure script build: Make the help string for --with-gui configure option unambiguous Mar 17, 2020
@hebasto
Copy link
Member Author

hebasto commented Mar 17, 2020

The PR description has been updated on @ryanofsky's request.

@ryanofsky
Copy link
Contributor

Thanks for updating, new description makes this much more understandable. Two things I don't understand:

  • Unclear what "adds check for --with-gui values" is means. Is there a new warning or error?
  • Paragraph "This PR does not change behavior. The configure script warns..." is confusing because it's unclear whether the warning is new or old. If this isn't changing warnings and errors, then I don't think there is a reason to mention them. If this is changing warnings and errors, the differences should be listed in the list of changes at the top of the PR, not in a bottom paragraph beginning with "This PR does not change behavior."

@hebasto
Copy link
Member Author

hebasto commented Mar 17, 2020

  • Unclear what "adds check for --with-gui values" is means. Is there a new warning or error?

There is a new error if value is not expected. PR description has been updated.

  • Paragraph "This PR does not change behavior. The configure script warns..." is confusing because it's unclear whether the warning is new or old. If this isn't changing warnings and errors, then I don't think there is a reason to mention them. If this is changing warnings and errors, the differences should be listed in the list of changes at the top of the PR, not in a bottom paragraph beginning with "This PR does not change behavior."

PR description has been updated.

@luke-jr
Copy link
Member

luke-jr commented Apr 22, 2020

Rather not. Isn't Qt 6 around the corner?

@hebasto
Copy link
Member Author

hebasto commented Jun 13, 2020

Closing until Qt 6.

@hebasto hebasto closed this Jun 13, 2020
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build: Ambiguous help string for --with-gui configure option
5 participants