<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>123267</bug_id>
          
          <creation_ts>2006-02-18 06:11 0000</creation_ts>
          <short_desc>dev-util/catalyst-2.0_rc39 won&apos;t build portage snapshots</short_desc>
          <delta_ts>2006-03-13 11:44:48 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2005.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>corsair@gentoo.org</reporter>
          <assigned_to>catalyst@gentoo.org</assigned_to>
          <cc>Tiger683@buerotiger.de</cc>

      

      
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2006-02-18 06:11:34 0000</bug_when>
            <thetext>Hi,

this is PPC64 and I just tried to build a portage snapshot, but it will not finish. catalyst-2.0_rc38 worked fine a few days ago.

# catalyst2 -s 20060218
Gentoo Catalyst, version 2.0_rc39
Copyright 2003-2005 The Gentoo Foundation
Distributed under the GNU General Public License version 2

Using default Catalyst configuration file, /etc/catalyst2/catalyst2.conf
Setting sharedir to config file value &quot;/usr/lib/catalyst2&quot;
Setting snapshot_cache to default value &quot;/var/tmp/catalyst2/snapshot_cache&quot;
Setting hash_function to config file value &quot;md5&quot;
Setting storedir to config file value &quot;/var/tmp/catalyst2&quot;
Setting portdir to default value &quot;/usr/portage&quot;
Setting distdir to config file value &quot;/usr/portage/distfiles&quot;
Setting options to config file value &quot;autoresume ccache kerncache pkgcache seedcache snapcache&quot;
Compiler cache support enabled.
Package cache support enabled.
Snapshot cache support enabled.
Seed cache support enabled.
Kernel cache support enabled.
Autoresuming support enabled.
Creating Portage tree snapshot 20060218 from /usr/portage...
Compressing Portage snapshot tarball...
Catalyst aborting....
Traceback (most recent call last):
  File &quot;/usr/bin/catalyst2&quot;, line 380, in ?
    build_target(addlargs, targetmap)
  File &quot;/usr/bin/catalyst2&quot;, line 198, in build_target
    mytarget.run()
  File &quot;/usr/lib/catalyst2/modules/snapshot_target.py&quot;, line 63, in run
    self.gen_digest_file(self.settings[&quot;snapshot_path&quot;])
AttributeError: snapshot_target instance has no attribute &apos;gen_digest_file&apos;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Tiger683@buerotiger.de</who>
            <bug_when>2006-02-20 13:52:02 0000</bug_when>
            <thetext>&gt; Hi,
&gt; 
&gt; this is PPC64 and I just tried to build a portage snapshot, but it will not
&gt; finish. catalyst-2.0_rc38 worked fine a few days ago.
(...)
Confirmed....

Following is a one-liner to fix the issue, apply to 
/usr/lib/catalyst2/modules/snapshot_target.py :

diff -pruN catalyst.old/snapshot_target.py catalyst.new/snapshot_target.py
--- catalyst.old/snapshot_target.py	2006-02-20 22:47:20.084095616 +0100
+++ catalyst.new/snapshot_target.py	2006-02-20 22:43:04.000000000 +0100
@@ -10,7 +10,7 @@ import os
 from catalyst_support import *
 from generic_stage_target import *
 
-class snapshot_target(generic_target):
+class snapshot_target(generic_stage_target):
 	def __init__(self,myspec,addlargs):
 		self.required_values=[&quot;version_stamp&quot;,&quot;target&quot;]
 		self.valid_values=[&quot;version_stamp&quot;,&quot;target&quot;,&quot;portdir_overlay&quot;]

cheers,

T</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Tiger683@buerotiger.de</who>
            <bug_when>2006-02-20 14:07:43 0000</bug_when>
            <thetext>Created an attachment (id=80316)
catalyst-2.0_rc39-snapshot-target-fix.patch

Ok, here again as a patch file, 
i just figured this is the appropriate way ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>qmx2352@gmail.com</who>
            <bug_when>2006-02-21 11:58:29 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Created an attachment (id=80316) [edit]
&gt; catalyst-2.0_rc39-snapshot-target-fix.patch
&gt; 
&gt; Ok, here again as a patch file, 
&gt; i just figured this is the appropriate way ;)
&gt; 

actually, it builds the snapshot but doesn&apos;t compute digest</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Tiger683@buerotiger.de</who>
            <bug_when>2006-02-21 12:14:22 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; actually, it builds the snapshot but doesn&apos;t compute digest
&gt; 
But at the end it errors out.
Anyway the patch solves the issue.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-03-13 11:44:48 0000</bug_when>
            <thetext>Fixed in 2.0_rc40... Thanks for the bug report and the patch, guys.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>80316</attachid>
            <date>2006-02-20 14:07 0000</date>
            <desc>catalyst-2.0_rc39-snapshot-target-fix.patch</desc>
            <filename>catalyst-2.0_rc39-snapshot-target-fix.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtcHJ1TiBjYXRhbHlzdC5vbGQvc25hcHNob3RfdGFyZ2V0LnB5IGNhdGFseXN0Lm5ldy9z
bmFwc2hvdF90YXJnZXQucHkKLS0tIGNhdGFseXN0Lm9sZC9zbmFwc2hvdF90YXJnZXQucHkJMjAw
Ni0wMi0yMCAyMjo0NzoyMC4wODQwOTU2MTYgKzAxMDAKKysrIGNhdGFseXN0Lm5ldy9zbmFwc2hv
dF90YXJnZXQucHkJMjAwNi0wMi0yMCAyMjo0MzowNC4wMDAwMDAwMDAgKzAxMDAKQEAgLTEwLDcg
KzEwLDcgQEAgaW1wb3J0IG9zCiBmcm9tIGNhdGFseXN0X3N1cHBvcnQgaW1wb3J0ICoKIGZyb20g
Z2VuZXJpY19zdGFnZV90YXJnZXQgaW1wb3J0ICoKIAotY2xhc3Mgc25hcHNob3RfdGFyZ2V0KGdl
bmVyaWNfdGFyZ2V0KToKK2NsYXNzIHNuYXBzaG90X3RhcmdldChnZW5lcmljX3N0YWdlX3Rhcmdl
dCk6CiAJZGVmIF9faW5pdF9fKHNlbGYsbXlzcGVjLGFkZGxhcmdzKToKIAkJc2VsZi5yZXF1aXJl
ZF92YWx1ZXM9WyJ2ZXJzaW9uX3N0YW1wIiwidGFyZ2V0Il0KIAkJc2VsZi52YWxpZF92YWx1ZXM9
WyJ2ZXJzaW9uX3N0YW1wIiwidGFyZ2V0IiwicG9ydGRpcl9vdmVybGF5Il0K
</data>        

          </attachment>
    </bug>

</bugzilla>