3 ### Configuration for sbuild
5 ### (c) 2018 Mark Wooding
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of the distorted.org.uk chroot maintenance tools.
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.
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.
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,
27 my $hackdir = "/usr/local.schroot/hacks";
29 ## Default distribution.
30 $distribution = "@primary-dist@";
32 ## Force an update before trying the build so that we get just-now built
33 ## versions of our dependencies.
36 ## Wrap the build command up.
37 $build_env_cmnd = "$hackdir/buildwrap";
39 ## Use hacked versions of some tools.
40 $aptitude = "$hackdir/aptitude";
41 $apt_get = "$hackdir/apt-get";
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 = [
47 '^DEB(IAN|SIGN)?_[A-Z_]+$',
48 '^(C(PP|XX)?|LD|F)FLAGS(_APPEND)?$',
56 ## Use the `/private' space constructed by the `sbuild' profile.
57 $build_environment = {
58 "TMPDIR" => "/private",
61 ## Actually resolve alternatives properly.
62 $resolve_alternatives = 1;
64 ## Leave debris for diagnostics.
65 $purge_build_deps = "successful";
66 $purge_build_directory = "successful";
67 $purge_session = "successful";
69 ## Don't do anything clever if the build dependencies fail. The clever thing
70 ## doesn't work on older distributions. Also, it takes extra time, and
71 ## that's not desirable.
72 $bd_uninstallable_explainer = "apt";
74 ###----- That's all, folks --------------------------------------------------