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

Add installation of debian 12 and required dependencies #161

Closed
wants to merge 1 commit into from

Conversation

futurejones
Copy link

Debian 12 has been officially available since June 5th.

Nearly 3 months later swiftly still does not support this release.

I know there are moves to change how swiftly works with functions currently handled by the install script moved inside the swiftly executable binary.

The timeline for this is unknown and judging by the current level of draft PR's and comments could be many months away, if ever.

Adding support for macOS and Windows should not be impacting on and delaying support for new Linux platforms.

I propose in the interim we add compatibility with the new supported platforms immediately in the current swiftly-install script.

This PR adds support for Debian 12, a similar approach can be used for the other new platforms.

Copy link
Contributor

@patrickfreed patrickfreed left a comment

Choose a reason for hiding this comment

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

Rather than merging support for just Debian 12, I think we'd want to resurrect #115, which covers the other newer platforms as well.

@cmcgee1024 I think it could be reasonable to push a quick update to swiftly-install.sh to support these new platforms while work progresses on the other bigger 0.4.0 work. WDYT?

@@ -128,6 +128,18 @@ install_system_deps () {
return
fi

if [[ "$docker_platform_name" == "debian" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI I filed swiftlang/swift-docker#409 to cover adding the proper Debian 12 images so we don't need the hard code or fallback to swift-ci's list.

Copy link
Author

Choose a reason for hiding this comment

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

I think hard coding the dependencies is a much better option, especially for all the ubuntu and debian platforms. Trying to parse multiple dockerfiles to obtain the same dependency list is over engineering what should be a very simple task.
The following list of dependencies covers all current versions of ubuntu and debian with swift releases.

build-essential 
git 
gnupg2  
libcurl4 
libedit2 
libncurses-dev 
libpython3-dev  
libxml2  
libz3-dev 
pkg-config 
python3 
python3-lldb 
tzdata 
unzip 
zlib1g-dev

I'm sure a similar simplified list could be made for RHEL platforms.

If in some future swift release some extra dependencies are required, then it is a very quick and simple task to add it to the list.

Simple to update, simple to maintain and guaranteed to work correctly.

@futurejones
Copy link
Author

@patrickfreed @cmcgee1024 can we get some progress on this.

The reason I have restricted this PR to adding debian 12 is so that can be easily processed, reviewed and merged.

It does not impact on, or effect any other platforms or distributions, and makes no difference to any future direction this project might want to make.

No new release of swiftly is needed so there is no reason why this can't get approved and merged.

@futurejones
Copy link
Author

closing this pull request due to lack of interest by the swiftly team in doing anything

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