Fwd: PAR vs MIME::Types

[email protected] (Roderich Schupp)
Newsgroups perl.par
Message-ID <CAC9r9zb0Ntj9ajoNj=c22f+w6q=c3TBg8fqEaFkzSUhDwrfgWg@mail.gmail.com>
On Thu, Jun 11, 2015 at 8:09 PM, Philip Gwyn <[email protected]> wrote:
> To me, all libraries should allow the caller to specify where to find data
> files.


That's a nightmare for admins and packagers...

> In fact File::ShareDir is a much better option then __FILE__ or %INC.

What I would like to see (as in "could I haz a pony?") is a standard
way for tools
like PAR to inspect or intercept loading of data. And then have a every module
converted to use that. But that won't happen, TIMTOWTDI rules.

BTW, it's fine with me if people submit bugs against PAR::Packer for
cases like this.
It  generally takes one line in Module::ScanDeps and perhaps another two in
PAR::Packer to fix this.

> Anyone willing to weigh in on the argument?


Anyway, for MIME::Types this will be solved in the next release of PAR::Packer:
it will patch the packaged MIME::Types to load types.db from its
packaged location.


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.