Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116305 - catalyst 2.0rc12 not setting pkgcache_path
Summary: catalyst 2.0rc12 not setting pkgcache_path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-12-21 11:10 UTC by Rajiv Aaron Manglani (RETIRED)
Modified: 2006-01-13 07:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rajiv Aaron Manglani (RETIRED) gentoo-dev 2005-12-21 11:10:19 UTC
catalyst rc11 is having trouble with pkgcache_path. it looks like the call to
self.set_pkgcache_path() in __init__ is not being run for some reason. i
put some print statements in that method and they never showed up.

moving the contents of that method into __init__ allowed me to work around
this problem.


   1.
      Gentoo Catalyst, version 2.0_rc11
   2.
      Copyright 2003-2005 The Gentoo Foundation
   3.
      Distributed under the GNU General Public License version 2
   4.
       
   5.
      Using command line specified Catalyst configuration file, /home/rajiv/installer/conf/catalyst.conf
   6.
      Setting sharedir to config file value "/usr/lib/catalyst2"
   7.
      Setting snapshot_cache to config file value "/foo/installer/catalyst/snapshot_cache"
   8.
      Setting hash_function to default value "crc32"
   9.
      Setting storedir to config file value "/foo/installer/catalyst"
  10.
      Setting portdir to default value "/usr/portage"
  11.
      Setting distdir to config file value "/usr/portage/distfiles"
  12.
      Setting options to config file value "pkgcache kerncache seedcache snapcache"
  13.
      Package cache support enabled.
  14.
      Snapshot cache support enabled.
  15.
      Seed cache support enabled.
  16.
      Kernel cache support enabled.
  17.
      Envscript support enabled.
  18.
      Using target: stage4
  19.
      Building natively for amd64
  20.
      Source path set to /foo/installer/catalyst/builds/default/stage3-amd64-2005.1-r1.tar.bz2
  21.
      Caching snapshot to /foo/installer/catalyst/snapshot_cache/current/
  22.
      Catalyst aborting....
  23.
      Traceback (most recent call last):
  24.
        File "/usr/bin/catalyst2", line 380, in ?
  25.
          build_target(addlargs, targetmap)
  26.
        File "/usr/bin/catalyst2", line 196, in build_target
  27.
          mytarget=targetmap[addlargs["target"]](conf_values, addlargs)
  28.
        File "/usr/lib/catalyst2/modules/stage4_target.py", line 18, in __init__
  29.
          generic_stage_target.__init__(self,spec,addlargs)
  30.
        File "/usr/lib/catalyst2/modules/generic_stage_target.py", line 174, in __init__
  31.
          print "Location of the package cache is " + self.settings["pkgcache_path"]
  32.
      KeyError: 'pkgcache_path'
Comment 1 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2005-12-27 07:48:12 UTC
this is still happening with catalyst 2.0_rc12

Python 2.4.2 (#1, Dec 27 2005, 10:43:31) 
[GCC 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)] on linux2


Gentoo Catalyst, version 2.0_rc12
Copyright 2003-2005 The Gentoo Foundation
Distributed under the GNU General Public License version 2

Using command line specified Catalyst configuration file, /home/rajiv/installer/conf/catalyst.conf
Setting sharedir to config file value "/usr/lib/catalyst2"
Setting snapshot_cache to config file value "/foo/installer/catalyst/snapshot_cache"
Setting hash_function to config file value "md5"
Setting storedir to config file value "/foo/installer/catalyst"
Setting portdir to default value "/usr/portage"
Setting distdir to config file value "/usr/portage/distfiles"
Setting options to config file value "autoresume ccache kerncache pkgcache seedcache snapcache"
Compiler cache support enabled.
Package cache support enabled.
Snapshot cache support enabled.
Seed cache support enabled.
Kernel cache support enabled.
Autoresuming support enabled.
Envscript support enabled.
Using target: stage4
Building natively for amd64
Source path set to /brontes/installer/catalyst/builds/default/stage3-amd64-2005.1-r1.tar.bz2
Caching snapshot to /foo/installer/catalyst/snapshot_cache/current/
The autoresume path is /foo/installer/catalyst/tmp/default/.autoresume-stage4-amd64-20051221.1/
Catalyst aborting....
Traceback (most recent call last):
  File "/usr/bin/catalyst2", line 380, in ?
    build_target(addlargs, targetmap)
  File "/usr/bin/catalyst2", line 196, in build_target
    mytarget=targetmap[addlargs["target"]](conf_values, addlargs)
  File "/usr/lib/catalyst2/modules/stage4_target.py", line 18, in __init__
    generic_stage_target.__init__(self,spec,addlargs)
  File "/usr/lib/catalyst2/modules/generic_stage_target.py", line 175, in __init__
    print "Location of the package cache is " + self.settings["pkgcache_path"]
KeyError: 'pkgcache_path'

Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-12 15:34:39 UTC
This is fixed in _rc13, correct?
Comment 3 Eric Edgar (RETIRED) gentoo-dev 2006-01-13 07:20:12 UTC
Resolved and incvs