From ffb5fac6f79e63cbb462e2e20c0b6a3c5b9b2379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 8 Jun 2021 09:48:11 +0200 Subject: [PATCH] fdroid: add fix for /tmp permission on Vagrant builders MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit You can see details about this in these PRs: https://gitlab.com/fdroid/fdroiddata/-/merge_requests/8879 https://gitlab.com/fdroid/fdroiddata/-/merge_requests/9140 Without this the build fails with: ``` error: creating directory '/tmp/tmp-status-react-896b583da/nix-shell-900-0': Permission denied ``` https://monitor.f-droid.org/builds/log/im.status.ethereum/2021042608 It doesn't make any sense to me, since `/tmp` has to have `1777` permissions, but it is what it is. Signed-off-by: Jakub SokoĊ‚owski --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 13d60cfe4d..229844b44f 100644 --- a/Makefile +++ b/Makefile @@ -165,7 +165,11 @@ fdroid-nix-dir: ##@prepare Create /nix directory for F-Droid Vagrant builders mkdir -m 0755 /nix chown vagrant /nix -fdroid-build-env: fdroid-max-watches fdroid-nix-dir ##@prepare Setup build environment for F-Droud build +fdroid-fix-tmp: SHELL := /bin/sh +fdroid-fix-tmp: ##@prepare Fix /tmp permissions for Vagrant builder + chown -R vagrant /tmp + +fdroid-build-env: fdroid-max-watches fdroid-nix-dir fdroid-fix-tmp ##@prepare Setup build environment for F-Droud build xcode-clean: SHELL := /bin/sh xcode-clean: XCODE_HOME := $(HOME)/Library/Developer/Xcode