From 8e08a5fa35468753ffc620f7753e2a9e6dde100b Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Wed, 11 Aug 2021 15:58:34 +0900 Subject: [PATCH] buildbot: Avoid dpkg-buildpackage placing results in ".." There is no commandline option to tell dpkg-buildpackage to place the build artifacts in a directory other than "..". Since buildbot clones the sources directly into a temporary directory, this causes the build artifacts to be written to a path outside the temporary directory. This commit modifies buildbot to clone the sources into a subdirectory of the temporary directory so that no build artifacts will be placed outside of the temporary build directory. --- buildbot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildbot.sh b/buildbot.sh index 303ddd9..7f135de 100755 --- a/buildbot.sh +++ b/buildbot.sh @@ -26,7 +26,7 @@ build() { local err err=0 - if ! output=$(git clone "$repository" -b "$branch" "$builddir" 2>&1); then + if ! output=$(git clone "$repository" -b "$branch" "$builddir/sources" 2>&1); then err=1 fi @@ -39,7 +39,7 @@ build() { return 1 fi - if ! output=$(cd "$builddir" && make deb 2>&1); then + if ! output=$(cd "$builddir/sources" && make deb 2>&1); then err=1 fi -- 2.47.3