public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst]  Catalyst 2.0 weirdness
@ 2006-08-22 22:01 Bardur Arantsson
  2006-08-23  4:58 ` [gentoo-catalyst] " Bardur Arantsson
  0 siblings, 1 reply; 10+ messages in thread
From: Bardur Arantsson @ 2006-08-22 22:01 UTC (permalink / raw
  To: gentoo-catalyst

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", line 1063, 
in run
     apply(getattr(self,x))
   File "/usr/lib/catalyst/modules/livecd_stage2_target.py", 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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-08-24 16:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-22 22:01 [gentoo-catalyst] Catalyst 2.0 weirdness Bardur Arantsson
2006-08-23  4:58 ` [gentoo-catalyst] " Bardur Arantsson
2006-08-23 12:24   ` Chris Gianelloni
2006-08-23 19:04     ` Bardur Arantsson
2006-08-24  0:14       ` Chris Gianelloni
2006-08-24  5:09         ` Bardur Arantsson
2006-08-24 12:13           ` Andrew Gaffney
2006-08-24 14:09             ` Chris Gianelloni
2006-08-24 16:39               ` Bardur Arantsson
2006-08-24 16:22             ` Bardur Arantsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox