build.sh: SBUILD_OPTS for passing extra options like "--arch=" to sbuild
Michael R. Crusoe
2 years ago
84 | 84 |
|
85 | 85 |
An explanation of this, plus more recipes, can be found on the `sbuild wiki
|
86 | 86 |
page <https://wiki.debian.org/sbuild>`_.
|
|
87 |
|
|
88 |
If you need to pass additional options to sbuild, like "--arch=i386", then set
|
|
89 |
the SBUILD_OPTS environment variable.
|
87 | 90 |
|
88 | 91 |
Normally, ``./build.sh`` will fail early if not all the build dependencies are
|
89 | 92 |
available in your local apt cache. If you are packaging a large dependency tree
|
13 | 13 |
# Release to something other than unstable, e.g. experimental
|
14 | 14 |
# CHROOT=$chroot
|
15 | 15 |
# Build using another schroot than debcargo-unstable-amd64-sbuild
|
|
16 |
# SBUILD_OPTS=
|
|
17 |
# will pass to sbuild; for example SBUILD_OPTS=--arch=i386
|
16 | 18 |
set -e
|
17 | 19 |
|
18 | 20 |
SCRIPTDIR="$(dirname $(readlink -f "$0"))"
|
|
153 | 155 |
"${EXTRA_DEBS_AUTOPKGTEST_OPTS[@]}" \
|
154 | 156 |
"${AUTOPKGTEST_OPTS[@]}" \
|
155 | 157 |
"${LINTIAN_OPTS[@]}" \
|
|
158 |
${SBUILD_OPTS} \
|
156 | 159 |
"$SRCNAME.dsc"
|
157 | 160 |
if [ "$SKIP_AUTOPKGTEST" != 1 ]; then
|
158 | 161 |
report "analyzing autopkgtest log: $BUILDNAME.test.log"
|