[rt.cpan.org #104635] IO error the first time an executable built by the packer is run on OSX

[email protected] ("Michael_Schilli via RT")
Newsgroups perl.par
Message-ID <[email protected]>
Thu Jun 25 14:30:52 2015: Request 104635 was acted upon.
Transaction: Correspondence added by MSCHILLI
       Queue: PAR-Packer
     Subject: IO error the first time an executable built by the packer is run on OSX
   Broken in: 1.025
    Severity: (no value)
       Owner: RSCHUPP
  Requestors: [email protected]
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=104635 >


I've found a way to reproduce it, try this:

mkdir -p lib/Foo eg

cat >Foo.pm  <<EOT
package Foo;
use Foo::Bar;
sub foo {
    Foo::Bar->foo();
}
1;
EOT

cat >lib/Foo/Bar.pm <<EOT
package Foo::Bar;
sub foo { print "hello\n"; }
1;
EOT

cat >eg/foo <<EOT
#!/usr/bin/perl -w
use lib "lib";
use Foo;
Foo::foo();
EOT

chmod +x eg/foo
pp -o broken.exe eg/foo
./broken.exe

IO error: Can't open file /var/folders/_9/ts8bmfyd3wb7nq36_p2fs1p40000gn/T//par-6d736368696c6c69/cache-77a96ed9cc9da13b9f275d500f8ec0ed2e7e58a1/inc/lib/foo for write : Is a directory 
 at -e line 953.

Seems to be related to the fact that the osx FS won't distinguish between Foo and foo.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.