tech-pkg archive

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

Re: Perl package problem



On Tue, 2 Feb 2010, Matthias Scheler wrote:
> On Tue, Feb 02, 2010 at 11:08:13PM +1300, Steven Drake wrote:
> > On Sat, 30 Jan 2010, Matthias Scheler wrote:
> > > when I update Perl package via "pkg_add -u" under Mac OS X Snow Leopard
> > > I frequently get messages like this:
> > > 
> > > tron@excalibur:/usr/pkgsrc/converters/p5-MIME-Base64>sudo pkg_add -u 
> > > /share/archive/Darwin/packages/10.2.0/i386/All/p5-MIME-Base64-3.09.tgz
> > > Password:
> > > mausage: /usr/pkg/lib/perl5/bin/perllink [-fnv] [-p prefix] add|delete 
> > > [packlist ...]
> > 
> > It's a bug in the files lang/perl5/files/{de,}install.tmpl.
> 
> Do you also know what the bug is?

Yes, I was just being lazy.  It's the in the line that runs perllink, it
uses `-p ${PKG_PREFIX}' and if for some reason this hasn't been set by
pkg_add/pkg_delete (possibly your version of pkg_install) then it see the
add/delete command as the prefix and no command.

I think the easiest fix is to add the following line (same as what's in
some of the files in mk/pkginstall

: ${PKG_PREFIX=@PREFIX@}

-- 
Steven
I didn't know what he (the Dust Puppy) was when I first drew him,
but I did know that I liked the way he looked.
                        -- J.D. "Illiad" Frazer.


Home | Main Index | Thread Index | Old Index