Skip Menu |

This queue is for tickets about the PAR-Packer CPAN distribution.

Report information
The Basics
Id: 103861
Status: resolved
Priority: 0/
Queue: PAR-Packer

People
Owner: RSCHUPP [...] cpan.org
Requestors: Harald.Joerg [...] arcor.de
Cc:
AdminCc:

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



Subject: Adding local directories to @INC for a pp executable fails
Date: Tue, 21 Apr 2015 19:58:31 +0200
To: bug-PAR-Packer [...] rt.cpan.org
From: Harald.Joerg [...] arcor.de (Harald Jörg)
Hello PAR-Packers, as suggested by Roderich on par@perl.org, I am submitting this observation as a bug report. The symptom: My application adds a local directory to @INC with 'use lib'. After packing with pp, modules in this directory are no longer found. Surprisingly, when I add more than one library, only the last 'use lib' fails. So, I do have an (ugly) workaround, but no idea about whether it has side effects. Versions: Perl v5.18.2, PAR::Packer 1.017, Linux ubuntu 3.13.0-45-generic Here's a simple demo: 'foo' is added to @INC as intended, 'bar' isn't. ---------------------------------------------------------------------- $ cat local_includes.pl use Data::Dumper; use lib 'foo'; use lib 'bar'; print Dumper(\@INC); $ pp local_includes.pl $ ./a.out $VAR1 = [ 'foo', sub { "DUMMY" }, '/tmp/par-68616a/cache-5bde0b3f6eab9c5f0be91ed26371a4bb8b7cbac1/inc/lib', '/tmp/par-68616a/cache-5bde0b3f6eab9c5f0be91ed26371a4bb8b7cbac1/inc', sub { "DUMMY" }, sub { "DUMMY" } ]; ---------------------------------------------------------------------- PAR::Packer are really awesome if you want to run Perl applications on Windows tablets with 32GB SSDs, where the 500MB of Strawberry begin to hurt badly... -- Cheers, haj
On 2015-04-21 13:58:48, Harald.Joerg@arcor.de wrote: Show quoted text
> Here's a simple demo: 'foo' is added to @INC as intended, 'bar' isn't. > ---------------------------------------------------------------------- > $ cat local_includes.pl > use Data::Dumper; > use lib 'foo'; > use lib 'bar'; > print Dumper(\@INC); > $ pp local_includes.pl > $ ./a.out > $VAR1 = [ > 'foo', > sub { "DUMMY" },
The bug is actually in PAR (not PAR::Packer), fixed in PAR 1.009, just uploaded to CPAN. Cheers, Roderich