Subject: Re: pkgviews lost on perl
To: Johnny Lam <jlam@NetBSD.org>
From: =?UTF-8?Q?C=C3=A9sar_Catri=C3=A1n?= C. <ccatrian@eml.cc>
List: tech-pkg
Date: 08/12/2005 16:19:45
On Thu, 11 Aug 2005 18:02:57 -0400
Johnny Lam <jlam@NetBSD.org> wrote:
> 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.
Well, that patch is not for the same unresolved problem of automake.
It is the same problem here on perl, a file storing the path to another files.
Can the real path be stored in the package depotbase and changed, when it is
added to the default view, by `pkg_view add'? linkfarm are only symlinks, but
can one of those symlinks be replaced by a real file, with valid paths in the
view?
Are there some options? I don't remember them very much.
Regards
César Catrián C.