Overriding core modules...

Ralf Corsepius rc040203 at freenet.de
Tue Mar 24 05:49:11 UTC 2009


Tom "spot" Callaway wrote:
> On 03/23/2009 02:01 PM, Chris Weyl wrote:
>   
>> So, a couple days ago I packaged up and submitted perl-autodie, with an
>> eye towards geting perl-Git-CPAN-Patch in.  autodie provides a new
>> Fatal.pm that needs to override core Fatal; which is easy enough now
>> that we have[1] @INC basically matching site, vendor, core in F-9+. 
>> AFACIT the new Fatal is cleanly usable in any Fedora situation without
>> needing code modifications on the user's part, is only installed when
>> someone actively chooses to install it (or something else pulls it in as
>> a prereq), doesn't conflict with any files owned by any other package,
>> and doesn't need any deep magic to get it working.
>>     
>
> Ehh, I'm not really thinking that overriding core Fatal is a good idea
> here.
Well, IMHO, that's _way_ to weakly phrased.

>  Especially not in a Fedora package. Why doesn't it just namespace
> it (e.g. autodie-Fatal.pm)?
>
>   
Agreed.

=> different explicit "use/requires".
=> only modules explicitly "use/require"-ing this module would be affected.

An alternative would be to postpone integration of this package into 
Fedora until core's Fatal.pm has been updated to meet this package's 
requirements.

Ralf





More information about the Fedora-perl-devel-list mailing list