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

Proposal: Make Linux Builds Portable #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jkmassel
Copy link

A proposal for portable Linux builds – right now it's not possible to simply download the release binary from a tag and run it on Linux without the swift standard library.

I suspect it might be preferable to produce two build artifacts – one smaller dynamically-linked version, and this larger statically-linked version.

Portability only goes so far – a quick test shows that it works on these (dockerized) distros (as tested by running xclogparser version):

  • debian:latest
  • ubuntu:latest
  • archlinux:latest

But does not work on:

  • amazonlinux:latest (uses glibc 2.26, not 2.27)
  • alpine:latest (missing all of glibc)

Happy to hear y'alls thoughts on this!

Note: I needed to modify the Dockerfile to make build_release_in_docker.sh work – otherwise SPM would fail.

Copy link
Collaborator

@PatrikBillgren PatrikBillgren left a comment

Choose a reason for hiding this comment

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

Thanks for submitting the PR! Supporting this use case sounds good to me. Do you have possibility to extend the PR with the functionality you described for creating two artifacts?

@jkmassel jkmassel force-pushed the add/portable-linux-builds branch 2 times, most recently from bce2033 to a8aaaeb Compare December 5, 2023 06:21
Signed-off-by: Jeremy Massel <1123407+jkmassel@users.noreply.github.com>
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