1 |
commit: bc493a6bfe5ee0446a28f6b5b23e9d0a11feb0d0 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 29 00:47:55 2020 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 29 01:35:14 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=bc493a6b |
7 |
|
8 |
catalyst: Delete tinderbox target |
9 |
|
10 |
Unused, and other successful tinderbox systems exist and are in active |
11 |
use. |
12 |
|
13 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
14 |
|
15 |
README | 1 - |
16 |
catalyst/defaults.py | 2 +- |
17 |
catalyst/targets/tinderbox.py | 47 ------------------ |
18 |
doc/catalyst-spec.5.txt | 4 +- |
19 |
doc/catalyst.1.txt | 4 +- |
20 |
examples/tinderbox_template.spec | 93 ------------------------------------ |
21 |
targets/support/chroot-functions.sh | 2 +- |
22 |
targets/tinderbox/chroot.sh | 33 ------------- |
23 |
targets/tinderbox/controller.sh | 21 -------- |
24 |
targets/tinderbox/preclean-chroot.sh | 5 -- |
25 |
10 files changed, 5 insertions(+), 207 deletions(-) |
26 |
|
27 |
diff --git a/README b/README |
28 |
index b398fe30..eb75ba67 100644 |
29 |
--- a/README |
30 |
+++ b/README |
31 |
@@ -34,7 +34,6 @@ Catalyst is capable of: |
32 |
|
33 |
- Building installation stages |
34 |
- Building bootable LiveCDs |
35 |
-- Setting up a Tinderbox target for test building |
36 |
- Building netboot images |
37 |
|
38 |
Configuring catalyst |
39 |
|
40 |
diff --git a/catalyst/defaults.py b/catalyst/defaults.py |
41 |
index 568d8566..7d1de119 100644 |
42 |
--- a/catalyst/defaults.py |
43 |
+++ b/catalyst/defaults.py |
44 |
@@ -18,7 +18,7 @@ required_build_targets = ["targetbase", "generic_stage_target"] |
45 |
# new build types should be added here |
46 |
valid_build_targets = ["stage1_target", "stage2_target", "stage3_target", |
47 |
"stage4_target", "livecd_stage1_target", "livecd_stage2_target", |
48 |
- "embedded_target", "tinderbox_target", "snapshot_target", "netboot_target", |
49 |
+ "embedded_target", "snapshot_target", "netboot_target", |
50 |
"netboot2_target" |
51 |
] |
52 |
|
53 |
|
54 |
diff --git a/catalyst/targets/tinderbox.py b/catalyst/targets/tinderbox.py |
55 |
deleted file mode 100644 |
56 |
index 6908793a..00000000 |
57 |
--- a/catalyst/targets/tinderbox.py |
58 |
+++ /dev/null |
59 |
@@ -1,47 +0,0 @@ |
60 |
-""" |
61 |
-Tinderbox target |
62 |
-""" |
63 |
-# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation. |
64 |
- |
65 |
-import os |
66 |
- |
67 |
-from catalyst.support import cmd, CatalystError |
68 |
-from catalyst.base.stagebase import StageBase |
69 |
- |
70 |
- |
71 |
-class tinderbox(StageBase): |
72 |
- """ |
73 |
- Builder class for the tinderbox target |
74 |
- """ |
75 |
- def __init__(self,spec,addlargs): |
76 |
- self.required_values=["tinderbox/packages"] |
77 |
- self.valid_values=self.required_values[:] |
78 |
- self.valid_values.extend(["tinderbox/use"]) |
79 |
- StageBase.__init__(self,spec,addlargs) |
80 |
- |
81 |
- def run_local(self): |
82 |
- # tinderbox |
83 |
- # example call: "grp.sh run xmms vim sys-apps/gleep" |
84 |
- try: |
85 |
- if os.path.exists(self.settings["controller_file"]): |
86 |
- cmd([self.settings['controller_file'], 'run'] + |
87 |
- self.settings['tinderbox/packages'], env=self.env) |
88 |
- |
89 |
- except CatalystError: |
90 |
- self.unbind() |
91 |
- raise CatalystError("Tinderbox aborting due to error.", |
92 |
- print_traceback=True) |
93 |
- |
94 |
- def set_cleanables(self): |
95 |
- self.settings['cleanables'] = [ |
96 |
- '/etc/resolv.conf', |
97 |
- '/var/tmp/*', |
98 |
- self.settings['portdir'], |
99 |
- ] |
100 |
- |
101 |
- def set_action_sequence(self): |
102 |
- #Default action sequence for run method |
103 |
- self.settings["action_sequence"]=["unpack","unpack_snapshot",\ |
104 |
- "config_profile_link","setup_confdir","bind","chroot_setup",\ |
105 |
- "setup_environment","run_local","preclean","unbind","clean",\ |
106 |
- "clear_autoresume"] |
107 |
|
108 |
diff --git a/doc/catalyst-spec.5.txt b/doc/catalyst-spec.5.txt |
109 |
index 7383afe8..4c0be357 100644 |
110 |
--- a/doc/catalyst-spec.5.txt |
111 |
+++ b/doc/catalyst-spec.5.txt |
112 |
@@ -344,7 +344,7 @@ quite a few problems with these, so be careful with whatever `USE` |
113 |
flags you add here. This is generally used for adding some |
114 |
functionality that we do not want on by default for all Gentoo users, |
115 |
but that we want on by default in our binaries. This setting is |
116 |
-supported by the `stage4`, `netboot2`, and `tinderbox` targets. |
117 |
+supported by the `stage4` and `netboot2` targets. |
118 |
|
119 |
*<target>/packages*:: |
120 |
This is the set of packages that we will merge into the stage4 tarball |
121 |
@@ -353,7 +353,7 @@ fxload irssi wpa_supplicant`). They will be built with the `USE` |
122 |
flags configured above. These packages must not depend on a |
123 |
configured kernel. If the package requires a configured kernel, then |
124 |
it will be defined elsewhere. This setting is supported by the |
125 |
-`stage4`, `netboot2`, and `tinderbox` targets. |
126 |
+`stage4`, and `netboot2` targets. |
127 |
|
128 |
*netboot/packages*:: |
129 |
These package names are also labels used later when determining what |
130 |
|
131 |
diff --git a/doc/catalyst.1.txt b/doc/catalyst.1.txt |
132 |
index 9c52878c..46e21e63 100644 |
133 |
--- a/doc/catalyst.1.txt |
134 |
+++ b/doc/catalyst.1.txt |
135 |
@@ -18,9 +18,7 @@ DESCRIPTION |
136 |
----------- |
137 |
*catalyst* is the tool that the Gentoo Release Engineering team |
138 |
utilizes to build all Gentoo Linux releases. It is capable of building |
139 |
-installation stages, bootable LiveCDs, and netboot images. *catalyst* |
140 |
-is also capable of providing a simple tinderbox environment for package |
141 |
-testing. |
142 |
+installation stages, bootable LiveCDs, and netboot images. |
143 |
|
144 |
For more information, please visit the *catalyst* project page |
145 |
on the web at 'https://wiki.gentoo.org/wiki/Catalyst'. |
146 |
|
147 |
diff --git a/examples/tinderbox_template.spec b/examples/tinderbox_template.spec |
148 |
deleted file mode 100644 |
149 |
index d5575b4a..00000000 |
150 |
--- a/examples/tinderbox_template.spec |
151 |
+++ /dev/null |
152 |
@@ -1,93 +0,0 @@ |
153 |
-# generic tinderbox specfile |
154 |
- |
155 |
-# The subarch can be any of the supported catalyst subarches (like athlon-xp). |
156 |
-# Refer to "man catalyst" or <https://wiki.gentoo.org/wiki/Catalyst> |
157 |
-# for supported subarches |
158 |
-# example: |
159 |
-# subarch: athlon-xp |
160 |
-subarch: |
161 |
- |
162 |
-# The version stamp is an identifier for the build. It can be anything you wish |
163 |
-# it to be, but it is usually a date. |
164 |
-# example: |
165 |
-# version_stamp: 2006.1 |
166 |
-version_stamp: |
167 |
- |
168 |
-# The target specifies what target we want catalyst to do. |
169 |
-# example: |
170 |
-# target: tinderbox |
171 |
-target: tinderbox |
172 |
- |
173 |
-# The rel_type defines what kind of build we are doing. This is merely another |
174 |
-# identifier, but it useful for allowing multiple concurrent builds. Usually, |
175 |
-# default will suffice. |
176 |
-# example: |
177 |
-# rel_type: default |
178 |
-rel_type: |
179 |
- |
180 |
-# This is the system profile to be used by catalyst to build this target. It is |
181 |
-# specified as a relative path from /var/db/repos/gentoo/profiles. |
182 |
-# example: |
183 |
-# profile: default-linux/x86/2006.1 |
184 |
-profile: |
185 |
- |
186 |
-# This specifies which snapshot to use for building this target. |
187 |
-# example: |
188 |
-# snapshot: 2006.1 |
189 |
-snapshot: |
190 |
- |
191 |
-# This specifies where the seed stage comes from for this target, The path is |
192 |
-# relative to $clst_sharedir/builds. The rel_type is also used as a path prefix |
193 |
-# for the seed. |
194 |
-# example: |
195 |
-# default/stage3-x86-2006.1 |
196 |
-source_subpath: |
197 |
- |
198 |
-# These are the hosts used as distcc slaves when distcc is enabled in your |
199 |
-# catalyst.conf. It follows the same syntax as distcc-config --set-hosts and |
200 |
-# is entirely optional. |
201 |
-# example: |
202 |
-# distcc_hosts: 127.0.0.1 192.168.0.1 |
203 |
-distcc_hosts: |
204 |
- |
205 |
-# This is an optional directory containing portage configuration files. It |
206 |
-# follows the same syntax as /etc/portage and should be consistent across all |
207 |
-# targets to minimize problems. |
208 |
-# example: |
209 |
-# portage_confdir: /etc/portage |
210 |
-portage_confdir: |
211 |
- |
212 |
-# This option specifies the location to a portage overlay that you would like to |
213 |
-# have used when building this target. |
214 |
-# example: |
215 |
-# portage_overlay: /usr/local/portage |
216 |
-portage_overlay: |
217 |
- |
218 |
-# This allows the optional directory containing the output packages for |
219 |
-# catalyst. Mainly used as a way for different spec files to access the same |
220 |
-# cache directory. Default behavior is for this location to be autogenerated |
221 |
-# by catalyst based on the spec file. |
222 |
-# example: |
223 |
-# pkgcache_path: /tmp/packages |
224 |
-pkgcache_path: |
225 |
- |
226 |
-# The tinderbox target can build packages with any USE settings. However, it |
227 |
-# should be noted that these settings are additive to the settings in the |
228 |
-# chosen profile. This is extremely useful when testing possible changed to a |
229 |
-# profile or package. |
230 |
-# example: |
231 |
-# tinderbox/use: gtk2 gnome kde qt bonobo cdr esd gtkhtml mozilla mysql perl ruby tcltk cups ldap ssl tcpd -svga |
232 |
-tinderbox/use: |
233 |
- |
234 |
-# This is the list of packages that will be built by the tinderbox target. |
235 |
-# Each of these is considered a separate target to test, and catalyst will use |
236 |
-# rsync to reset the build area to the default from the source_subpath before |
237 |
-# each package. This allows for testing USE changes on individual packages as |
238 |
-# well as for dependency issues. |
239 |
-# exampleL |
240 |
-# tinderbox/packages: dante tsocks sys-apps/eject minicom links acpid apmd parted whois tcpdump cvs zip unzip netcat partimage app-admin/sudo app-cdr/cdrtools gnome emacs dev-lang/ruby enlightenment kde mozilla-firefox mozilla-thunderbird xfce4 openbox fluxbox sylpheed openoffice-bin gimp xemacs xmms abiword gaim xchat pan tetex xcdroast k3b samba nmap gradm ettercap ethereal mplayer |
241 |
-tinderbox/packages: |
242 |
- |
243 |
-# Setting the option overrides the location of the kerncache |
244 |
-kerncache_path: |
245 |
- |
246 |
|
247 |
diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh |
248 |
index 8996119c..82164f64 100755 |
249 |
--- a/targets/support/chroot-functions.sh |
250 |
+++ b/targets/support/chroot-functions.sh |
251 |
@@ -260,7 +260,7 @@ cleanup_stages() { |
252 |
${clst_sed} -i "/USE=\"\${USE} bindist\"/d" "${clst_make_conf}" |
253 |
${clst_sed} -i "/USE=\"bindist\"/d" "${clst_make_conf}" |
254 |
|
255 |
- [ "${clst_target}" != "tinderbox" ] && rm -f /var/log/emerge.log /var/log/portage/elog/* |
256 |
+ rm -f /var/log/emerge.log /var/log/portage/elog/* |
257 |
} |
258 |
|
259 |
update_env_settings(){ |
260 |
|
261 |
diff --git a/targets/tinderbox/chroot.sh b/targets/tinderbox/chroot.sh |
262 |
deleted file mode 100755 |
263 |
index 431912e4..00000000 |
264 |
--- a/targets/tinderbox/chroot.sh |
265 |
+++ /dev/null |
266 |
@@ -1,33 +0,0 @@ |
267 |
-#!/bin/bash |
268 |
- |
269 |
-source /tmp/chroot-functions.sh |
270 |
- |
271 |
-# START THE BUILD |
272 |
-setup_pkgmgr |
273 |
- |
274 |
-# Backup pristine system |
275 |
- |
276 |
-rsync -avx --exclude "/root/" --exclude "/tmp/" --exclude "${clst_repo_basedir}/${clst_repo_name}/" / \ |
277 |
- /tmp/rsync-bak/ |
278 |
- |
279 |
-for x in ${clst_tinderbox_packages} |
280 |
-do |
281 |
- if [[ "${clst_VERBOSE}" == "true" ]] |
282 |
- then |
283 |
- run_merge --usepkg --buildpkg --newuse -vp $x |
284 |
- fi |
285 |
- |
286 |
- mkdir -p /tmp/packages/$x |
287 |
- export PORT_LOGDIR="/tmp/packages/$x" |
288 |
- run_merge $x |
289 |
- |
290 |
- if [ "$?" != "0" ] |
291 |
- then |
292 |
- echo "! $x" >> /tmp/tinderbox.log |
293 |
- else |
294 |
- echo "$x" >> /tmp/tinderbox.log |
295 |
- fi |
296 |
- echo "Syncing from original pristine tinderbox snapshot..." |
297 |
- rsync -avx --delete --exclude "/root/*" --exclude "/tmp/" --exclude \ |
298 |
- "${clst_repo_basedir}/${clst_repo_name}/" /tmp/rsync-bak/ / |
299 |
-done |
300 |
|
301 |
diff --git a/targets/tinderbox/controller.sh b/targets/tinderbox/controller.sh |
302 |
deleted file mode 100755 |
303 |
index 3dbc76f1..00000000 |
304 |
--- a/targets/tinderbox/controller.sh |
305 |
+++ /dev/null |
306 |
@@ -1,21 +0,0 @@ |
307 |
-#!/bin/bash |
308 |
- |
309 |
-source ${clst_shdir}/support/functions.sh |
310 |
- |
311 |
-case $1 in |
312 |
- run) |
313 |
- shift |
314 |
- exec_in_chroot ${clst_shdir}/tinderbox/tinderbox-chroot.sh |
315 |
- ;; |
316 |
- preclean) |
317 |
- #exec_in_chroot ${clst_shdir}/tinderbox/tinderbox-preclean-chroot.sh |
318 |
- delete_from_chroot /tmp/chroot-functions.sh |
319 |
- ;; |
320 |
- clean) |
321 |
- exit 0 |
322 |
- ;; |
323 |
- *) |
324 |
- exit 1 |
325 |
- ;; |
326 |
-esac |
327 |
-exit $? |
328 |
|
329 |
diff --git a/targets/tinderbox/preclean-chroot.sh b/targets/tinderbox/preclean-chroot.sh |
330 |
deleted file mode 100755 |
331 |
index 5353f67d..00000000 |
332 |
--- a/targets/tinderbox/preclean-chroot.sh |
333 |
+++ /dev/null |
334 |
@@ -1,5 +0,0 @@ |
335 |
-#!/bin/bash |
336 |
- |
337 |
-source /tmp/chroot-functions.sh |
338 |
- |
339 |
-cleanup_stages |