4 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
5 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
8 # Copyright (c) 2013 Peter Palfrader
10 # Permission is hereby granted, free of charge, to any person
11 # obtaining a copy of this software and associated documentation
12 # files (the "Software"), to deal in the Software without
13 # restriction, including without limitation the rights to use,
14 # copy, modify, merge, publish, distribute, sublicense, and/or sell
15 # copies of the Software, and to permit persons to whom the
16 # Software is furnished to do so, subject to the following
19 # The above copyright notice and this permission notice shall be
20 # included in all copies or substantial portions of the Software.
22 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
24 # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
27 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29 # OTHER DEALINGS IN THE SOFTWARE.
33 amd64|i386|armel|armhf)
34 echo "sid bullseye buster stretch jessie"
40 echo "sid bullseye buster stretch"
51 mkdir -p /srv/buildd/unpack
52 if ! $SILENT setup-dchroot $EXTRAARGS -f -a "$a" -D -d '/srv/buildd/unpack' -K "$s"
58 if ! $SILENT setup-dchroot $EXTRAARGS -f -a "$a" "$s"
64 echo >&2 "Invalid mode $MODE"
73 usage: $0 [<options>] [buildd]
76 -a <ARCH> limit to ARCH
79 -s <SUITE> limit to SUITE
93 while getopts "cha:s:" OPTION
100 EXTRAARGS="$EXTRAARGS -c"
115 shift $(($OPTIND - 1))
119 if [ "$#" -gt 1 ]; then
122 elif [ "$#" = 1 ]; then
123 if [ "${1:-}" = "buildd" ]; then
125 if ! [ -d /srv/buildd/ ]; then
126 echo >&2 "Error: /srv/buildd does not exist or is not a directory."
137 # figure out whether to be verbose or not
145 # get list of archs based on dpkg architecture
147 DPKGARCH=$(dpkg --print-architecture)
154 archs="$archs armhf armel"
157 if [ "$(uname -m)" = "aarch64" ] ; then
163 if [ "$(uname -m)" = "armv7l" ] && grep -w vfpv3 -q /proc/cpuinfo ; then
168 archs="$archs mipsel"
171 archs="$archs mips64el"
178 [ "$limitarch" != "" ] && [ "$limitarch" != "$a" ] && continue
179 for s in `get_suites "$a"`; do
180 [ "$limitsuite" != "" ] && [ "$limitsuite" != "$s" ] && continue
181 if ! do_one "$a" "$s"; then
184 echo >&2 "Error: setting up $s:$a dchroot failed."