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

Alpine Linux: avoid requiring unsupported OpenSSL version #1535

Conversation

dscho
Copy link
Collaborator

@dscho dscho commented Feb 11, 2024

OpenSSL v1.1.* is no longer provided by Alpine Linux v3.19 according to https://pkgs.alpinelinux.org/packages?name=libssl1.1&branch=v3.19&repo=&arch=&maintainer=

However, OpenSSL v3.* is, so let's use that instead.

[EDIT] This fixes the currently-broken validate-install-from-source build (see here for a successful build of that workflow at the tip of this PR's branch).

OpenSSL v1.1.* is no longer provided by Alpine Linux v3.19 according to
https://pkgs.alpinelinux.org/packages?name=libssl1.1&branch=v3.19&repo=&arch=&maintainer=

However, OpenSSL v3.* is, so let's use that instead.

Signed-off-by: Johannes Schindelin <[email protected]>
@@ -189,7 +189,7 @@ case "$distribution" in
$sudo_cmd apk update

# Install dotnet/GCM dependencies.
install_packages apk add "curl git icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib which bash coreutils gcompat"
install_packages apk add "curl git icu-libs krb5-libs libgcc libintl libssl3 libstdc++ zlib which bash coreutils gcompat"
Copy link
Collaborator

Choose a reason for hiding this comment

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

According to the .NET docs, the dependency for OpenSSL should still be 1.1 on 3.14.x and older Alpine.. we may need to switch on the Alpine version in this script.

https://learn.microsoft.com/en-us/dotnet/core/install/linux-alpine#dependencies

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

But it builds ;-)

Copy link
Collaborator

@mjcheetham mjcheetham left a comment

Choose a reason for hiding this comment

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

I'd like to propose this PR address this issue instead:
#1582

It copes with both 3.14 and 3.15+ Alpine requirements.

mjcheetham added a commit that referenced this pull request Apr 16, 2024
The version of libssl available in the Alpine package feeds changed with
version 3.15. The latest libssl package is 1.1 in 3.14.x and earlier,
but newer versions only have libssl3.

Add a check for the Alpine version in the install from source script and
switch between installing libssl3 and libssl1.1 depending on the distro
version.

Also add another entry to the test matrix of distributions to include a
3.14.x Alpine version.

This replaces the two other PRs that aimed to address this issue:
- #1535
- #1574

Tested the updated workflow here:
https://github.com/git-ecosystem/git-credential-manager/actions/runs/8698286553/job/23855027830
@mjcheetham
Copy link
Collaborator

mjcheetham commented Apr 16, 2024

Addressed in #1582

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.

2 participants