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

People
Owner: ether [...] cpan.org
Requestors: miyagawa [...] gmail.com
Cc:
AdminCc:

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



From miyagawa [...] gmail.com Wed Apr 3 17: 52:28 2013
MIME-Version: 1.0
X-Spam-Status: No, score=-5.396 tagged_above=-99.9 required=10 tests=[AWL=0.824, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <CADGpoaOPZ9EjQyzSGsqCQ20wea3o4WmFhd6v7OLazz1zrAH=GA [...] mail.gmail.com>
X-Received: by 10.194.123.103 with SMTP id lz7mr5452486wjb.10.1365025933248; Wed, 03 Apr 2013 14:52:13 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -5.396
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 5DA45240BE6 for <cpan-bug+app-fatpacker [...] hipster.bestpractical.com>; Wed, 3 Apr 2013 17:52:28 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oeUUqiCqTelA for <cpan-bug+app-fatpacker [...] hipster.bestpractical.com>; Wed, 3 Apr 2013 17:52:26 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id B98F1240B63 for <bug-app-fatpacker [...] rt.cpan.org>; Wed, 3 Apr 2013 17:52:25 -0400 (EDT)
Received: (qmail 17885 invoked by uid 103); 3 Apr 2013 21:52:24 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 3 Apr 2013 21:52:24 -0000
Received: from mail-wi0-f177.google.com (HELO mail-wi0-f177.google.com) (209.85.212.177) by 16.mx.develooper.com (qpsmtpd/0.84/v0.84-167-g4ed6cab) with ESMTP; Wed, 03 Apr 2013 14:52:16 -0700
Received: by mail-wi0-f177.google.com with SMTP id hm14so2003419wib.16 for <bug-app-fatpacker [...] rt.cpan.org>; Wed, 03 Apr 2013 14:52:13 -0700 (PDT)
Received: by 10.205.20.4 with HTTP; Wed, 3 Apr 2013 14:45:48 -0700 (PDT)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Delivered-To: cpan-bug+app-fatpacker [...] hipster.bestpractical.com
Subject: deal with relative paths in @INC
Return-Path: <miyagawa [...] gmail.com>
X-RT-Mail-Extension: app-fatpacker
X-Original-To: cpan-bug+app-fatpacker [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=8lUgnD4qepu8oTaRO7hznaxMn6H9fxN51NYKr16b0R4=; b=VhA+eWG/FfpFrEc3vYJfAFVvJRpMRotETYy6cLU/VCvBd4Cf26l6IjoVCijvVn6sGB Ia1uJvnGN7FlkmNG4IxS0tdxD0GRxaQ9KA4tNAO7OTiKkCYpZMhuc8heaMl5MQ2PIiCb T+DcTcsb6/neWK299oy0KYKVrLRC+PgMkOJ6n54zOWkFzKK3cMXVdh7AHYLGwO5/u0+q TV5yaJDcl5KJ6daU9mODpOrZGNZdYU2GpDpV/8Ticf3xZHlmrrmg12xxUUvC+y1CsKDK K1XmxUPkJMZEGp3QcW92HDU3V89jInxnustWLESbEJp7EXWaRy5Pp24U2QVFke5wDhDU ztGg==
Date: Wed, 3 Apr 2013 14:45:48 -0700
X-Spam-Level:
To: bug-app-fatpacker <bug-app-fatpacker [...] rt.cpan.org>
From: Tatsuhiko Miyagawa <miyagawa [...] gmail.com>
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 1140
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 Plack.pm 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/FatPacker.pm 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: https://github.com/miyagawa/App-FatPacker/compare/master...packlist-abs Merge: git pull https://github.com/miyagawa/App-FatPacker packlist-abs -- Tatsuhiko Miyagawa
MIME-Version: 1.0
In-Reply-To: <CADGpoaOPZ9EjQyzSGsqCQ20wea3o4WmFhd6v7OLazz1zrAH=GA [...] mail.gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CADGpoaOPZ9EjQyzSGsqCQ20wea3o4WmFhd6v7OLazz1zrAH=GA [...] mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.14-699-1374894493-1005.84414-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 29
applied and released, thanks!


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.