Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-portage-dev
Navigation:
Lists: gentoo-portage-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-portage-dev@g.o
From: Brian Dolbec <brian.dolbec@...>
Subject: Re: Re: Re: Patch problem
Date: Tue, 08 Mar 2011 06:57:41 -0800
On Wed, 2011-03-09 at 00:41 +1100, Michael wrote:
> Zac Medico wrote:
> > Inside depgraph._resolve(), it returns False if
> > self._dynamic_config._needed_use_config_changes is non-empty. You want
> > to add an option that causes it to return True instead. Also, you'll
> > need to propagate these changes to the config.setcpv() method somehow,
> > so that the changes will be applied by the Scheduler at build time.
> > Normally, the config.setcpv() method calculates USE based on config
> > files, but you want it override the config files with whatever values
> > the depgraph's _needed_use_config_changes contains.
> 
> I've been able to collect the list of flags required to satisfy the 
> dependency and apply them, but I'm having difficulty with ensuring that they 
> do not override the user's settings.
> 
> eg. need +foo to satisfy the dependency, but do not do it it USE="-foo".
> 
> As suggested by yourself, portage.settings.configdict["conf"]["USE"] indeed 
> does contain explicit enable/disable information from make.conf, however the 
> other keys, such as those representing the env or package.use do not.
> 
> How can I get this information?
> 
> 
> Thanks,
> Michael
> 
> 

I suppose you could get the final environment before you modify the USE
then compare with the portage.settings.configdict["conf"]["USE"] you
already got.

have a look in the public_api branch.  there are several functions there
that do that.

http://ln-s.net/8a4K or
http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=blob;f=pym/portage/api/flag.py;h=52ea9be0128074dd3a544ea480796f17591232c2;hb=refs/heads/public_api
-- 
Brian Dolbec <brian.dolbec@...>
Attachment:
signature.asc (This is a digitally signed message part)
References:
Patch problem
-- Michael
Re: Patch problem
-- Zac Medico
Re: Patch problem
-- Michael
Re: Re: Patch problem
-- Zac Medico
Re: Re: Patch problem
-- Michael
Navigation:
Lists: gentoo-portage-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: Patch problem
Next by thread:
Re: Re: Re: Patch problem
Previous by date:
Re: Re: Patch problem
Next by date:
Re: Re: Re: Patch problem


Updated Jun 13, 2012

Summary: Archive of the gentoo-portage-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.