pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Registering Perl files in pkgsrc



Hi,

Thanks for the quick answer.

OBATA Akio wrote:
> On Mon, 29 Aug 2011 15:20:56 +0900, Francois 
> Tigeot<ftigeot%wolfpond.org@localhost>  wrote:
>> I have some trouble with the wip/munin-* packages
>
> Updating packages? or current one?

The current ones: wip/munin-node and wip/munin-master
Previously, only PLIST was buggy. Now, after the 2011Q2 destdir change, 
they don't run anymore.

>> A small exemple:
>>     work/.destdir/usr/pkg/lib/perl5/site_perl/5.12.0/Munin/Node/Config.pm
>>
>> This file location depends on the version of Perl used. How can I encode
>> that in PLIST ?
>
> ${PERL5_SITELIB}/Munin/Node/Config.pm
> (see lang/perl5/dirs.mk and The pkgsrc guide 19.6.6.)

Unfortunately it doesn't seem to work as expected:

PLIST:
+${PERL5_SITELIB}/Munin/Node/Config.pm

=> Creating binary package /usr/pkgsrc/packages/All/munin-node-1.4.5.tgz
pkg_create: can't stat 
`/usr/pkgsrc/wip/munin-node/work/.destdir/usr/pkg/${PERL5_SITELIB}/Munin/Node/Config.pm'
pkg_create: lstat failed for file ${PERL5_SITELIB}/Munin/Node/Config.pm: 
No such file or directory

> IMO, installed files from pkgsrc should be in vendor_perl so that
> files will not be overwritten by manually installed files.

I didn't choose this; this is the default behavior of the software

>> Recently, I have only been able to find references to Perl modules in
>> the pkgsrc guide.
>> Is it impossible to manage .pm files which are not modules in the
>> strictest sense ?
>
> Installing files in site_perl means this package will install perl modules 
> TOO,
> so Perl modules in the guide is also usable for this kind of packages.

I'm afraid not: this software is special and doesn't use real Perl 
modules; it creates and installs .pm files by itself.
I managed to convert a small part of Munin to a real module 
(wip/munin-common) but if possible I'd like to avoid this for the other 
munin-* packages.

-- 
Francois Tigeot

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss


Home | Main Index | Thread Index | Old Index