Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123089 - dev-util/catalyst-2.0_rc45 won't build netboot target on ppc64
Summary: dev-util/catalyst-2.0_rc45 won't build netboot target on ppc64
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: High enhancement (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-16 14:22 UTC by Markus Rothe (RETIRED)
Modified: 2006-12-12 00:32 UTC (History)
2 users (show)

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


Attachments
fix (patch,381 bytes, patch)
2006-11-23 20:00 UTC, Daniel Black (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2006-02-16 14:22:23 UTC
Hi,

I just tied to build the netboot target on ppc64, but it fails:

# catalyst2 -f netboot.spec
Gentoo Catalyst, version 2.0_rc38
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 "/usr/lib/catalyst2"
Setting snapshot_cache to default value "/var/tmp/catalyst2/snapshot_cache"
Setting hash_function to config file value "md5"
Setting storedir to config file value "/var/tmp/catalyst2"
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.
Using target: netboot
Building natively for ppc64
netboot root path is /tmp/image
Source path set to /var/tmp/catalyst2/builds/default/stage3-ppc64-64ul-2005.1-r1.tar.bz2
Caching snapshot to /var/tmp/catalyst2/snapshot_cache/20060216/
The autoresume path is /var/tmp/catalyst2/tmp/default/.autoresume-netboot-ppc64-pseries-20060216/
Location of the package cache is /var/tmp/catalyst2/packages/default/netboot-ppc64-pseries-20060216/
Location of the kerncache is /var/tmp/catalyst2/kerncache/default/netboot-ppc64-pseries-20060216/
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/netboot_target.py", line 43, in __init__
    self.set_build_kernel_vars(addlargs)
TypeError: set_build_kernel_vars() takes exactly 1 argument (2 given)
#


This is my netboot.spec (very first try):

subarch: ppc64
version_stamp: pseries-20060216
target: netboot
rel_type: default
profile: default-linux/ppc/2006.0/ppc64/64bit-userland
snapshot: 20060216
source_subpath: default/stage3-ppc64-64ul-2005.1-r1
netboot/kernel/sources: gentoo-sources
netboot/kernel/config: /root/pseries-kernel.config
netboot/packages:
        util-linux
        e2fsprogs
        jfsutils
        xfsprogs
        reiserfsprogs
        nano
        vim
        rsync
        wget
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-04-18 12:49:50 UTC
Sorry that this has taken so long to get to...

What if you try without kerncache enabled?
Comment 2 Markus Rothe (RETIRED) gentoo-dev 2006-05-05 02:33:34 UTC
I'm getting the same error (this is a fresh snapshot as of 20060505 and catalyst2.0_rc45:

# catalyst2 -f netboot.spec
Gentoo Catalyst, version 2.0_rc45
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 "/usr/lib/catalyst2"
Setting snapshot_cache to default value "/var/tmp/catalyst2/snapshot_cache"
Setting hash_function to config file value "crc32"
Setting storedir to config file value "/var/tmp/catalyst2"
Setting portdir to default value "/usr/portage"
Setting distdir to config file value "/usr/portage/distfiles"
Setting options to config file value "autoresume ccache pkgcache seedcache snapcache"
Compiler cache support enabled.
Package cache support enabled.
Snapshot cache support enabled.
Seed cache support enabled.
Autoresuming support enabled.
Using target: netboot
Building natively for ppc64
netboot root path is /tmp/image
Source path set to /var/tmp/catalyst2/builds/default/stage3-ppc64-2006.0-64ul.tar.bz2
Caching snapshot to /var/tmp/catalyst2/snapshot_cache/20060505/
The autoresume path is /var/tmp/catalyst2/tmp/default/.autoresume-netboot-ppc64-pseries-20060216/
Location of the package cache is /var/tmp/catalyst2/packages/default/netboot-ppc64-pseries-20060216/
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/netboot_target.py", line 43, in __init__
    self.set_build_kernel_vars(addlargs)
TypeError: set_build_kernel_vars() takes exactly 1 argument (2 given)
Comment 3 Stéphane GAUTIER 2006-06-18 09:08:21 UTC
Idem, on x86 arch.

shandril ~ # catalyst2 -f netboot_template.spec
Gentoo Catalyst, version 2.0_rc47
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 "/usr/lib/catalyst2"
Setting snapshot_cache to default value "/var/tmp/catalyst2/snapshot_cache"
Setting hash_function to config file value "crc32"
Setting storedir to config file value "/var/tmp/catalyst2"
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.
Using target: netboot
Building natively for x86
netboot root path is /tmp/image
Source path set to /var/tmp/catalyst2/builds/stage3-x86-2006.0+20060614-0.tar.bz2
Caching snapshot to /var/tmp/catalyst2/snapshot_cache/ghsi2/
The autoresume path is /var/tmp/catalyst2/tmp/default/.autoresume-netboot-i386-1.0beta1/
Location of the package cache is /var/tmp/catalyst2/packages/default/netboot-i386-1.0beta1/
Location of the kerncache is /var/tmp/catalyst2/kerncache/default/netboot-i386-1.0beta1/
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/netboot_target.py", line 43, in __init__
    self.set_build_kernel_vars(addlargs)
TypeError: set_build_kernel_vars() takes exactly 1 argument (2 given)


-------------
shandril ~ # cat netboot_template.spec
subarch:i386
version_stamp: 1.0beta1
target: netboot
rel_type: default
profile: default-linux/x86/2006.0
snapshot:ghsi2
source_subpath:stage3-x86-2006.0+20060614-0
netboot/kernel/sources:gentoo-sources
netboot/kernel/config:/usr/share/gmk/ghsi2/conf/k26-config
Comment 4 Daniel Black (RETIRED) gentoo-dev 2006-11-23 20:00:23 UTC
Created attachment 102612 [details, diff]
fix

set_build_kernel_vars didn't take arguements in modules/generic_stage_target.py
Comment 5 Markus Rothe (RETIRED) gentoo-dev 2006-12-12 00:32:39 UTC
it's fixed in catalyst 2.0
Comment 6 Markus Rothe (RETIRED) gentoo-dev 2006-12-12 00:32:55 UTC
closing