From 7470fa8d91070f46b109efbd93dae05ef4021247 Mon Sep 17 00:00:00 2001 From: Morten Linderud Date: Wed, 27 May 2020 21:21:41 +0200 Subject: [PATCH] repro: Ensure we are sourcing profile. Break terminal as well We need setsid for terminal capabilities. Sorry folks, your terminal is mine now. Signed-off-by: Morten Linderud --- repro.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/repro.in b/repro.in index c86eb55..db17a6f 100755 --- a/repro.in +++ b/repro.in @@ -201,9 +201,8 @@ set -e install -d -o builduser -g builduser /pkgdest install -d -o builduser -g builduser /srcpkgdest install -d -o builduser -g builduser /build -source /etc/profile -sudo -iu builduser bash -c 'cd /startdir; SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH makepkg -sc --noconfirm --skippgpcheck $cmds' __END__ + exec_nspawn "$build" /usr/bin/setsid -f -c -w sudo -iu builduser bash -c ". /etc/profile; cd /startdir; SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH makepkg -sc --noconfirm --skippgpcheck $cmds" mkdir -p "./build" for pkgfile in "$BUILDDIRECTORY/$build"/pkgdest/*; do mv "$pkgfile" "./build/"