diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-02-25 21:14:09 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-02-25 21:14:09 +0100 |
commit | b4cf5d6e1197c8076b94131ef2495c6d5c6fb89a (patch) | |
tree | b1503402e30c8ef9bd9089bdbf614e70da8baf00 /build_stage3_package.sh | |
parent | 2d2dc3a222e422e49082e0031ac53118c1957a7e (diff) | |
download | bootstrap32-b4cf5d6e1197c8076b94131ef2495c6d5c6fb89a.tar.xz |
building most unproblematic packages in stage3
Diffstat (limited to 'build_stage3_package.sh')
-rwxr-xr-x | build_stage3_package.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build_stage3_package.sh b/build_stage3_package.sh index 1c1242e..fe80592 100755 --- a/build_stage3_package.sh +++ b/build_stage3_package.sh @@ -99,6 +99,8 @@ if test "$(find "$STAGE3_PACKAGES" -regex ".*/$PACKAGE-.*pkg\\.tar\\.xz" | wc -l scp -i $CROSS_HOME/.ssh/id_rsa -rC "$STAGE3_BUILD/$PACKAGE" build@$STAGE1_MACHINE_IP:/build/. # building the actual package + + echo "Building $PACKAGE on target.." ssh -i $CROSS_HOME/.ssh/id_rsa build@$STAGE1_MACHINE_IP bash -c "'cd $PACKAGE && makepkg --skipchecksums --skippgpcheck --nocheck'" > $PACKAGE.log 2>&1 RES=$? @@ -106,6 +108,8 @@ if test "$(find "$STAGE3_PACKAGES" -regex ".*/$PACKAGE-.*pkg\\.tar\\.xz" | wc -l tail "$PACKAGE.log" if test $RES = 0; then + + echo "Package $PACKAGE built sucessfully, installing on target.." # copy to our package folder in the first stage chroot @@ -139,6 +143,8 @@ if test "$(find "$STAGE3_PACKAGES" -regex ".*/$PACKAGE-.*pkg\\.tar\\.xz" | wc -l # copy packages from target machine and replace our local version with it + echo "Salvaging build environment of $PACKAGE from target back to host.." + tmp_dir=$(mktemp -d 'tmp.compute-dependencies.0.XXXXXXXXXX' --tmpdir) trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT |