Skip to content

Alpine Linux: avoid requiring unsupported OpenSSL version#1535

Closed
dscho wants to merge 1 commit into
git-ecosystem:mainfrom
dscho:fix-install-from-source-for-alpine-linux
Closed

Alpine Linux: avoid requiring unsupported OpenSSL version#1535
dscho wants to merge 1 commit into
git-ecosystem:mainfrom
dscho:fix-install-from-source-for-alpine-linux

Conversation

@dscho

@dscho dscho commented Feb 11, 2024

Copy link
Copy Markdown
Contributor

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]>
@dscho
dscho requested a review from mjcheetham February 11, 2024 21:08
@dscho
dscho enabled auto-merge February 11, 2024 21:13

# 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
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

But it builds ;-)

@mjcheetham mjcheetham left a comment

Copy link
Copy Markdown
Contributor

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

mjcheetham commented Apr 16, 2024

Copy link
Copy Markdown
Contributor

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