New Swift Package Repository for Ubuntu/Debian Linux Distributions

supports ARMv7 Swift 5.1.5. … is the latest version of Swift currently available for 32bit devices.

Thank you. This is useful.

As soon as later versions are available I will add them to the repository.

Swift 5.1.5 was released on March 9, 2020, which is some time ago. Are there indications that any newer Swift 32-bit ARMv7 versions are in progress and might actual happen someday?

In my use case, Swift 5.2.x (or newer) would allow for a Vapor 4 webapp on an embedded SBC.

It would be interesting to know. It's a bit hard to judge by reading Issues · uraimo/buildSwiftOnARM · GitHub

Swift 5.6 is running fine on Armv7, for Debian, Buildroot and Yocto (Yocto layer not OSS yet). The Swift runtime libraries and packages need to be cross compiled from x86 or Arm64.


Swift 5.6 is running fine on Armv7

He was talking about running the Swift compiler itself on ARM SBCs, but you are only cross-compiling the stdlib for ARM. I just released a Swift 5.6.1 compiler for Android armv7, so it is doable, but I may be the only person still building the Swift toolchain for a 32-bit platform.


Is this problem known:

W: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

The following patch works for me:

---      2022-05-13 09:20:43.269871910 +0200
+++  2022-05-13 09:33:11.686579688 +0200
@@ -167,6 +167,12 @@
     # ----
+    # import the gpg key
+    echo -n "Deleting old swiftlang gpg key... "
+    apt-key del EF92AAA0 2> /dev/null
+    echo -n "Importing swiftlang gpg key... "
+    curl -L "${gpg_key_url}" 2> /dev/null | tee /etc/apt/trusted.gpg.d/swiftlang.asc &>/dev/null
+    echo "done."
     # run apt update
     echo -n "running update... "
     apt-get update > tmp_sources.txt
@@ -192,10 +198,6 @@
     echo -n "Installing apt-transport-https... "
     apt-get install -y apt-transport-https &> /dev/null
     echo "done."
-    # import the gpg key
-    echo -n "Importing swiftlang gpg key... "
-    curl -L "${gpg_key_url}" 2> /dev/null | apt-key add - &>/dev/null
-    echo "done."
     # user input
     if [ "${dist}" != "raspbian" ];
1 Like

@gonsolo thanks.
I am aware of this issue and will have an update ready soon. I also need to update the gpg key for other reasons so I am planning to do it all at the same time. This is also required for Debian Bullseye.
At this point it is just a warning so everything should still install ok in the mean time.