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 informations about community packages/repositories for Linux #323

Closed
wants to merge 3 commits into from

Conversation

parpok
Copy link

@parpok parpok commented Jun 7, 2023

Add information about Linux packages and repositories maintained by the community

Motivation:

I already mentioned that in an issue I made recently (#319) about lack of information for easier installation methods on more common user Linux systems. I added that information into Linux downloads page so anyone interested in Swift can try it out on their Linux machine even easier.

Modifications:

Added information about methods of installing swift on Arch Linux, Fedora and about easier install for Ubuntu/Debian based distros to the Linux downloads page.

Result:

Downloads page will have more options for installing Swift on Linux. Information about methods using community packages and repositories.

Added information about Arch, Fedora and Ubuntu/Debian repositories, packages and how to install information
download/index.md Outdated Show resolved Hide resolved
download/index.md Outdated Show resolved Hide resolved
download/index.md Outdated Show resolved Hide resolved
download/index.md Outdated Show resolved Hide resolved
download/index.md Outdated Show resolved Hide resolved
download/index.md Outdated Show resolved Hide resolved
download/index.md Outdated Show resolved Hide resolved
@parpok
Copy link
Author

parpok commented Jun 7, 2023

Changed proposed lines in the page.

@parpok parpok requested a review from MaxDesiatov June 7, 2023 13:27
Added a hyphen in the "community made"

Co-authored-by: Max Desiatov <[email protected]>
@MaxDesiatov
Copy link
Member

@swift-ci test

```bash
sudo apt install -y curl
curl -s https://archive.swiftlang.xyz/install.sh | sudo bash
sudo apt install swiftlang
Copy link
Member

Choose a reason for hiding this comment

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

@parpok Would you be able to share the repo/sources for how this package is being built and distributed?

Copy link
Author

Choose a reason for hiding this comment

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

@shahmishal
Here's a Swift forum post about the apt repo
There's also more information on the repository project website with included link to scripts code for adding the repository

Copy link
Member

Choose a reason for hiding this comment

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

This doesn't provide sources for the build and packaging scripts unfortunately, which makes it impossible to verify that these packages were built correctly or to understand what modifications were done to the original source.

Copy link
Author

Choose a reason for hiding this comment

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

I used pkgdiff on both the official tar.gz file from swift.org and deb file from swiftlang.xyz repository (downloaded using apt download swiftlang) and the result came that files were different. If anyone interested in auditing the difference I'm leaving the report pkgdiff provided.

Also if the community repo doesn't suit needs I can delete any mentions of it.

Overview of the pkgdiff report provided in the gist

Choose a reason for hiding this comment

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

@shahmishal @MaxDesiatov As the creator and maintainer of the https://swiftlang.xyz repository I can verify that all packages have been built without any modifications to the original source.
Where possible the packages are created from the original .tar.gz files from swift.org.
OS versions that swift.org does not supply are created from https://github.com/futurejones/swift-arm64/releases.
As I also build and maintain these packages I can also verify that they are built from the original source.
Build logs from https://ci.swiftlang.xyz/ show that no patches currently are needed for builds on ubuntu/debian on amd64 or arm64.
I use https://github.com/jordansissel/fpm to create the .deb packages from the .tar.gz files. fpm does not change or modify any files contained in the .tar.gz files, it simply repackages them into .deb files.

@parpok pkgdiff can not be used to check for diffs between two different file types like .tar and .deb.

Copy link
Member

Choose a reason for hiding this comment

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

@shahmishal do we list non-swift.org produced installers / artifacts on this page, or is it limited to the ones the swift.org produces?

Copy link
Member

Choose a reason for hiding this comment

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

@shahmishal do we list non-swift.org produced installers / artifacts on this page, or is it limited to the ones the swift.org produces?

We currently don't post installer or artifacts urls from outside of swift.org.

@0xTim 0xTim linked an issue Jun 13, 2023 that may be closed by this pull request
@parpok parpok closed this Sep 10, 2023
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.

Add info about distro/community repos for Swift Linux package
5 participants