Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155911 - small cleanup for generic_stage_target and stage2_target
Summary: small cleanup for generic_stage_target and stage2_target
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-11-21 19:54 UTC by Andrew Gaffney (RETIRED)
Modified: 2006-12-06 13:47 UTC (History)
0 users

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


Attachments
cleanup patch (catalyst.patch,3.98 KB, patch)
2006-11-21 19:55 UTC, Andrew Gaffney (RETIRED)
Details | Diff
new patch (catalyst.patch,4.87 KB, patch)
2006-11-22 05:19 UTC, Andrew Gaffney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gaffney (RETIRED) gentoo-dev 2006-11-21 19:54:01 UTC
Here's some minor code cleanups for generic_stage_target and stage2_target.

In stage2_target, I removed set_root_path(), since it was copied from stage1_target, and it was just plain wrong for stage2. I also removed set_source_path() because it was functionally equivalent to the in generic_stage_target, except it used seedcache without checking to make sure it was in self.settings.

In generic_stage_target, I just removed a few duplicated lines of code in set_source_path().

I'm running a full stage build now with my patch applied to the latest released catalyst. It's only on stage1, but I don't foresee problems.
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2006-11-21 19:55:30 UTC
Created attachment 102504 [details, diff]
cleanup patch
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2006-11-22 05:10:46 UTC
Weird. When I got up this morning, the catalyst run was "stuck" on stage2. I killed it and checked the log. This is where it was:

 * System has been bootstrapped already!
 * If you re-bootstrap the system, you must complete the entire bootstrap process
 * otherwise you will have a broken system.
 * Press enter to continue or CTRL+C to abort ...

Okay, it looks like it was pulling from /var/tmp/catalyst/tmp/default/stage1-i686-2007.0_pre/ instead of /var/tmp/catalyst/tmp/default/stage1-i686-2007.0_pre/tmp/stage1root/ like it's supposed to. Instead of removing set_source_path() in stage2_target(), I'll fix it to check SEEDCACHE.
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2006-11-22 05:19:35 UTC
Created attachment 102539 [details, diff]
new patch

This new patch still does a bit of cleanup while still fixing things. I copied set_source_path() from generic_stage_target() and hard-coded /tmp/stage1root/ onto the end of the path instead of bastardizing self.settings["root_path"] for the job like was previously done before. It was essentially still hard-coded before, just in a dumb way :)

I tested it as far as running 'catalyst -a -f -p /tmp/stage2.spec'. It rsync'd from the proper place and started bootstrapping.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2006-11-22 07:11:20 UTC
Added to SVN
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-06 13:47:44 UTC
Fixed in 2.0.1