Skip Menu |

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 99457
Status: rejected
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: NGLENN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: portable version doesn't say it is portable
The portable version of Strawberry Perl has an undefined value for $Config{userelocatableinc}. This is misleading and may be the cause of some bugs in distributions that check this (I only know of one: Devel::FindPerl).
On Mon Oct 13 08:07:15 2014, NGLENN wrote:
Show quoted text
> The portable version of Strawberry Perl has an undefined value for
> $Config{userelocatableinc}. This is misleading and may be the cause of
> some bugs in distributions that check this (I only know of one:
> Devel::FindPerl).


The thing is that strawberry perl portable edition does not use "userelocatableinc" (it handle portability in another way) therefore $Config{userelocatableinc} is not set and it is correct. So discuss this issue with Devel::FindPerl authors.

--
kmx
This returns true if the distro is portable Strawberry. I don't know if there are other distros where this would return true, but I think this is fine: print "I'm portable" if eval 'require Portable';
Show quoted text
> print "I'm portable" if eval 'require Portable';
Actually, that's not quite the same as finding out that the distribution is portable, since someone could just do perl -MPortable. One possible heuristic would be to run a new Perl interpreter on a file containing: use File::HomeDir; print "I'm portable" if exists $INC{'Portable.pm'}; and see if it prints "I'm portable". Strawberry Perl has a special version of File::HomeDir, and several other modules, that have been augmented to load Portable.
Subject: [SPAM] Re: [rt.cpan.org #99457] portable version doesn't say it is portable
Date: Mon, 09 Feb 2015 11:18:30 +0100
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: kmx <kmx [...] cpan.org>
For what exactly do you need to know that the perl you are using is portable or not? It may help me to understand what you want to achieve. -- kmx
Subject: Re: [rt.cpan.org #99457] portable version doesn't say it is portable
Date: Mon, 09 Feb 2015 11:45:14 +0100
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: kmx <kmx [...] cpan.org>
BTW: Config is probably the simplest module affected by Portable: c:\anydir> perl -MConfig -e print($INC{'Portable.pm'}?1:0) Or in a script: my $is_portable = system($^X, qw/-MConfig -e exit($INC{'Portable.pm'}?0:1)/); I am not saying it is nice. -- kmx