[pbuilder] 01/01: fixup! allow cross-building only if using the APT resolver
Mattia Rizzolo
mattia at debian.org
Sun Oct 9 15:18:44 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch cross
in repository pbuilder.
commit e25dd70191586c06f7cd92c1edf3b9e18a217652
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sun Oct 9 15:18:32 2016 +0000
fixup! allow cross-building only if using the APT resolver
---
pbuilder-buildpackage-funcs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pbuilder-buildpackage-funcs b/pbuilder-buildpackage-funcs
index 61cb7e2..cb2a1b4 100644
--- a/pbuilder-buildpackage-funcs
+++ b/pbuilder-buildpackage-funcs
@@ -217,6 +217,10 @@ cross_build_setup () {
if [ "${NO_AUTO_CROSS:-}" != "really-dont-mess-with-me" ]; then
log.i "Setting up the environment for a cross build..."
+ if [[ "$(readlink -e "$PBUILDERSATISFYDEPENDSCMD")" != *-apt ]]; then
+ log.e "Cross building is possible only with the APT dependency resolver"
+ exit 1
+ fi
$CHROOTEXEC dpkg --add-architecture "$HOST_ARCH"
EXTRAPACKAGES="${EXTRAPACKAGES:+"$EXTRAPACKAGES" }crossbuild-essential-$HOST_ARCH libc-dev:$HOST_ARCH libstdc++-6-dev:$HOST_ARCH"
DEBBUILDOPTS="${DEBBUILDOPTS:+"$DEBBUILDOPTS" }--host-arch $HOST_ARCH"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/pbuilder.git
More information about the Pbuilder-maint
mailing list