Skip Menu |

This queue is for tickets about the App-FatPacker CPAN distribution.

Report information
The Basics
Id: 84414
Status: resolved
Priority: 0/
Queue: App-FatPacker

Owner: ether [...]
Requestors: miyagawa [...]

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

Subject: deal with relative paths in @INC
Date: Wed, 3 Apr 2013 14:45:48 -0700
To: bug-app-fatpacker <bug-app-fatpacker [...]>
From: Tatsuhiko Miyagawa <miyagawa [...]>
Download (untitled) / with headers
text/plain 1.1k
When there's a relative path in @INC (e.g. with -Mlib=./local/lib/perl5), FatPacker died with `Can't open local/lib/perl5/.../.packlist` even if the file exists, because of File::Find's chdir, and $File::Find::name is yet relative. This patch adds 'no_chdir' option to File::Find to stop chdir'ing to the directories, and then expand the %INC entries to fullpath with Cwd::abs_path, so that it will hopefully match with what you have in .packlist content. Reproduce: cpanm -l local Plack perl -Mlib=local/lib/perl5 -S fatpack packlists-for Before this patch: Can't open local/lib/perl5/darwin-2level/auto/Plack/.packlist: No such file or directory at /Users/miyagawa/perl5/perlbrew/perls/perl-5.16.2/lib/site_perl/5.16.2/App/ line 32. BEGIN failed--compilation aborted at /Users/miyagawa/perl5/perlbrew/perls/perl-5.16.2/bin/fatpack line 3. After this patch: local/lib/perl5/darwin-2level/auto/Plack/.packlist Patch: Merge: git pull packlist-abs -- Tatsuhiko Miyagawa
applied and released, thanks!

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to