Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 4 Nov 2005 14:15:43 -0800
From: Yitzchak Scott-Thoennes <sthoenna@efn.org>
To: cygwin@cygwin.com
Cc: gerrit@familiehaase.de
Subject: Re: Missing directories in @INC with  perl 5.8.7 and cygwin 1.5.18-1
Message-ID: <20051104221543.GA4488@efn.org>
References: <OFFF9A9C01.31F55254-ONC12570AF.0023A18B-C12570AF.0029337C@arburg.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <OFFF9A9C01.31F55254-ONC12570AF.0023A18B-C12570AF.0029337C@arburg.com>
User-Agent: Mutt/1.4.2.1i
X-IsSubscribed: yes

On Fri, Nov 04, 2005 at 08:30:01AM +0100, Frank_Ehlert wrote:
> If PERL5LIB is set, perl searches for according version directories and
> architecture specific directories.
> If they are present they will be included in the @INC array.
> 
> 
> Now I am faced with the problem that with perl 5.8.7 this does not work anymore!
> 
> export PERL5LIB=//swece/sweperl/module/CPAN/lib/perl5/site_perl

As a workaround, do (untested):

  export PERL5LIB=//swece/sweperl/module/CPAN/lib/perl5/site_perl
  PERL5LIB="$PERL5LIB:$PERL5LIB/5.8/cygwin:$PERL5LIB/5.8:$PERL5LIB/cygwin"

> perl -V
> ...
>   @INC:
>     //swece/sweperl/module/CPAN/lib/perl5/site_perl
>     /usr/lib/perl5/5.8/cygwin
>     /usr/lib/perl5/5.8
> ...
> 
> With perl 5.8.2  the output looks like
> perl -V
> ...
>   @INC:
>     //swece/sweperl/module/CPAN/lib/perl5/site_perl/5.8.2
> /cygwin-thread-multi-64int
>     //swece/sweperl/module/CPAN/lib/perl5/site_perl/5.8.2
>     //swece/sweperl/module/CPAN/lib/perl5/site_perl
>     /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int
>     /usr/lib/perl5/5.8.2
> ...

The perl code to add directories from 
Easiest workaround to make this work in general would be to build
perl with

inc_version_list="5.8/cygwin 5.8 cygwin"

in Policy.sh.  Gerrit, do you want to release a new perl package
with this set?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

