Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148533 - cleaning the builds for a GRP-build
Summary: cleaning the builds for a GRP-build
Status: RESOLVED WONTFIX
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:
Depends on:
Blocks:
 
Reported: 2006-09-21 09:13 UTC by Lars Weiler (RETIRED)
Modified: 2020-03-29 17:51 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 Lars Weiler (RETIRED) gentoo-dev 2006-09-21 09:13:24 UTC
Currently catalyst does not clean the already compiled packages from a previous GRP-build when calling with -p.  I guess it looks at the 'wrong' location (${catalyst_root}/packages/ instead of ${catalyst_root}/builds/).  I assume that -p should clean both locations.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-22 11:39:47 UTC
Actually, catalyst is doing the right thing by only clearing ${catalyst_root}/packages when using -p.  However, it should clear ${catalyst_root}/builds always, like is done with livecd-stage2, since it is a "build" and should be the complete (and exact) product of the running of a spec file.
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-10 21:46:55 UTC
OK.  I've thought about this some more, and this is generally how it *should* work for GRP.

$storedir/tmp/$rel_type/$target should be the actual "installed" location

$storedir/packages/$rel_type/$target should be the actual package cache, just like any other target

$storedir/builds/$rel_type/$target should be cleared and built each time by catalyst, using packages from $storedir/packages/$rel_type/$target to build up the different CD sets as laid out in the spec file

This likely will mean a fairly drastic change in how the catalyst GRP code works, as we'll need to likely generate our package list twice on each run.  The first time, will be everything needed to build the packages, and the second time will be everything needed to run the packages.  During the execution, catalyst will build the packages, installing to $storedir/tmp/$rel_type/$target while building packages and placing them in $storedir/packages/$rel_type/$target for later use.  Once the build is completed, catalyst should then re-run emerge on the original package list to get the list of packages to copy to $storedir/builds/$rel_type/$target, allowing -p to work properly and allowing catalyst to more easily only pull in RDEPEND packages for the GRP set, which should reduce their size.
Comment 3 Matt Turner gentoo-dev 2020-03-29 17:51:48 UTC
I've removed GRP support from catalyst.