[paludis-sekrit] [Paludis] #704: Exlibs: Die in global scope / Ability to signal a broken exheres

Paludis trac at pioto.org
Fri Nov 6 19:36:04 UTC 2009


#704: Exlibs: Die in global scope / Ability to signal a broken exheres
-----------------------------+----------------------------------------------
 Reporter:  ingmar           |          Owner:                
     Type:  enhancement      |         Status:  new           
 Priority:  Sometime         |      Milestone:  EAPI exheres-0
Component:  clients/paludis  |        Version:  0.32.4        
 Keywords:                   |      Blockedby:                
 Blocking:  731              |   Distribution:  Exherbo       
-----------------------------+----------------------------------------------

Comment(by pioto):

 Maybe each exlib should define an optional function which is called at
 require time, and may die if things are not valid. It seems like this is
 most likely to be useful for validating exparams. So, I'd suggest we have
 a "${EXLIB}_exparam_validation" which gets called to validate them.

 For example, in easy-multilib.exlib:

 {{{
   easy-multilib_exparam_validation() {
       local abi
       for abi in $(exparam abi); do
           if ! has ${abi} ${MULTIBUILD_CLASSES} ; then
               die "Invalid ABI: ${abi}"
           fi
       done
   }
 }}}

-- 
Ticket URL: <http://trac.pioto.org/paludis/ticket/704#comment:3>
Paludis <http://paludis.pioto.org/>
Paludis, the Other Package Mangler


More information about the paludis-dev mailing list