Thu Mar 05 11:23:59 2020: Request 132055 was acted upon.
Transaction: Correspondence added by DBOOK
       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 Thu Mar 05 11:22:46 2020, DBOOK wrote:
> On Thu Mar 05 03:31:08 2020, RSCHUPP wrote:
> > On 2020-03-04 18:57:24, DBOOK wrote:
> > > The filename override causes __FILE__ to then be unusable within
> > > the
> > > module since TestModule.pm is not found within cwd.
> >
> > Don't do that then.
> >
> > And yes, there are modules that behave differently when run from a
> > packed executable.
> > PAR/Filter/PatchContent.pm contains workarounds for the known ones.
> 
> 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.
> 
> -Dan

And I will additionally note, this works perfectly fine as long as PodStrip is 
not run.

-Dan

Reply via email to