Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60502 - catalyst stage2 doesnt support package cache
Summary: catalyst stage2 doesnt support package cache
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: John Davis (zhen) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-15 16:54 UTC by SpanKY
Modified: 2004-09-28 23:47 UTC (History)
1 user (show)

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


Attachments
stage2-pkgcache-support.patch (stage2-pkgcache-support.patch,751 bytes, patch)
2004-09-08 21:35 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2004-08-15 16:54:41 UTC
the stage2 script has this bit of code:
if [ -n "${clst_PKGCACHE}" ]
then
    export EMERGE_OPTS="--usepkg --buildpkg"
fi

however, the last thing the catalyst stage2 script does is run the bootstrap script ... that script doesnt use $EMERGE_OPTS thus packages are never built/used ...

one way to solve the building of packages is to add a line like this:
    export clst_myfeatures="${clst_myfeatures} buildpkg"
to the aforementioned if statement ... i dont think 'usepkg' is a valid FEATURE though, so i'm not sure how to have tell the bootstrap script to use packages ...
Comment 1 John Davis (zhen) (RETIRED) gentoo-dev 2004-08-15 22:16:46 UTC
its a problem with bootstrap.sh itself. the shoddy code contained within does not allow for variables such as EMERGE_OPTS. kick solar and rac in the ass so that they get their uber bootstrap script completed ;)

i'd much rather have this fixed at the source then creating a kludge in catalyst for it. closing.
Comment 2 SpanKY gentoo-dev 2004-09-02 07:52:46 UTC
i fixed the bootstrap-cascade script with like 2 or 3 lines of code :p

all catalyst has to do is run the bootstrap script with the '-r' option
Comment 3 John Davis (zhen) (RETIRED) gentoo-dev 2004-09-03 09:47:42 UTC
is bootstrap-cascade.sh the defacto bootstrap script now?
Comment 4 SpanKY gentoo-dev 2004-09-03 10:40:19 UTC
it is for cascading profiles ;)

i'm pretty sure it'll work but i havent tested
Comment 5 John Davis (zhen) (RETIRED) gentoo-dev 2004-09-05 07:20:17 UTC
the functionality is added to catalyst, but bootstrap-cascade does not seem to work w/ pkgcache. Portage uses its tbz2 just fine, but every package after it does not use its previously created binary package.
Comment 6 SpanKY gentoo-dev 2004-09-08 21:28:55 UTC
i just tested it here with portage-2.0.50-r11 and it worked fine:

<snip>
--- /usr/share/
--- /sbin/
>>> /sbin/ldconfig
>>> Regenerating /etc/ld.so.cache...
>>> dev-libs/uclibc-0.9.26-r5 merged.
>>> emerge (3 of 7) sys-devel/gnuconfig-20040214 to /
>>> extracting info
>>> extracting gnuconfig-20040214
>>> Merging sys-devel/gnuconfig-20040214 to /
noman
noinfo
nodoc
sfperms
--- /usr/
--- /usr/share/
>>> /usr/share/gnuconfig/
<snip>
Comment 7 solar (RETIRED) gentoo-dev 2004-09-08 21:34:12 UTC
Re comment #3 (please yes.. all others should be depreciated)

For the next release cycle to make it easier on Swift and crew we 
should simply just move -cascade to the bootstrap.sh slot and then remove bootstrap-2.6. 

Note that in portage's eye every profile is a cascading one.

Please confirm that this can be done and make the needed changes when releng is ready.
Comment 8 SpanKY gentoo-dev 2004-09-08 21:35:17 UTC
Created attachment 39238 [details, diff]
stage2-pkgcache-support.patch

patch that works for me
Comment 9 John Davis (zhen) (RETIRED) gentoo-dev 2004-09-08 22:14:39 UTC
releng has no problem using the new bootstrap script. just get it renamed to bootstrap.sh and I will apply this patch. thanks for the work!
Comment 10 John Davis (zhen) (RETIRED) gentoo-dev 2004-09-28 23:47:31 UTC
fixed in CVS