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

[email protected] ("Roderich Schupp via RT")
Newsgroups perl.par
Message-ID <[email protected]>
Fri Jun 26 04:56:15 2015: Request 104635 was acted upon.
Transaction: Correspondence added by RSCHUPP
       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 >


On 2015-06-25 14:30:52, MSCHILLI wrote:
> Seems to be related to the fact that the osx FS won't distinguish
> between Foo and foo.

Yes, because broken.exe which is also a zip file contains this
(using your recipe on Linux, but that shouldn't matter):

$  unzip -l broken.exe
Archive:  broken.exe
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2015-06-26 10:45   lib/
        0  2015-06-26 10:45   script/
      463  2015-06-26 10:45   MANIFEST
      217  2015-06-26 10:45   META.yml
       80  2015-06-26 10:45   lib/Foo.pm
       71  2015-06-26 10:45   lib/Foo/Bar.pm
       55  2015-06-26 10:45   lib/foo
       55  2015-06-26 10:45   script/foo
      676  2015-06-26 10:45   script/main.pl
---------                     -------
     1617                     9 files

The problem is directory lib/Foo (only implied by zip member lib/Foo/Bar.pm)
and file lib/foo - these can't coexist on a case-insensitive filesystem.
Hmm, but why is lib/foo there at all? The original script is in script/foo.
OK, time for some code exegesis...

Cheers, Roderich
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.