Skip to content
Snippets Groups Projects
Unverified Commit 200accc8 authored by Johannes Schauer Marin Rodrigues's avatar Johannes Schauer Marin Rodrigues
Browse files

build.sh: retry 'native' box64 build if cross-build failed

parent 33185d39
No related branches found
No related tags found
No related merge requests found
...@@ -183,7 +183,13 @@ if [ -z "$(reprepro listfilter reform "\$Source (== box64)")" ]; then ...@@ -183,7 +183,13 @@ if [ -z "$(reprepro listfilter reform "\$Source (== box64)")" ]; then
git checkout upstream git checkout upstream
git checkout master git checkout master
pristine-tar checkout ../box64_0.1.8.orig.tar.xz pristine-tar checkout ../box64_0.1.8.orig.tar.xz
sbuild --host="$HOST_ARCH" --no-arch-all --arch-any $COMMON_SBUILD_OPTS --extra-repository="$SRC_LIST_PATCHED" ret=0
sbuild --host="$HOST_ARCH" --arch-all --arch-any $COMMON_SBUILD_OPTS --extra-repository="$SRC_LIST_PATCHED" || ret=$?
if [ "$ret" -ne 0 ]; then
# cross building failed -- try building
# "natively" with qemu-user
sbuild --build="$HOST_ARCH" --host="$HOST_ARCH" --arch-all --arch-any $COMMON_SBUILD_OPTS --extra-repository="$SRC_LIST_PATCHED"
fi
reprepro include "$OURSUITE" ../box64_0.1.8-1_arm64.changes reprepro include "$OURSUITE" ../box64_0.1.8-1_arm64.changes
cd .. cd ..
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment