Gentoo Archives: gentoo-catalyst

From: Bardur Arantsson <spam@×××××××××××.net>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] Catalyst 2.0 weirdness
Date: Tue, 22 Aug 2006 22:06:07
Message-Id: ecfuru$t8q$1@sea.gmane.org
1 Hello all,
2
3 I was trying to build a livecd-stage2 target with Catalyst 2.0 and had
4 some 'interesting' problems. When doing a
5
6 $ catalyst -f stage2.spec
7
8 on my stage2.spec I got the following error:
9
10 [Some of the standard Catalyst output removed]
11 Emptying directory
12 /var/tmp/catalyst/tmp/default/.autoresume-livecd-stage2-x86-CURRENT/
13 Emptying directory /var/tmp/catalyst/tmp/default/livecd-stage2-x86-CURRENT/
14 Catalyst aborting....
15 Traceback (most recent call last):
16 File "/usr/bin/catalyst", line 380, in ?
17 build_target(addlargs, targetmap)
18 File "/usr/bin/catalyst", line 198, in build_target
19 mytarget.run()
20 File "/usr/lib/catalyst/modules/generic_stage_target.py", line 1063,
21 in run
22 apply(getattr(self,x))
23 File "/usr/lib/catalyst/modules/livecd_stage2_target.py", line 116,
24 in unpack
25 print display_msg
26 UnboundLocalError: local variable 'display_msg' referenced before assignment
27
28
29 Looking at the code in livecd_stage2_target.py it seems that the code
30 simply assumes that the display_msg variable gets set even though it
31 doesn't when os.path.isdir(self.settings["source_path"]) == False.
32
33 I added a print statement for self.settings["source_path"] and that prints
34
35 /var/tmp/catalyst/builds/stage3-x86-2006.0.tar.bz2
36
37 which seems rather strange to me. The (hopefully) relevant portion of my
38 stage2.spec file is as follows:
39
40 subarch: x86
41 version_stamp: CURRENT
42 target: livecd-stage2
43 rel_type: default
44 profile: default-linux/x86/2006.0
45 snapshot: 20060821
46 source_subpath: stage3-x86-2006.0
47
48 The only thing resembling the file name above is the source_subpath
49 setting, but I'm not sure why that would get turned into a .tar.bz2 file
50 name by catalyst when catalyst itself clearly expects a directory name.
51
52 Anyone have any clues to impart?
53
54 Cheers,
55
56 --
57 Bardur Arantsson
58 <bardurREMOVE@×××××××××××××××.net>
59
60 Every program has at least one bug and can be shortened by at
61 least one instruction -- from which, by induction, one can deduce
62 that every program can be reduced to one instruction which
63 doesn't work.
64
65 --
66 gentoo-catalyst@g.o mailing list

Replies

Subject Author
[gentoo-catalyst] Re: Catalyst 2.0 weirdness Bardur Arantsson <spam@×××××××××××.net>