aboutsummaryrefslogtreecommitdiffstats
path: root/kitty/kitty.SlackBuild
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-23 13:54:55 +0200
committerDanilo M. <danix@danix.xyz>2026-10-23 13:54:55 +0200
commit775850aef9df41389ed4c229f9002466543c89fb (patch)
treeeef427edb9f16719eab47dbbd2d1fd44a80bd525 /kitty/kitty.SlackBuild
parentc06ab48cbca0a933f191fa18522369dcc1331169 (diff)
downloadmy-slackbuilds-775850aef9df41389ed4c229f9002466543c89fb.tar.gz
my-slackbuilds-775850aef9df41389ed4c229f9002466543c89fb.zip
kitty: fix build with gcc-go installed
Source /etc/profile.d/go.sh so setup.py uses google-go-lang instead of gcc-go's gccgo /usr/bin/go (go1.18), which cannot parse kitty 0.49.2's go.mod (go 1.26.0, toolchain directive). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'kitty/kitty.SlackBuild')
-rw-r--r--kitty/kitty.SlackBuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/kitty/kitty.SlackBuild b/kitty/kitty.SlackBuild
index a34d9d7..08348be 100644
--- a/kitty/kitty.SlackBuild
+++ b/kitty/kitty.SlackBuild
@@ -8,6 +8,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20261023 danix: source /etc/profile.d/go.sh so the build uses
+# google-go-lang instead of gcc-go's gccgo /usr/bin/go.
# 20260922 danix: update for v0.49.0, fetch sources from upstream GitHub
# releases, drop librsync from REQUIRES (upstream now uses
# its own rsync implementation with libxxhash, which ships
@@ -77,6 +79,10 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
sed -i 's,-O3,-O2,g' setup.py
+# gcc-go installs a gccgo /usr/bin/go (go1.18) that can't parse kitty's
+# go.mod; google-go-lang's profile script puts the real toolchain first.
+[ -r /etc/profile.d/go.sh ] && . /etc/profile.d/go.sh
+
# The -Wl,-s makes the linker strip the binaries.
# --ignore-compiler-warnings is needed to turn off -Werror.