pbuilder falsely passes all environment variables into the chroot system.
The ARCH enviroment variable causes a build failure in the ethoip6 package.
-: ${ARCH:="$(dpkg --print-architecture)"}
+: ${ARCHITECTURE:="$(dpkg --print-architecture)"}
DEBOOTSTRAPOPTS=(
'--variant=buildd'
)
NAME="$DIST"
-if [ -n "${ARCH}" ]; then
- NAME="$NAME-$ARCH"
- DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}")
+if [ -n "${ARCHITECTURE}" ]; then
+ NAME="$NAME-$ARCHITECTURE"
+ DEBOOTSTRAPOPTS=("--arch" "$ARCHITECTURE" "${DEBOOTSTRAPOPTS[@]}")
fi
#BUILDRESULT="/var/cache/pbuilder/$NAME/result/"
'''
result = os.environ
result['DIST'] = self.dist
- result['ARCH'] = self.arch
+ result['ARCHITECTURE'] = self.arch
result['PB_SUITE'] = self.pb_suite
result['GIT_COMMIT_ID'] = self.git_commit_id
return result