Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155864 - patch to remove code that sets sane USE_ORDER
Summary: patch to remove code that sets sane USE_ORDER
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 09:32 UTC by Andrew Gaffney (RETIRED)
Modified: 2006-12-06 13:47 UTC (History)
1 user (show)

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


Attachments
patch to remove all occurences of setting USE_ORDER (remove_useorder.patch,2.33 KB, patch)
2006-11-21 09:32 UTC, Andrew Gaffney (RETIRED)
Details | Diff
patch (catalyst-2.0-useflags.patch,1.78 KB, patch)
2006-11-22 07:09 UTC, Daniel Drake (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 09:32:10 UTC
Since >=portage-2.1 has removed 'auto' from the default USE_ORDER, it's no longer necessary to set USE_ORDER to a "sane" value everywhere. This patch removes all the occurences.
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2006-11-21 09:32:44 UTC
Created attachment 102476 [details, diff]
patch to remove all occurences of setting USE_ORDER
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2006-11-21 15:28:54 UTC
Were you spying on my conversations with dsd today?  We were *just* talking about this and he was going to make up a patch.

Thanks, though... I'll apply this to both catalyst SVN locations.
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2006-11-21 15:34:37 UTC
Actually, I made it in response to dsd's problem when he came into #-portage today. I mentioned that the USE_ORDER stuff was no longer needed. He left the channel before I could tell him I made a patch :)
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2006-11-21 16:20:12 UTC
I mean...yes, I was spying on you. I'm just cool like that.

I made the patch for different reasons than him, but the effect is the same. I did it for cleanup purposes, and I assume he wanted it so he could override USE_ORDER from an envscript due to livecd/use overriding anything he had in /etc/portage/package.use.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-11-22 07:01:25 UTC
Added to SVN
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2006-11-22 07:08:54 UTC
I agree with Andrew's change but there happens to be another bug which affects the same piece of code.

Because catalyst is using the environment to export USE (and other things) rather than writing a make.conf, /etc/portage/package.use is not being treated with the same precedence as it would on a normal system. In some situations this makes package.use be completely unused.

The solution is to change USE_ORDER to prioritise conf over env. conf actually encompasses make.conf and /etc/portage but as make.conf is not present there are no side effects of this. Of course, this kind of change will need to be reverted if catalyst ever starts using make.conf instead.

Yes, this could be done in an envscript but I'm not happy about the amount of generic stuff that we are having to do outside of catalyst in order to produce CDs/stages which actually work. This is a bug fix which makes catalyst act like a real system would, there is no reason not to include it while catalyst is not writing make.conf. That said, the upcoming patch will not override USE_ORDER if it is set by an envscript so the user does now have some element of control here.

I don't think this will have any negative effects on releng. Apparently there aren't really any stage4 users other than our work here, plus I don't think you would be using /etc/portage under normal circumstances. But, if you were ever using /etc/portage/package.use for releng stuff, I imagine you would want it to *work* :)
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2006-11-22 07:09:39 UTC
Created attachment 102548 [details, diff]
patch
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2006-11-22 07:36:14 UTC
We don't use package.use by matter of policy.

The solution here for you is to use your envscript.  That is what it is there to do.  In the near future, I'll be working to make catalyst spit out a make.conf, so I'm not accepting any patches which will go against this upcoming change at this time.

You'll find that the rest of your patch is not necessary with the commit that I just made, which is almost identical to the rest of your patch.
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2006-11-22 10:18:35 UTC
OK. Could it at least be documented that USE vs package.use does not behave in the expected way at the moment?
Comment 10 Andrew Gaffney (RETIRED) gentoo-dev 2006-11-22 11:02:38 UTC
Documented where? :P Catalyst has a serious lack of documentation in general, atm. That will be resolved in the relatively near future, but by then, it may not even be an issue anymore :)
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-06 13:47:30 UTC
Fixed in 2.0.1