aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild/0002-Revert-abuild-include-pkgname-in-temporary-rootbld-d.patch
blob: 2402b2db6d3714389b2135c0535932515c1bcb5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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" \