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

build-info: add Cygwin version information #5457

Merged
merged 1 commit into from Apr 1, 2024

Conversation

claudioandre-br
Copy link
Member

The recent version of Cygwin removed support for many old Windows versions/platforms. Adding this information to the output can help us detect if end users are complaining about unsupported things.

Version: 1.9.0-jumbo-1+bleeding-03c6e07808 2024-03-31 12:50:58 -0300
Build: cygwin 64-bit x86_64 AVX2 AC OMP OPENCL
[...]
gcc version: 7.4.0
OpenCL headers version: 1.2
Crypto library: OpenSSL
OpenSSL library version: 0300000d0
OpenSSL 3.0.13 30 Jan 2024
GMP library version: 6.3.0	(loaded: 6.1.2)
[...]
Parsed terminal locale: UTF-8
Cygwin version: 3.1.2-340.x86_64, 2019-12-21 15:25 UTC

Version: 1.9.0-jumbo-1+bleeding-03c6e07808 2024-03-31 12:50:58 -0300
Build: cygwin 64-bit x86_64 AVX2 AC OMP
[...]
gcc version: 11.4.0
Crypto library: OpenSSL
OpenSSL library version: 0300000d0
OpenSSL 3.0.13 30 Jan 2024
GMP library version: 6.3.0
[...]
Parsed terminal locale: UTF-8
Cygwin version: 3.5.1-1.x86_64, 2024-02-27 11:54 UTC

Copy link
Member

@solardiz solardiz left a comment

Choose a reason for hiding this comment

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

Thanks. I added a review comment. Also, I'd simply use #ifdef (in two places).

src/listconf.c Outdated

errno = 0;
if (uname(&buffer) != 0)
printf("Cygwin version detection error");
Copy link
Member

Choose a reason for hiding this comment

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

Add \n or use puts.

Also, why reset errno if we don't check it later? Even if we did use errno, per POSIX it should be safe to do so after uname returns failure - but success is indicated by a non-negative value, not just 0. Perhaps Cygwin has its own documentation making this more specific.

POSIX:

RETURN VALUE
       Upon  successful completion, a non-negative value shall be returned.
       Otherwise, -1 shall be returned and errno set to indicate the error.

The recent version of Cygwin removed support for many old Windows
versions/platforms. Adding this information to the output can help
us detect if end users are complaining about unsupported things.

Signed-off-by: Claudio André <dev@claudioandre.slmail.me>
@solardiz solardiz merged commit f9fedd2 into openwall:bleeding-jumbo Apr 1, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants