/usr/lib/pbuilder/pbuilder-satisfydepends-apt is in pbuilder 0.228.7.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | #!/bin/bash
# Copyright © 2015-2016 Mattia Rizzolo <mattia@debian.org>
#
# pbuilder -- personal Debian package builder
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# module to satisfy build dependencies; apt flavor
set -e
export PBUILDER_PKGLIBDIR="${PBUILDER_PKGLIBDIR:-$PBUILDER_ROOT/usr/lib/pbuilder}"
. "$PBUILDER_PKGLIBDIR"/pbuilder-satisfydepends-funcs
function checkbuilddep_internal () {
# check whether apt is new enough
if dpkg --compare-versions $($CHROOTEXEC dpkg-query -W -f '${Version}' apt) lt 1.4~beta3 ; then
log.e "APT is not new enough to be used by this dependency resolver."
log.e "Please switch to a different resolver."
exit 1
fi
log.i "-> Attempting to satisfy build-dependencies"
if [[ "$DEBIAN_CONTROL" = *.dsc ]]; then
local DIR="$DEBIAN_CONTROL"
elif [[ "$DEBIAN_CONTROL" = *control ]]; then
local DIR="${DEBIAN_CONTROL%/control}/../"
else
log.e "Format of \$DEBIAN_CONTROL not recognized ('$DEBIAN_CONTROL')"
exit 1
fi
case "$BINARY_ARCH" in
"binary")
APTGETOPT[${#APTGETOPT[@]}]='--arch-only'
;;
"all")
APTGETOPT[${#APTGETOPT[@]}]='--indep-only'
;;
"any")
;;
*)
log.e "\$BINARY_ARCH contains a weird value [$BINARY_ARCH]. Giving up"
exit 1
;;
esac
if [[ "$BUILD_ARCH" != "$HOST_ARCH" ]]; then
APTGETOPT[${#APTGETOPT[@]}]="--host-architecture=$HOST_ARCH"
fi
$CHROOTEXEC apt-get \
-y \
"${APTGETOPT[@]}" \
build-dep \
"$DIR"
}
function print_help () {
# print out help message
cat <<EOF
pbuilder-satisfydepends -- satisfy dependencies
--help: give help
--control <file>: specify control file (debian/control, *.dsc) _inside the chroot_
--chroot <chroot>: operate inside this chroot
--binary-all: include binary-all
--binary-arch: include binary-arch only
--host-arch <arch>: perform a cross-build targetting this architecture
--echo: echo mode, do nothing.
EOF
}
. "$PBUILDER_PKGLIBDIR"/pbuilder-satisfydepends-checkparams
|