diff options
Diffstat (limited to 'www/gitea/files/patch-Makefile')
-rw-r--r-- | www/gitea/files/patch-Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/www/gitea/files/patch-Makefile b/www/gitea/files/patch-Makefile new file mode 100644 index 000000000000..ead1c6269b0c --- /dev/null +++ b/www/gitea/files/patch-Makefile @@ -0,0 +1,20 @@ +--- Makefile.orig 2020-03-06 17:18:36.000000000 +0000 ++++ Makefile 2020-03-18 20:56:00.588102000 +0000 +@@ -123,7 +123,7 @@ + + .PHONY: go-check + go-check: +- $(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell go version | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?[[:space:]]' | tr '.' ' ');)) ++ $(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell go version | bsdgrep -Eo 'go[0-9\.]+' | tr -d go | tr '.' ' ');)) + @if [ "$(GO_VERSION)" -lt "001011000" ]; then \ + echo "Gitea requires Go 1.11.0 or greater to build. You can get it at https://golang.org/dl/"; \ + exit 1; \ +@@ -138,7 +138,7 @@ + + .PHONY: node-check + node-check: +- $(eval NODE_VERSION := $(shell printf "%03d%03d%03d" $(shell node -v | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?' | tr '.' ' ');)) ++ $(eval NODE_VERSION := $(shell printf "%03d%03d%03d" $(shell node -v | grep -Eo '[0-9]+\.?[0-9]+\.?[0-9]+' | tr '.' ' ');)) + $(eval NPM_MISSING := $(shell hash npm > /dev/null 2>&1 || echo 1)) + @if [ "$(NODE_VERSION)" -lt "010000000" -o "$(NPM_MISSING)" = "1" ]; then \ + echo "Gitea requires Node.js 10.0.0 or greater and npm to build. You can get it at https://nodejs.org/en/download/"; \ |