Subject: Re: pkgviews lost on perl
To: =?UTF-8?B?IkPDqXNhciBDYXRyacOhbiBDLiI=?= <ccatrian@eml.cc>
From: Johnny Lam <jlam@NetBSD.org>
List: tech-pkg
Date: 08/11/2005 18:02:57
César Catrián C. wrote:
> --- mk/tools/perl.mk.orig 2005-08-11 16:07:13.000000000 -0400
> +++ mk/tools/perl.mk 2005-08-11 16:26:51.000000000 -0400
> @@ -54,10 +54,12 @@
> # Some packages want the path to the perl tool, even if they don't have
> # dependency on perl, e.g. devel/cvs.
> #
> +.if !defined(PERL5)
> . if defined(TOOLS_PLATFORM.perl) && !empty(TOOLS_PLATFORM.perl)
> TOOLS_${_TOOLS_VARNAME.perl}?= ${TOOLS_PLATFORM.perl}
> . else
> TOOLS_${_TOOLS_VARNAME.perl}?= ${LOCALBASE}/bin/perl
> . endif
> ${_TOOLS_VARNAME.perl}?= ${TOOLS_${_TOOLS_VARNAME.perl}}
> +. endif
> .endif
This patch is not enough. Perl will not be able to find any p5-*
modules installed on a pkgviews system because it will look for them in
/usr/pkg/packages/perl-5.8.7/lib/perl5/vendor_perl/5.8.0, but the p5-*
modules will not be installed to that directory.
Cheers,
-- Johnny Lam <jlam@NetBSD.org>