Re: Registering Perl files in pkgsrc

Francois Tigeot <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.wip.general
Message-ID <[email protected]>
Hi,

Thanks for the quick answer.

OBATA Akio wrote:
> On Mon, 29 Aug 2011 15:20:56 +0900, Francois Tigeot<[email protected]>  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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.