From d8c77970b749d17015e333af38b0f6f1ab420973 Mon Sep 17 00:00:00 2001 From: Peter Marquardt Date: Wed, 12 Jun 2019 14:06:29 +0200 Subject: [PATCH] build.sh: replace tee pipe with script when something inside the spawned build script switches to nonbuffered IO and creates very long lines ( > 64k ) the build will fail. solution: replace the tee pipe with /usr/bin/script. --- tools/build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/build.sh b/tools/build.sh index c20d6db..45bde10 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -61,10 +61,9 @@ fi chmod a+rx "$PKG.build.sh" -echo "sudo -u build -i ./$PKG.build.sh &1 | tee $PKG.build.log" +echo "sudo -u build script -q -c \"./$PKG.build.sh\" $PKG.build.log" ( - set -o pipefail - sudo -u build ./$PKG.build.sh &1 | tee $PKG.build.log + sudo -u build script -q -c "./$PKG.build.sh" $PKG.build.log sudo -u build cp "$PKG.build.sh" "/package/pkg/$PKG/.$PKG.build.sh" )