[Kamailio-Devel] Perl module renaming

Johansson Olle E oej at edvina.net
Wed Aug 6 11:48:24 CEST 2008


6 aug 2008 kl. 11.35 skrev Klaus Darilion:

>
>
> Alex Balashov schrieb:
>> Klaus Darilion wrote:
>>>
>>> Bastian Friedrich schrieb:
>>>> Klaus,
>>>>
>>>> On Wednesday 06 August 2008, Klaus Darilion wrote:
>>>>> Hi Bastian!
>>>>>
>>>>> Could you please rename the perl modules from OpenSER::.... to
>>>>> Kamailio::
>>>>>
>>>>> I do not have that much experience with perl ...
>>>> these renamings will break running installations out there; Perl
>>>> scripts include libraries with lines such as
>>>> use OpenSER::Message;
>>>
>>> Ok. Is this something that can be solved with symlinks?
>>
>> Not entirely;  there are various namespace bindings within the code.
>>
>> In a purely Perl module, something like this typically appears in the
>> .pm package:
>>
>>   package OpenSER::Miracles::PerpetualMotion;
>>
>> This, in tandem with the directory structure
>> (OpenSER/Miracles/PerpetualMotion.pm) is what allows the module to be
>> "used" elsewhere:
>>
>>   use OpenSER::Miracles::PerpetualMotion;
>>
>> In the case of XS modules (C code with Perl API hooks), there are  
>> bound
>> to be similar constructs, although since I don't do XS I don't know  
>> what
>> they are.
>
> Ok. Thank's for the info. Thus it wont be changed for 1.4

I would encourage that the next release of the Perl module use
a new namespace. When people upgrade, they can switch.

/O
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2207 bytes
Desc: not available
Url : http://lists.kamailio.org/pipermail/devel/attachments/20080806/8ca7a9b8/attachment.bin 


More information about the Devel mailing list