Skip to content

Comments

Configure: Reword the summary output#7499

Closed
mspncp wants to merge 3 commits intoopenssl:masterfrom
mspncp:pr-configure-reword-summary-output
Closed

Configure: Reword the summary output#7499
mspncp wants to merge 3 commits intoopenssl:masterfrom
mspncp:pr-configure-reword-summary-output

Conversation

@mspncp
Copy link
Contributor

@mspncp mspncp commented Oct 25, 2018

The Problem

In commit 820e414 (pr #5247) the summary output of the Configure command was optimized towards instructing people how to create issue reports.

/usr/bin/perl ./Configure debug-linux-x86_64 shared enable-crypto-mdebug --strict-warnings --prefix=/opt/openssl-dev
Configuring OpenSSL version 1.1.2-dev (0x10102000L) for debug-linux-x86_64
Using os-specific seed configuration
Creating configdata.pm
Creating Makefile

**********************************************************************
***                                                                ***
***   If you want to report a building issue, please include the   ***
***   output from this command:                                    ***
***                                                                ***
***     perl configdata.pm --dump                                  ***
***                                                                ***
**********************************************************************

It turned out that the wording of this message can confuse new OpenSSL users and make them think that they are seeing an error message.

No, I'm not joking. If you don't believe it, have a look at #7068 and #7212, it happened already twice. @mattcaswell is my witness, he was involved in both. You can read the threads starting at comments

Proposal

This commit makes the summary output start with a friendly success message to prevent a misunderstanding from the very beginning. Also it gives more hints to new OpenSSL users.

msp@msppc:~/src/openssl$ ./myconfigure
+ /usr/bin/perl ./Configure debug-linux-x86_64 shared enable-crypto-mdebug --strict-warnings --prefix=/opt/openssl-dev
Configuring OpenSSL version 1.1.2-dev (0x10102000L) for debug-linux-x86_64
Using os-specific seed configuration
Creating configdata.pm
Creating Makefile

**********************************************************************
***                                                                ***
***   OpenSSL has been successfully configured                     ***
***                                                                ***
***   If you encounter a problem during building, please open an   ***
***   issue on GitHub <https://github.com/openssl/openssl/issues>  ***
***   and include the output from the following command:           ***
***                                                                ***
***       perl configdata.pm --dump                                ***
***                                                                ***
***   (If you are new to OpenSSL, you might want to consult the    ***
***   'Troubleshooting' section in the INSTALL file first.)        ***
***                                                                ***
**********************************************************************

In commit 820e414 (pr openssl#5247) the summary output of the
Configure command was optimized towards instructing people
how to create issue reports.

It turned out that the wording of this message can confuse new
OpenSSL users and make them think that they are seeing an error
message. This commit makes the summary output start with a success
to prevent a misunderstanding. Also it gives more hints to new
OpenSSL users.
@mspncp mspncp added branch: master Applies to master branch branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) labels Oct 25, 2018
@mspncp mspncp added this to the 1.1.1a milestone Oct 25, 2018
Copy link
Member

@levitte levitte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nits to pick, looks good otherwise!

Configure Outdated
*** OpenSSL has been successfully configured ***
*** ***
*** perl configdata.pm --dump ***
*** If you encounter a problem during building, please open an ***
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/during/while/

Configure Outdated
*** perl configdata.pm --dump ***
*** ***
*** (If you are new to OpenSSL, you might want to consult the ***
*** 'Troubleshooting' section in the INSTALL file first.) ***
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely sure, but I think the period before the closing parenthesis can be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okie.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second thought: it's a complete sentence, so I would miss the period. Thoughts @openssl/nativespeakers?

@mspncp
Copy link
Contributor Author

mspncp commented Oct 25, 2018

Richard, is it correct that this box appears only in the case of success? Otherwise, the heading line would have to be conditional.

@levitte
Copy link
Member

levitte commented Oct 25, 2018

Yes, correct

@mspncp
Copy link
Contributor Author

mspncp commented Oct 25, 2018

Thanks, Richard. I'll sleep a night over it before merging to give others the opportunity for feedback.

@mspncp mspncp added the approval: done This pull request has the required number of approvals label Oct 25, 2018
levitte pushed a commit that referenced this pull request Oct 26, 2018
The failure of RAND_load_file was only noticed because of the
heap corruption which was reported in #7499 and fixed in commit
5b4cb38. To prevent this in the future, RAND_load_file()
now explicitly checks RAND_status() and reports an error if it
fails.

Related-to: #7449

Reviewed-by: Paul Dale <[email protected]>
(Merged from #7456)
mspncp added a commit to mspncp/openssl that referenced this pull request Oct 26, 2018
The failure of RAND_load_file was only noticed because of the
heap corruption which was reported in openssl#7499 and fixed in commit
5b4cb38. To prevent this in the future, RAND_load_file()
now explicitly checks RAND_status() and reports an error if it
fails.

Related-to: openssl#7449

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#7456)
levitte pushed a commit that referenced this pull request Oct 26, 2018
In commit 820e414 (pr #5247) the summary output of the
Configure command was optimized towards instructing people
how to create issue reports.

It turned out that the wording of this message can confuse new
OpenSSL users and make them think that they are seeing an error
message. This commit makes the summary output start with a success
to prevent a misunderstanding. Also it gives more hints to new
OpenSSL users.

Reviewed-by: Richard Levitte <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from #7499)

(cherry picked from commit 41349b5)
levitte pushed a commit that referenced this pull request Oct 26, 2018
In commit 820e414 (pr #5247) the summary output of the
Configure command was optimized towards instructing people
how to create issue reports.

It turned out that the wording of this message can confuse new
OpenSSL users and make them think that they are seeing an error
message. This commit makes the summary output start with a success
to prevent a misunderstanding. Also it gives more hints to new
OpenSSL users.

Reviewed-by: Richard Levitte <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from #7499)
@mspncp
Copy link
Contributor Author

mspncp commented Oct 26, 2018

Merged to master and 1.1.1. Thanks!

@mspncp mspncp closed this Oct 26, 2018
@mspncp mspncp deleted the pr-configure-reword-summary-output branch October 26, 2018 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: done This pull request has the required number of approvals branch: master Applies to master branch branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants