Hello all,
I was trying to build a livecd-stage2 target with Catalyst
2.0 and had
some 'interesting' problems. When doing a
$ catalyst -f stage2.spec
on my stage2.spec I got the following error:
[Some of the standard Catalyst output removed]
Emptying directory
/var/tmp/catalyst/tmp/default/.autoresume-livecd-stage2-x86-
CURRENT/
Emptying directory
/var/tmp/catalyst/tmp/default/livecd-stage2-x86-CURRENT/
Catalyst aborting....
Traceback (most recent call last):
File "/usr/bin/catalyst", line 380, in ?
build_target(addlargs, targetmap)
File "/usr/bin/catalyst", line 198, in
build_target
mytarget.run()
File
"/usr/lib/catalyst/modules/generic_stage_target.py&qu
ot;, line 1063,
in run
apply(getattr(self,x))
File
"/usr/lib/catalyst/modules/livecd_stage2_target.py&qu
ot;, line 116,
in unpack
print display_msg
UnboundLocalError: local variable 'display_msg' referenced
before assignment
Looking at the code in livecd_stage2_target.py it seems that
the code
simply assumes that the display_msg variable gets set even
though it
doesn't when
os.path.isdir(self.settings["source_path"]) ==
False.
I added a print statement for
self.settings["source_path"] and that prints
/var/tmp/catalyst/builds/stage3-x86-2006.0.tar.bz2
which seems rather strange to me. The (hopefully) relevant
portion of my
stage2.spec file is as follows:
subarch: x86
version_stamp: CURRENT
target: livecd-stage2
rel_type: default
profile: default-linux/x86/2006.0
snapshot: 20060821
source_subpath: stage3-x86-2006.0
The only thing resembling the file name above is the
source_subpath
setting, but I'm not sure why that would get turned into a
.tar.bz2 file
name by catalyst when catalyst itself clearly expects a
directory name.
Anyone have any clues to impart?
Cheers,
--
Bardur Arantsson
<bardurREMOVE THISscientician.net>
Every program has at least one bug and can be shortened by
at
least one instruction -- from which, by induction, one can
deduce
that every program can be reduced to one instruction which
doesn't work.
--
gentoo-catalyst gentoo.org mailing list
|