From 775850aef9df41389ed4c229f9002466543c89fb Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 23 Oct 2026 13:54:55 +0200 Subject: 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 --- kitty/kitty.SlackBuild | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- cgit v1.2.3