Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2427 - portage: if USE variables change, WORKDIR should be cleaned
Summary: portage: if USE variables change, WORKDIR should be cleaned
Status: RESOLVED NEEDINFO
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 49528 60095 68186 102290 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-03 23:45 UTC by Daniel Robbins (RETIRED)
Modified: 2011-10-30 22:18 UTC (History)
6 users (show)

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 Daniel Robbins (RETIRED) gentoo-dev 2002-05-03 23:45:07 UTC
Otherwise some important patches may not be applied.
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2004-05-23 08:45:57 UTC
*** Bug 49528 has been marked as a duplicate of this bug. ***
Comment 2 Brian Harring (RETIRED) gentoo-dev 2004-08-10 22:51:48 UTC
Only time this pops up is ebuild phase; I'd be more inclined to say, what you had for USE settings during setup phase, is what you end up with.
If that suffices, this bug is addressed by 56408
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-11 05:59:19 UTC
I'm not 100% sure what you wanted to say Brian. Since I never had the time to look at portage sources - and I don't really like to, until it's a bit more stable - I don't know the difference between ebuild and setup phase. Is the latter after all variables are determined? My problem (Bug 49528) is the following: Having keepwork in FEATURES and testing different use flag combinations is not possible, since always the first use flag set is used. Needed a while to find that out, once. And always rm -rf "workdir" is annoying. I don't think bug 56408 is addressing this issue.
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-14 17:51:54 UTC
Another one: When a user does ctrl+c after the unpack phase, because he forgot to set a use flag, no clean up happens and the old environment gets reused until the user removes the temporary data by hand or touches the ebuild. I have seen such bug reports a few times and it is really confusing, if you don't know what happens. Imho the environment should always be redone and not cached.
Comment 5 Jurek Bartuszek (RETIRED) gentoo-dev 2004-08-18 17:55:37 UTC
*** Bug 60095 has been marked as a duplicate of this bug. ***
Comment 6 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-08-26 04:05:17 UTC
If portage does not clean the workdir, what does the feature keepwork do then?
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2004-09-01 03:42:12 UTC
>If portage does not clean the workdir, what does the feature keepwork do then?
I don't know what the original idea was, but I use it to be able to do `emerge <foo>` instead `ebuild <foo> <command>` for ebuild testing/bug squashing. I'm too lazy to type more than necessary.
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2004-10-19 15:30:59 UTC
*** Bug 68186 has been marked as a duplicate of this bug. ***
Comment 9 Stian Skjelstad 2005-06-27 06:16:16 UTC
unless you are doing something like
emerge --resume, workdir should be cleaned
Comment 10 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-24 03:32:25 UTC
(In reply to comment #9)
> unless you are doing something like
> emerge --resume, workdir should be cleaned

The environment is kept in $T. And I still can reproduce this annoying behaviour
with the stable portage. Apart from that, there has just been another related
bug report regarding the workdir opened. >> Bug 100095
Comment 11 SpanKY gentoo-dev 2005-08-12 16:28:15 UTC
*** Bug 102290 has been marked as a duplicate of this bug. ***
Comment 12 Brian Harring (RETIRED) gentoo-dev 2005-08-23 02:10:42 UTC
Carsten, dump portageq envvar FEATURES
Comment 13 Simon Stelling (RETIRED) gentoo-dev 2005-12-26 08:21:28 UTC
became a victim of this annoying behaviour too...
 # portageq envvar FEATURES
autoconfig buildpkg cvs debug distlocks keeptemp keepwork multilib-strict noauto nostrip sandbox sfperms test
Comment 14 Marius Mauch (RETIRED) gentoo-dev 2007-01-10 07:37:27 UTC
Can someone provide an actual testcase for this including the resulting problem (instead of just the cause)? I have some problems understanding the core of this bug and what the solution should really be.