]> git.corax.cc Git - foundry/commitdiff
buildbot: Avoid dpkg-buildpackage placing results in ".."
authorMatthias Kruk <m@m10k.eu>
Wed, 11 Aug 2021 06:58:34 +0000 (15:58 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 11 Aug 2021 06:58:34 +0000 (15:58 +0900)
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

index 303ddd9a3a7ddaa685e840d8a24d661d9e077f1b..7f135defab902ed79c6e08246d7a2a63fcda8db7 100755 (executable)
@@ -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