Skip to content
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

cygwin buildfix #21006

Closed
wants to merge 10 commits into from
Closed

cygwin buildfix #21006

wants to merge 10 commits into from

Conversation

baentsch
Copy link
Contributor

Implements the cygwin-specific build remediation documented in #19531. Without this, "master" fails to build on cygwin.

@t8m
Copy link
Member

t8m commented May 22, 2023

Could you please amend the commit message to add Fixes #19531 ?

@t8m t8m added branch: master Merge to master branch approval: review pending This pull request needs review by a committer approval: otc review pending This pull request needs review by an OTC member triaged: bug The issue/pr is/fixes a bug tests: exempted The PR is exempt from requirements for testing labels May 22, 2023
@t8m t8m removed the approval: otc review pending This pull request needs review by an OTC member label May 22, 2023
@baentsch
Copy link
Contributor Author

Could you please amend the commit message to add Fixes #19531 ?

Done.

@t8m
Copy link
Member

t8m commented May 23, 2023

The Fixes note should be on a separate line in the commit message body (body is separated from the title of the commit by one empty line). No need to amend the commit now, we can do it when merging.

@baentsch
Copy link
Contributor Author

Thanks for the explanation. Will do my best to remember for next PR commit. Or rather, may it be an idea to update https://github.com/openssl/openssl/blob/master/.github/PULL_REQUEST_TEMPLATE.md with more definite reminders for all contributor's benefit (what to check & do for a PR)?

I also understand that I won't have to do anything on this PR any more: Please correct me if I'm wrong.

@baentsch
Copy link
Contributor Author

Just found this problem when doing an oqsprovider CI job for cygwin... Would a PR be welcome adding github-action-based cygwin testing to this project as well? Or even add it to this PR?

@t8m
Copy link
Member

t8m commented May 29, 2023

Adding it to this PR would be OK.

tmshort
tmshort previously approved these changes Jun 1, 2023
Copy link
Contributor

@tmshort tmshort left a comment

Choose a reason for hiding this comment

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

Just a nit.

@@ -1717,6 +1717,7 @@ my %targets = (
CFLAGS => picker(default => "-Wall",
debug => "-g -O0",
release => "-O3"),
ex_libs => add("-lcrypt32"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Noting that the 64bit version of this library is still called crypt32.lib, but in a different architecture directory.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Goodness, this. Accordingly we should successfully be able to test "win32" and "win64". See in f09f774 .

Copy link
Contributor

Choose a reason for hiding this comment

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

It was really just a note to me, to not confuse 32-bit vs 64-bit... sigh.

@@ -23,7 +23,9 @@
#include "prov/implementations.h"
#include "prov/bio.h"
#include "file_store_local.h"

#ifdef __CYGWIN__
#include <Windows.h>
Copy link
Contributor

@tmshort tmshort Jun 1, 2023

Choose a reason for hiding this comment

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

Nit: should the include file be capitalized?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just to check capitalization doesn't matter on Windows :-) Fund aside: Changed in f09f774. Will be disappointed if it fails...

@tmshort tmshort added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Jun 1, 2023
@openssl-machine openssl-machine added approval: ready to merge The 24 hour grace period has passed, ready to merge and removed approval: done This pull request has the required number of approvals labels Jun 2, 2023
@openssl-machine
Copy link
Collaborator

This pull request is ready to merge

@baentsch
Copy link
Contributor Author

baentsch commented Jun 4, 2023

Adding it to this PR would be OK.

So done in f09f774.

@baentsch
Copy link
Contributor Author

baentsch commented Jun 4, 2023

CI now passes (and fails without the code changes), so asking for a new review @t8m @tmshort

@t8m t8m added approval: review pending This pull request needs review by a committer approval: otc review pending This pull request needs review by an OTC member and removed approval: ready to merge The 24 hour grace period has passed, ready to merge labels Jun 5, 2023
@tmshort
Copy link
Contributor

tmshort commented Jun 8, 2023

The new CI is failing... Issues with isspace() that weren't fixed in #21127

@baentsch
Copy link
Contributor Author

baentsch commented Jun 8, 2023

The new CI is failing... Issues with isspace() that weren't fixed in #21127

Can re-enable strict checks here after #21151 has landed.

@baentsch
Copy link
Contributor Author

baentsch commented Jun 8, 2023

Instead of adding another .yml for the test, could you add the cygwin job to the Windows Github CI .yml?

Sure. Will do after #21151 has landed to test all together. Please let me know whether you're OK that we're not running "make test" as part of this CI: quic, symbols and simpletest (timer) fail under cygwin. Otherwise, I'll need to create a few separate issues as all those failures puzzle me (and I don't know QUIC, the OSSL-specific use of nm and the timer precision mechanisms under cygwin sufficiently well, respectively).

@t8m
Copy link
Member

t8m commented Jun 8, 2023

I suggest keeping this PR without the make test and once it is merged opening a new draft one with enabling it + creating issues for the failures.

@baentsch
Copy link
Contributor Author

baentsch commented Jun 10, 2023

The new CI is failing... Issues with isspace() that weren't fixed in #21127

@tmshort: Now fixed. strict checks now passing.

Instead of adding another .yml for the test, could you add the cygwin job to the Windows Github CI .yml?

@t8m: Now added to windows.yml. cygwin tests passing.

Please let me know if you'd still expect me to do anything on this PR. Edit/Add: CI failure is not due to cygwin.

@@ -23,7 +23,9 @@
#include "prov/implementations.h"
#include "prov/bio.h"
#include "file_store_local.h"

#ifdef __CYGWIN__
#include <windows.h>
Copy link
Member

Choose a reason for hiding this comment

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

Please add one space between # and include

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done in aa85bd1

Copy link
Member

@t8m t8m left a comment

Choose a reason for hiding this comment

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

Approved, we will squash the commits when merging.

@t8m t8m removed the approval: otc review pending This pull request needs review by an OTC member label Jun 10, 2023
@t8m t8m dismissed tmshort’s stale review June 10, 2023 20:36

Changed since

@t8m t8m requested a review from tmshort June 10, 2023 20:36
Copy link
Contributor

@tmshort tmshort left a comment

Choose a reason for hiding this comment

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

Looks fine, but there was still a failing test, seemingly not related to these changes? I'll approve, pending the CI.

EDIT: It looks as though check-ansi is failing in a number of other PRs.

@tmshort tmshort added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Jun 10, 2023
@openssl-machine openssl-machine added approval: ready to merge The 24 hour grace period has passed, ready to merge and removed approval: done This pull request has the required number of approvals labels Jun 12, 2023
@openssl-machine
Copy link
Collaborator

This pull request is ready to merge

@t8m
Copy link
Member

t8m commented Jun 12, 2023

Squashed and merged to master branch. Thank you for your contribution.

@t8m t8m closed this Jun 12, 2023
openssl-machine pushed a commit that referenced this pull request Jun 12, 2023
Fixes #19531

Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #21006)
openssl-machine pushed a commit that referenced this pull request Jun 12, 2023
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #21006)
bernd-edlinger pushed a commit to bernd-edlinger/openssl that referenced this pull request Aug 31, 2023
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from openssl#21006)

(cherry picked from commit e3b01eb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval: ready to merge The 24 hour grace period has passed, ready to merge branch: master Merge to master branch tests: exempted The PR is exempt from requirements for testing triaged: bug The issue/pr is/fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants