Commit Graph

37 Commits

Author SHA1 Message Date
Itai Ferber
80fbc4c2ac dev-lang/swift: backport patch for linux/scc.h
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>
2026-07-02 06:28:31 -04:00
Itai Ferber
688135195e dev-lang/swift: improve support for CXXFLAGS
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>
2026-07-02 06:28:24 -04:00
Katalin Rebhan
731832ced0 dev-lang/swift: remove #include <linux/scc.h>
This header was removed recently (looks like with Linux 7.1).
Remove the usage for it in libsanitizer so that it builds again.

See https://github.com/llvm/llvm-project/issues/194110.

Signed-off-by: Katalin Rebhan <me@dblsaiko.net>
2026-07-01 02:57:40 +02:00
Itai Ferber
dca0c52be3 dev-lang/swift: add 6.3.2
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2026-06-04 21:09:01 -04:00
Itai Ferber
16be0d677e dev-lang/swift: add 6.3.1
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2026-04-19 21:49:36 -04:00
Itai Ferber
712f2b61ba dev-lang/swift: fix building when dev-libs/libdispatch is present
Swift currently fails to build if `dev-libs/libdispatch` is installed
because it globally installs private `libdispatch` headers which get
unexpectedly picked up during the Swift build. Since the headers are not
expected to be present when building Swift on non-Darwin platforms, the
check for the header can be patched out.

Signed-off-by: Itai Ferber <itai@itaiferber.net>
2026-04-19 21:49:36 -04:00
Itai Ferber
4f760635c2 dev-lang/swift: fix swift-6.3 SLOT
swift-6.3 was accidentally introduced with a SLOT of "6/2" when it
should be "6/3"

Signed-off-by: Itai Ferber <itai@itaiferber.net>
2026-04-19 21:49:32 -04:00
Itai Ferber
bc901cd86c dev-lang/swift: drop 6.2, 6.2.1, 6.2.2, 6.2.3
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2026-03-28 12:59:06 -04:00
Itai Ferber
2e89030e6b dev-lang/swift: add 6.3
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2026-03-28 11:24:10 -04:00
Itai Ferber
53fad1e56b dev-lang/swift: add 6.2.4
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2026-02-27 16:25:39 -05:00
Itai Ferber
9a53f6b4f4 dev-lang/swift: drop older 6.0.3 revisions
Cleans up pre-r2 ebuild revisions.

Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-12-13 07:43:50 -05:00
Itai Ferber
b176c46619 dev-lang/swift: drop older 5.10.1 revisions
Cleans up pre-r5 ebuild versions.

Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-12-13 07:43:50 -05:00
Itai Ferber
f565d53972 dev-lang/swift: add 6.2.3
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-12-12 18:48:24 -05:00
Itai Ferber
be828f7112 dev-lang/swift: patch additional missing include
23ea96bd5 added a patch to fix some issues caused by build system
updates; namely, it added some necessary `#include <cstdint>`s that
allowed the project to build. Swift 6.2 requires an additional include
in `FunctionRefInfo.cpp`.

Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-12-12 18:48:08 -05:00
Katalin Rebhan
33333d4eea dev-lang/swift: add 6.2.2
Signed-off-by: Katalin Rebhan <me@dblsaiko.net>
2025-12-09 22:29:19 +01:00
Itai Ferber
945693e4db dev-lang/swift: add 6.2.1
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-11-05 10:27:03 -05:00
Itai Ferber
da67285555 dev-lang/swift: add 6.2
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-09-17 19:10:47 -04:00
Itai Ferber
7833ec9d17 dev-lang/swift: add 6.1.3, drop 6.1, 6.1.1, 6.1.2, 6.1.2-r1
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-09-17 19:10:47 -04:00
Pavel Sobolev
23ea96bd50 dev-lang/swift: fix issues caused by build system updates
Closes: https://bugs.gentoo.org/945025

Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
2025-09-05 23:03:21 +03:00
Itai Ferber
6bfcf19e28 dev-lang/swift: add symlinks to stable SLOT dir
Along with `/usr/$(get_libdir)/swift-${PV}`, symlink to a stable
directory in `/usr/$(get_libdir)` that matches the package SLOT so
revdeps can rely on a stable directory that doesn't change on patch
version.

Closes: https://bugs.gentoo.org/957730
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-06-21 20:29:32 -04:00
Itai Ferber
dfda47c295 dev-lang/swift: add 6.1.2
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-05-29 10:19:32 -04:00
Itai Ferber
f065207ce9 dev-lang/swift: add 6.1.1
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-05-24 15:20:57 -04:00
Itai Ferber
becab7e238 dev-lang/swift: fix broken 5.10.1 patch symlink
2849e1a7d removed swift-6.0.1, -6.0.1-r1, and -6.0.2, but
swift-5.10.1-r2/backtracing-noexecstack.patch was symlinked to
swift-6.0.1's version. The effective file has been moved down to
swift-5.10.1-r2 and the swift-6.x line now symlinks to this base file;
the contents have not changed.

Closes: https://bugs.gentoo.org/954338
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-04-27 13:25:34 -04:00
Itai Ferber
f0fee0b997 dev-lang/swift: add 6.1
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-04-01 09:58:53 -04:00
Itai Ferber
2849e1a7d3 dev-lang/swift: drop 6.0.1, 6.0.1-r1, 6.0.2
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-04-01 09:58:49 -04:00
Itai Ferber
6c6dc8ce59 dev-lang/swift: add swift-5.10.1-r4, swift-6.0.3-r1
Swift is now set up to properly respect CFLAGS, CXXFLAGS, and LDFLAGS
from the environment by not overriding those values in the build system.
Swift 6 now also picks up on `SWIFT_EXTRA_BUILD_FLAGS` from the
environment and passes those to its build system as well.

Closes: https://bugs.gentoo.org/939764
Closes: https://bugs.gentoo.org/939766
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-03-26 15:46:02 -04:00
Itai Ferber
c814bc34f9 dev-lang/swift: fix swift-5.10.1 linker error on compiling IndexStore
Closes: https://bugs.gentoo.org/950708
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-03-07 15:32:21 -05:00
Marco Rebhan
fbbd4a1e11 dev-lang/swift: Add option to compile with libcxx
This is useful on llvm profile systems, where the default C++ compiler
is clang with libcxx.

Signed-off-by: Marco Rebhan <me@dblsaiko.net>
2025-02-11 00:46:30 +01:00
Itai Ferber
713f3eb13f dev-lang/swift: add 5.10.1-r3
Backports Swift #75662 to enable building with `dev-cpp/tbb`

Bug: https://bugs.gentoo.org/947141
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-01-15 14:53:29 -05:00
Itai Ferber
96ec2c7ea4 dev-lang/swift: add 6.0.3
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2024-12-13 11:25:16 -05:00
Itai Ferber
8834ec6026 dev-lang/swift: add 6.0.2
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2024-10-31 11:11:56 -04:00
Itai Ferber
59307e2fb0 dev-lang/swift: add 6.0.1-r1
* Enables backtracing on Swift program abort
* Disables unconditional `-Werror` in swift-corelibs-libdispatch
* Adds correct dependency on Swift 5.10.1 via dev-lang/swift-bootstrap

Signed-off-by: Itai Ferber <itai@itaiferber.net>
2024-10-31 11:11:56 -04:00
Itai Ferber
bcc4ae9994 dev-lang/swift: add 5.10.1-r2
* Enables backtracing on Swift program abort
* Disables unconditional `-Werror` in swift-corelibs-libdispatch

Closes: https://bugs.gentoo.org/941508
Closes: https://bugs.gentoo.org/941509
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2024-10-31 11:11:56 -04:00
Itai Ferber
5effb421f4 dev-lang/swift: move patches into versioned subdirs
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2024-10-31 11:11:56 -04:00
Itai Ferber
282216f801 dev-lang/swift: add 6.0.1
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2024-10-12 21:31:25 -04:00
Itai Ferber
c9dfaf59e3 dev-lang/swift: set LLDB to respect PYTHON_SINGLE_TARGET
Closes: https://bugs.gentoo.org/939685
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2024-09-15 19:50:13 -04:00
Itai Ferber
5efd1ce254 dev-lang/swift: switch to source-based builds
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2024-08-09 11:13:10 -04:00