From 41170556114a1a9c63fe49c484517a1bb6f3418f Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Tue, 8 Mar 2022 14:53:58 -0800 Subject: [PATCH] Makefile: chmod before fpm. For #2685 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 392c7c78..452958bd 100644 --- a/Makefile +++ b/Makefile @@ -693,4 +693,7 @@ deb: build/release @mkdir -p build/release-deb/usr/local/lib cp -ar build/release/tinygo build/release-deb/usr/local/lib/tinygo ln -sf ../lib/tinygo/bin/tinygo build/release-deb/usr/local/bin/tinygo + echo "Work around bad permissions set by tinygo build-library?" + find build/release-deb -type d -exec chmod +rx '{}' ';' + find build/release-deb -type f -exec chmod +r '{}' ';' fpm -f -s dir -t deb -n tinygo -v $(shell grep "const Version = " goenv/version.go | awk '{print $$NF}') -m '@tinygo-org' --description='TinyGo is a Go compiler for small places.' --license='BSD 3-Clause' --url=https://tinygo.org/ --deb-changelog CHANGELOG.md -p build/release.deb -C ./build/release-deb