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: Zac Medico <zmedico@g.o>
Subject: Re: Re: Patch problem
Date: Thu, 03 Mar 2011 10:23:07 -0800
On 03/03/2011 09:47 AM, Michael wrote:
> Zac Medico wrote:
>>
>> It seems like you wouldn't have to modify the code that your patch
>> modifies, since essentially what you want is --autounmask except that
>> you want to skip the part about editing config files. Also note that
>> there is an existing feature request to edit config files automatically:
>>
>>   http://bugs.gentoo.org/show_bug.cgi?id=345775
> 
> Interesting, especially #258371 as referenced by the above - it seems to be 
> exactly what I was after.
> 
> If I'm way off even in terms of code location, where would a more 
> appropriate place for me to hack this be?

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.
-- 
Thanks,
Zac


Replies:
Re: Re: Patch problem
-- Michael
Re: Re: Patch problem
-- Michael
References:
Patch problem
-- Michael
Re: Patch problem
-- Zac Medico
Re: Patch problem
-- Michael
Navigation:
Lists: gentoo-portage-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Patch problem
Next by thread:
Re: Re: Patch problem
Previous by date:
Re: Patch problem
Next by date:
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.