From 291967935394b463e3ec9242cadaa2030456b303 Mon Sep 17 00:00:00 2001
From: Cem Keylan <cem@ckyln.com>
Date: Sat, 2 Jan 2021 00:38:29 +0300
Subject: go: remove bash dependency

---
 extra/go/build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'extra/go/build')

diff --git a/extra/go/build b/extra/go/build
index bb6ce565..c051bc2d 100755
--- a/extra/go/build
+++ b/extra/go/build
@@ -1,5 +1,8 @@
 #!/bin/sh -e
 
+# Remove bash as a make dependency
+patch -p1 < no-bash.patch
+
 # Disable stripping of binaries.
 # This breaks Go.
 :> nostrip
@@ -15,7 +18,7 @@ export GO_LDFLAGS="-w -s"
     mkdir -p lib/go-bootstrap
 
     cd "$GOROOT/src"
-    bash ./make.bash
+    ./make.bash
     cd ..
     cp -a bin pkg src ../lib/go-bootstrap
     cd ..
@@ -33,7 +36,7 @@ export GOROOT=$PWD/go-current
 
 (
     cd "$GOROOT/src"
-    bash make.bash --no-clean -v
+    ./make.bash --no-clean -v
 )
 
 cd "$GOROOT"
-- 
cgit v1.2.3