My experience when writing File::ShareDir in the first place was that
the underlying Perl configuration structure in Config only understands
a limited set of directory types.

The set of directory types does NOT include the concept of "share"
(readonly per-installation data files).

The key concept in making File::ShareDir work came from Audrey Tang,
who described to me the "auto" directory and that it would not be
unreasonable for us to achieve a limited for of "share" by hanging off
the back of "auto".

Based on that concept, we have an implementation of "share" which
works but is to some degree unofficial, in that the Perl core does not
recognise the concept.

If it WAS aware of "share", then people like Debian could configure it
to point at the real share path, instead of us being stuck in the
wrong place...

Which is to say, there's no way that I'm aware of to add a new
directory type. File::ShareDir just found a reasonably acceptable
cheat.

Adam K

2009/1/18 Eric Wilhelm <[email protected]>:
> Hi all,
>
> Any thoughts?  Code?
>
> Thanks,
> Eric
>
> ----------  Forwarded Message:  ----------
>
> Subject: [rt.cpan.org #41166] svn.perl.org r11816 broke zim:
> install_sets modification not preserved anymore
> Date: Saturday 17 January 2009 05:56
> From: "Jaap Karssenberg via RT" <[email protected]>
> To: undisclosed-recipients:;
>
>       Queue: Module-Build
>  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=41166 >
>
> On Tue Jan 13 00:35:49 2009, EWILHELM wrote:
>> I think that code is out-of-bounds by modifying the install_sets
>> element directly.  It would possibly be less breakable if it were
>> done local() in one of the overridden methods, but probably
>> Module::Build should offer some "official" 'share' directory as part
>> of the API. That does, however, raise the issue of whether it behaves
>> ala File::ShareDir or not.
>
> Hi Eric,
>
> I see the debian maintainers filed a bug based on my hacks to get
> Module::Build do what I want.
>
> As far as I am aware there is no standard way to add directory types to
> the install structure - is that correct ? Do you happen to know of
>  other projects dealing with this particular of installing a full
>  application instead of just a module ?
>
> Any hints are appreciated, will need to find a new hack to hook into
> Module::Build ...
>
> Cheers!
>
> Jaap
>
> -------------------------------------------------------
>

Reply via email to