1
[ This doc needs work and the scripts aren't well tested, esp.
4
These are some useful utilities for accessing/maintaining
5
the chroots. Most of them understand the environment
6
variable SBUILD_CHROOT_ROOT; useful if your chroots aren't at
9
export SBUILD_CHROOT_ROOT=/org/debian
11
------------------------------------------
14
Shows how the contents of the chroots differ from a reference.
15
This requires the ref-{stable,unstable} files to be in the
2
These are some useful utilities for accessing/maintaining the
5
The <chroot> arg used by most scripts has two forms:
7
. s,stable,-t,testing,-u,unstable
9
- a symlink ~/build/chroot-{stable,testing,unstable} pointing
10
to the chroot must exist
14
- in this case the argument is parsed to try and determine
15
the distribution, for those scripts that need it:
17
checkchroot /usr/local/chroot/unstable-security
18
- CHROOT=/usr/local/chroot/unstable
19
- DIST=unstable so it can find the ref-unstable reference file
23
------------------------------------------
26
Aborts the current dpkg-buildpackage process.
29
------------------------------------------
32
Shows how the contents of the chroot differs from a reference.
33
This requires the ref-{stable,testing,unstable} files to be in the
17
# cp /usr/share/doc/sbuild/configs/ref-{stable,unstable} /usr/local/chroot
19
If your chroots aren't at /usr/local/chroot, the script
20
understands the envvar SBUILD_CHROOT_ROOT,
21
$ export SBUILD_CHROOT_ROOT=/org/debian
36
# cp /usr/share/doc/sbuild/configs/ref-{stable,testing,unstable} \
23
39
The chroots should only include essential & build-essential
24
packages and the packages that sbuild needs -- apt, fakeroot,
40
packages and the extra packages that sbuild needs: apt, fakeroot,
25
41
ssmtp, sudo. Please check that the references are accurate for
28
44
------------------------------------------
32
For changing the hold/install status of packages in the chroots
34
------------------------------------------
38
These run apt-get in the chroot from base. chrootapt has
39
"apt-get" understood. You have to actually type apt-get with
40
chrapt but it allows you to also run apt-cache.
42
------------------------------------------
45
------------------------------------------
50
------------------------------------------
45
chr-hold <chroot> pkg [pkg..]
46
chr-unhold <chroot> pkg [pkg..]
48
For changing the hold/install status of packages in the chroots.
50
------------------------------------------
51
chrapt <chroot> apt-get|apt-cache arguments
53
Runs apt-get or apt-cache in the chroot from base.
55
------------------------------------------
60
------------------------------------------
64
Scripts to keep the chroots up to date. Can be run as cron jobs
67
------------------------------------------
68
add_sbuild_user /path/to/chroot <dist> <user>
70
A script to add a new user to a chroot. See
71
/usr/share/doc/sbuild/README-buildd.chroot.
73
------------------------------------------
76
A shell script for mutt & vi to handle the build logs that
77
sbuild mails to you. The "bug" option is generally useful as it
78
massages the build log a little so you can easily file a bug.
79
The other options are for communicating with a build daemon.
82
# craft a bug report or fail/success reply to a buildd log mail
83
# using vim, mutt and optionally quintuple-agent:
85
# 'f'orward the message
86
# (may require autoedit & edit_headers .muttrc settings)
88
# map <F3> :%!~buildd/bin/dobuildlog agpg<CR>
89
# map <S-F3> :%!~buildd/bin/dobuildlog gpg<CR>
90
# map <F4> :%!~buildd/bin/dobuildlog bug<CR>
92
You'll have to change these to your own settings:
93
SIGNOPTS='--clearsign --default-key younie@debian.org'
94
FROM="$EMAIL" # "Your Name <your@addr.ess>"
95
ARCH=m68k # for the bug report log link
97
Please see the comments in the script.
54
99
------------------------------------------