Commit Graph

14 Commits

Author SHA1 Message Date
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
3af0aa6d14 dev-lang/swift: fix ebuild local var name
d201619d3 introduced a check for a Swift compiler to use for
bootstrapping Swift 6, but typo'd the variable name used in one case.
This only affected in-place upgrades with no other Swift version
installed, so wasn't caught in testing.

Signed-off-by: Itai Ferber <itai@itaiferber.net>
2026-06-09 18:27:43 -04:00
Itai Ferber
f8324fb859 dev-lang/swift: update python_gen_cond_dep
When `PYTHON_COMPAT` was updated to support `python3_14`,
`python_gen_cond_dep` wasn't also updated; since we're not trying to
filter Python versions beyond `PYTHON_COMPAT`, we don't actually need to
pass anything in.

Signed-off-by: Itai Ferber <itai@itaiferber.net>
2026-06-06 09:10:09 -04:00
Itai Ferber
d201619d3d dev-lang/swift: allow building using swift-bin
swift-6* ebuilds checked for the latest installed version of
`dev-lang/swift` to build against, but we want to enable bootstrapping
from `dev-lang/swift-bin`. Instead of checking for the latest Swift
using `best_version`, we can check `eselect swift` directly.

Signed-off-by: Itai Ferber <itai@itaiferber.net>
2026-06-06 09:10:08 -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
David Roman
68fbddeaec */*: drop py3.11 & remove dead py impls
Part-of: https://github.com/gentoo/guru/pull/447
Closes: https://github.com/gentoo/guru/pull/447
Signed-off-by: David Roman <stkw0@disroot.org>
2026-03-10 10:54:23 +01:00
Itai Ferber
2ba91fc323 dev-lang/swift: update to llvm-r2.eclass
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2026-03-06 13:48:51 -05:00
Itai Ferber
de756f6545 dev-lang/swift: update LLVM_COMPAT
Drop non-existent LLVM 15, and extend compatibility through LLVM 21.

Signed-off-by: Itai Ferber <itai@itaiferber.net>
2026-02-27 16:25:43 -05:00
Itai Ferber
16c07b5403 dev-lang/swift: enable py3.14
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-12-13 07:43:50 -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
Paul Zander
e07d695d5d */*: Add := to virtual/zlib deps
Add := to virtual/zlib deps, part 1

Done via:

```
git grep -l virtual/zlib$ | xargs sed -i -e 's@virtual/zlib$@&:=@'
```

Add := to virtual/zlib deps

Done via:

```
git grep -l 'virtual/zlib ' |
  xargs sed -i -e 's@virtual/zlib @virtual/zlib:= @g'
```

Unify virtual/zlib:0= to virtual/zlib:=

Done via:

```
git grep -l 'virtual/zlib:0=' |
  xargs sed -i -e 's@virtual/zlib:0=@virtual/zlib:=@g'
```

Add := to virtual/zlib deps, part 3

Done via:

```
git grep -l 'virtual/zlib:0' |
  xargs sed -i -e 's@virtual/zlib:0@virtual/zlib:=@g'
git grep -l 'virtual/zlib:=/' |
  xargs sed -i -e 's@virtual/zlib:=/@virtual/zlib:0/@g'
```

Add := to virtual/zlib deps, part 4

Done via:

```
git grep -l 'virtual/zlib\[' |
  xargs sed -i -e 's@virtual/zlib\[@virtual/zlib:=\[@g'
```

Use := on virtual/zlib deps, part 5

Done via:

```
git grep -l 'virtual/zlib-' |
  xargs sed -i -r -e 's@virtual/zlib-[0-9.]*(-r[0-9]*)?@&:=@g'
git grep -l 'virtual/zlib-' | xargs sed -i -e 's@:=:=@:=@g'
pkgcheck scan --commits \
  -c SourcingCheck,VisibilityCheck,DependencyCheck --exit error
```

Use := on virtual/zlib deps, part 6

Done via:

```
git grep -l 'virtual/zlib"' | xargs sed -i -e 's@virtual/zlib"@virtual/zlib:="@'
```

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
2025-11-18 17:53:08 +01:00
Paul Zander
c23791504e */*: update for virtual/zlib
Update done using:

```
git grep -l sys-libs/zlib sys-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g
git grep -l virtual/zlib-ng sys-* | xargs sed -i -e s@virtual/zlib-ng@sys-libs/zlib-ng@g
git diff --name-only | xargs copybump
git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead
pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error
```

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
2025-11-16 23:26:20 +01:00
Katalin Rebhan
788804b6b5 dev-lang/swift: Correctly merge extra build flags
The build script complains when the same option occurs multiple
times in the same preset, but merges them when they occur in separate
presets. Therefore restore the code that creates a stack of presets
with one for each subsequent argument, instead of packing them all
into a single preset.

Signed-off-by: Katalin Rebhan <me@dblsaiko.net>
2025-07-05 19:44:18 +02: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