Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to disable all global useflags in pkgcore?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
square_
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2007
Posts: 114

PostPosted: Tue Apr 01, 2008 1:49 am    Post subject: how to disable all global useflags in pkgcore? Reply with quote

is there an equivalent to
Code:
USE="-*"
in pkgcore?
it looks like its just overridden.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Tue Apr 01, 2008 7:10 am    Post subject: Reply with quote

using USE="..." emerge ... is discuraged (but portage accepts) since it causes issues w.r.t. re-emerge or if --newuse is used

pkgcore enforces this and thus if you want/need to override the make.conf global USE flags you have to drop it into /etc/portage/package.use

echo "foo/bar beer -wine" >> /etc/portage/package.use
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
square_
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2007
Posts: 114

PostPosted: Tue Apr 01, 2008 4:41 pm    Post subject: Reply with quote

yes.
why does everybody think im talking about the command line at first, haha?

what i do is i disable all use flags in the profile with
Code:
USE="-*"
in /etc.make.conf, then i enable per package use flags in /etc/portage/package.use.
but ... when i use pkgcore, the use flags from the profile are still enabled, additionally to the per package flags. is there a way to get rid of them?
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Tue Apr 01, 2008 5:26 pm    Post subject: Reply with quote

alll gotcha,

There is a ticket open w.r.t. this

Quote:

Evidently pkgcore evaluates USE="-*" before evaluating the profile (or it ignores it entirely). Portage evaluates USE="-*" before the profile, so no USE are left.


I know it is in the bzr build but I am not to sure if such a capability was added to the ebuild that is in portage (0.4.3). Will ask
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
square_
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2007
Posts: 114

PostPosted: Tue Apr 01, 2008 7:02 pm    Post subject: Reply with quote

ok, good to hear its worked on, thanks.
Back to top
View user's profile Send private message
square_
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2007
Posts: 114

PostPosted: Thu Apr 03, 2008 7:54 am    Post subject: Reply with quote

it seems to be fixed in pkgcore-0.4.3
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum