Fri Mar 06 06:27:12 2020: Request 132055 was acted upon. Transaction: Correspondence added by RSCHUPP Queue: PAR-Packer Subject: PodStrip filter corrupts __FILE__ in modules Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: db...@cpan.org Status: open Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=132055 >
On 2020-03-06 00:07:28, ETHER wrote: > On 2020-03-05 08:22:46, DBOOK wrote: > > > FWIW, the distribution that ran into this problem is Mojolicious. It > > uses the path to modules to find its bundled resource files in several > > places. > > Would File::ShareDir work any better here, I wonder? That was my thought, too. Note that using __FILE__ at runtime isn't the only problem here. The bundled resource files need special treatment when packing a script: Module::ScanDeps doesn't detect them automagically so they won't get packed. Cheers, Roderich