Commit | Line | Data |
---|---|---|
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 | ||
27 | my $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 | ||
704c25a1 MW |
64 | ## Other things to do. |
65 | $run_autopkgtest = 0; | |
66 | $run_lintian = 0; | |
67 | $run_piuparts = 0; | |
68 | ||
0372ba78 MW |
69 | ## Leave debris for diagnostics. |
70 | $purge_build_deps = "successful"; | |
71 | $purge_build_directory = "successful"; | |
72 | $purge_session = "successful"; | |
73 | ||
e36b4f25 MW |
74 | ## Don't do anything clever if the build dependencies fail. The clever thing |
75 | ## doesn't work on older distributions. Also, it takes extra time, and | |
76 | ## that's not desirable. | |
77 | $bd_uninstallable_explainer = "apt"; | |
78 | ||
79 | ###----- That's all, folks -------------------------------------------------- | |
80 | ||
81 | 1; |