chiark / gitweb /
More work in progress.
[distorted-chroot] / etc / sbuild.conf.in
CommitLineData
e36b4f25
MW
1### -*-perl-*-
2###
3### Configuration for sbuild
4###
5### (c) 2018 Mark Wooding
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This file is part of the distorted.org.uk chroot maintenance tools.
11###
12### distorted-chroot is free software: you can redistribute it and/or
13### modify it under the terms of the GNU General Public License as
14### published by the Free Software Foundation; either version 2 of the
15### License, or (at your option) any later version.
16###
17### distorted-chroot is distributed in the hope that it will be useful,
18### but WITHOUT ANY WARRANTY; without even the implied warranty of
19### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20### General Public License for more details.
21###
22### You should have received a copy of the GNU General Public License
23### along with distorted-chroot. If not, write to the Free Software
24### Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
25### USA.
26
27my $hackdir = "/usr/local.schroot/hacks";
28
29## Default distribution.
30$distribution = "@primary-dist@";
31
32## Force an update before trying the build so that we get just-now built
33## versions of our dependencies.
34$apt_update = 1;
35
36## Wrap the build command up.
37$build_env_cmnd = "$hackdir/buildwrap";
38
39## Use hacked versions of some tools.
40$aptitude = "$hackdir/aptitude";
41$apt_get = "$hackdir/apt-get";
42
43## We don't actually need to mess with this here, but there's no way to
44## augment it, so include a copy to provide a more useful baseline.
45$environment_filter = [
46 '^PATH$',
47 '^DEB(IAN|SIGN)?_[A-Z_]+$',
48 '^(C(PP|XX)?|LD|F)FLAGS(_APPEND)?$',
49 '^USER(NAME)?$',
50 '^LOGNAME$',
51 '^HOME$',
52 '^TERM$',
53 '^SHELL$'
54];
55
56## Use the `/private' space constructed by the `sbuild' profile.
57$build_environment = {
58 "TMPDIR" => "/private",
59};
60
61## Actually resolve alternatives properly.
62$resolve_alternatives = 1;
63
64## Don't do anything clever if the build dependencies fail. The clever thing
65## doesn't work on older distributions. Also, it takes extra time, and
66## that's not desirable.
67$bd_uninstallable_explainer = "apt";
68
69###----- That's all, folks --------------------------------------------------
70
711;