[prev in list] [next in list] [prev in thread] [next in thread] 

List:       puppet-bugs
Subject:    Re: [Puppet-bugs] [puppet] #499: Gentoo use flags?
From:       "puppet" <trac () reductivelabs ! com>
Date:       2007-07-30 8:31:46
Message-ID: 050.c8c2c12813289f3d91e9f1f447d707f5 () reductivelabs ! com
[Download RAW message or body]

#499: Gentoo use flags?
-----------------------------+----------------------------------------------
     Reporter:  puyo         |           Owner:  community            
         Type:  enhancement  |          Status:  new                  
     Priority:  normal       |       Milestone:  unplanned            
    Component:  library      |         Version:                       
     Severity:  normal       |      Resolution:                       
     Keywords:               |           Stage:  Needs design decision
     Approval:  Unnecessary  |           Patch:  None                 
   Complexity:  Medium       |   Compatibility:  Unknown              
Specification:  None         |  
-----------------------------+----------------------------------------------
Comment (by KillerFox):

 Replying to [comment:1 jgonzalez]:
 > The current recommended approach for this is to handle
 /etc/portage/package.use as a whole as a file managed by puppet. If
 LanguageEvolution#per-provider-parameters are implemented we could discuss
 about adding use flags as a parameter of the gentoo provider (this has
 already been discussed in http://mail.madstop.com/pipermail/puppet-
 dev/2007-February/002790.html).

 Well, I don't think this is a good approach in advance to paludis, an
 alternative package mangler. Paludis does not support to specify USE-Flags
 in environment, but manages a file called /etc/paludis/use.conf. It's also
 possible to define subfiles in the use.conf.d directory which will be
 included into use.conf as if it were added to the main file. It's also
 possible there to create bash-script which output will be handles as if it
 were added to use.conf. So I don't think this is the right behaviour to
 add USE-Flags; especially, as USE-Flags shouldn't be specified over
 environment to not break a world-update.

 The right way todo it, is to modify the files itself. Well, portage in
 this case sucks as it manages the global USE-Flags in the file
 /etc/make.conf and the package-specific in the package.use-File, but maybe
 to modifiy the USE-Flags we can use euse from the gentoolkit-package. I'm
 working in advance to paludis to create functions for puppet to modify the
 USE-Flags as there's no aquivalent to euse and euse does not work with
 paludis. The "available" file-modification functions does not work well
 with the USE-Flag format, as there needs to be removed/replaced/added USE-
 Flag on the same line as the package. The functions would be also useful
 for the old good known portage-format for package.use, as paludis uses the
 same with some additions and special cases.

-- 
Ticket URL: <https://reductivelabs.com/trac/puppet/ticket/499#comment:3>
puppet <https://reductivelabs.com>
Puppet - Portable System Automation
_______________________________________________
Puppet-bugs mailing list
Puppet-bugs@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-bugs

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic