I moved this directory to https://www.knifepoint.net/pub. Old links are still
valid indefinitely but are now a redirect, so proactively updating.
Signed-off-by: Katalin Rebhan <kat@knifepoint.net>
Apply changes from commit 699c2a99b8
to dev-lang/swift-6.4.3.
Co-authored-by: M. Muddassar Sarfraz <zyx@envs.net>
Signed-off-by: Katalin Rebhan <kat@knifepoint.net>
Initially, the ebuild had an ‘addpredict /var/lib/portage/home/.swiftpm’
here in order to ignore a sandbox violation. This occurred because the standard
way of getting the user’s home directory in Swift does not prioritize $HOME
over the value in the user database. There is, however, the CFFIXED_USER_HOME
variable which acts as an override. Setting this prevents SwiftPM trying to
write to /var/lib/portage/home during the build so the addpredict isn’t
needed in the first place.
Fixes sandbox failure introduced in
commit 22ea6e3217.
Closes: https://bugs.gentoo.org/985712
Signed-off-by: Katalin Rebhan <kat@knifepoint.net>
Fixes QA warnings for `swift-bin-5.10.1-r6` depending on unversioned ICU
SONAMES by fixing up all references to the actual libraries on disk (and
updates the ICU dep to rebuild on SLOT change).
Closes: https://bugs.gentoo.org/977013
Signed-off-by: Itai Ferber <itai@itaiferber.net>
While working on updates to resolve GCC 16 build issues, I backported an
upstream patch for removing a reference to `<linux/scc.h>` (80fbc4c2a);
simultaneously, a similar patch was added (731832ced) that introduced
the same fix. The conflict wasn't caught during the rebase.
Signed-off-by: Itai Ferber <itai@itaiferber.net>
Updates LLVM_COMPAT to allow building Swift 6 with LLVM/Clang 22, and
reintroduces a `libcxx` USE flag to allow dropping a hard dependency on
GCC <16 on systems that don't want to use it.
Swift 5.10 does not build with Clang 22.
Signed-off-by: Itai Ferber <itai@itaiferber.net>
Backports an upstream patch for building LLVM sanitizers on systems
where `<linux/scc.h>` is no longer present.
Signed-off-by: Itai Ferber <itai@itaiferber.net>
Swift defaults to building against GCC's libstdc++ runtime, but GCC 16's
headers can only be parsed by Clang 22 and later. Swift's LLVM will pick
up on the newest headers available on disk, which means that even if GCC
16 is simply installed on the build machine, Swift will fail to build.
Depending on GCC <16 and explicitly setting `--gcc-install-dir` allows
the right headers to be picked up.
Closes: https://bugs.gentoo.org/974722
Signed-off-by: Itai Ferber <itai@itaiferber.net>
The custom Swift build system doesn't correctly pass
CFLAGS/CXXFLAGS/LDFLAGS to invocations of CMake, nor does the Swift
compiler pick up on those env vars automatically to pass to Clang. The
build system needs to be patched to pass these flags around explicitly,
and a few sites were missed during original patching.
Signed-off-by: Itai Ferber <itai@itaiferber.net>
Odin explicitly builds using `clang++` regardless of toolchain. Older
Odin ebuilds explicitly cleared `CPPFLAGS` and `CXXFLAGS` with the
comment "build_odin.sh sets its own flags. Some gcc flags cause build
failures"; this stripping was later migrated to `strip-flags`.
Full stripping isn't necessary, though: the Odin build script _appends_
its own flags instead of replacing them, and GCC-specific flags can be
stripped using `strip-unsupported-flags` instead.
Closes: https://bugs.gentoo.org/974732
Signed-off-by: Itai Ferber <itai@itaiferber.net>