1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
--[[
Generic configuration file for unsupported systems.
Does not provide a sandboxes section as they are highly OS-specific. As such
this is only really useful for performing pkgsrc scans. Do not try to use it
for builds as without sandboxes your installed packages will be removed.
Full reference for every section, action, and variable:
https://docs.rs/bob/latest/bob/config/
]]
-- General configuration variables.
options =
--[[
Dynamic resource allocation settings. Uses statistics from the history db,
knowledge of upcoming builds, and package weight to make informed choices for
what MAKE_JOBS and WRKOBJDIR should be set to for each package build.
If you set MAKE_JOBS or WRKOBJDIR in mk.conf then you must use ?= so that
bob's environment settings take precedence.
On first builds with no history, conservative values are used.
dynamic = {
jobs = 16,
wrkobjdir = {
tmpfs = "/tmp/work",
disk = "/home/builder/work",
threshold = "1G",
-- By default, builds that failed previously will be assigned to disk
-- as we cannot guarantee they will fit tmpfs. Set failed_threshold
-- to override this when the failed disk usage is under the threshold.
-- Recommended to be around 50% of the main threshold.
failed_threshold = "500M",
-- Some builds use significantly more disk space during the build than
-- is left at the end when the WRKDIR usage calculations are recorded.
-- There is no way to accurately catch this, so always_disk forces the
-- list of specified pkgpaths to always be assigned to disk.
always_disk = {
"sysutils/ansible",
},
},
}
]]
-- Variables that configure pkgsrc, where it is, what packages to build, etc.
pkgsrc =
--[[
Configure pkg_summary generation. These are the default values. Enable
include_restricted if you are not going to publish the packages and want
restricted NO_BIN_ON_* packages to be included in the pkg_summary file.
summary = {
include_restricted = false,
file_cksum = false,
compression = { "gz", "zst" },
}
]]