diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2020-04-17 12:23:24 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2020-04-17 12:25:57 +0200 |
commit | 8618fd571525c3cd8c3b6129b6a939d0b9e359f9 (patch) | |
tree | 74f8c615cec4dcceda498c6850487ec499c3f3e9 /main/abuild/0002-Revert-abuild-include-pkgname-in-temporary-rootbld-d.patch | |
parent | 2e2488cdb8b971d033be0f17755b688077a532fd (diff) | |
download | aports-8618fd571525c3cd8c3b6129b6a939d0b9e359f9.tar.bz2 aports-8618fd571525c3cd8c3b6129b6a939d0b9e359f9.tar.xz |
main/abuild: backport fix for abuild-rmtemp
Diffstat (limited to 'main/abuild/0002-Revert-abuild-include-pkgname-in-temporary-rootbld-d.patch')
-rw-r--r-- | main/abuild/0002-Revert-abuild-include-pkgname-in-temporary-rootbld-d.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/main/abuild/0002-Revert-abuild-include-pkgname-in-temporary-rootbld-d.patch b/main/abuild/0002-Revert-abuild-include-pkgname-in-temporary-rootbld-d.patch new file mode 100644 index 0000000000..2402b2db6d --- /dev/null +++ b/main/abuild/0002-Revert-abuild-include-pkgname-in-temporary-rootbld-d.patch @@ -0,0 +1,28 @@ +From 5177936a2bd4aa9e0badea94e48aee1a939e467a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net> +Date: Fri, 17 Apr 2020 12:21:48 +0200 +Subject: [PATCH] Revert "abuild: include $pkgname in temporary rootbld + directory" + +This commit broke abuild-rmtemp which has a prefix check to ensure it +doesn't remove non-abuild directory. Revert the commit instead of +adjusting the prefix check for now. + +This reverts commit d0828c06557773f252b645618500699a941bd091. +--- + abuild.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/abuild.in b/abuild.in +index 2af9452..fbe2fbd 100644 +--- a/abuild.in ++++ b/abuild.in +@@ -2257,7 +2257,7 @@ rootbld() { + + mkusers + +- BUILD_ROOT=$(mktemp -d "/var/tmp/abuild-$pkgname.XXXXXXXXXX") ++ BUILD_ROOT=$(mktemp -d /var/tmp/abuild.XXXXXXXXXX) + + mkdir -p "$BUILD_ROOT/proc" "$BUILD_ROOT/etc/apk/keys" \ + "$BUILD_ROOT/$HOME/.abuild" "$BUILD_ROOT/$aportsgit" \ |