Re: [Module::Build] Preserving files' executable bits, once more
Status: Beta
Brought to you by:
kwilliams
|
From: Randy W. S. <ml...@th...> - 2006-04-07 15:41:32
|
Julian Mehnle wrote:
> Hi M::B developers,
>
> in October 2004, I reported a bug that M::B wasn't preserving the
> executable bits of files when creating a dist tarball (i.e. with the
> "dist" action).[1] The issue was resolved in M::B 0.27_01 by an addition
> of chmodding code to the Module::Build::Base::ACTION_distdir() method.[2]
>
> Now I'm experiencing a similar problem in a slightly different situation.
> I have essentially the following in Build.PL:
>
> | my $build = $class->new(
> | ...
> | install_path => {
> | ...
> | 'etc-global' => '/etc'
> | },
> | misc_files => {
> | 'misc/foo-bar' => 'etc-global/foo/bar'
> | },
> | ...
> | );
> |
> | $build->add_build_element('misc');
>
> The intent is to install misc/foo-bar to /etc/foo/bar (with /etc/foo/
> belonging to another package and bar being a hook script), which basically
> works ok. misc/foo-bar has the executable bit set, however when the file
> is copied to blib/etc-global/foo/bar, the x bit gets lost.
>
> Is that by design? If not, I hope this can be fixed before the release of
> 0.28.
Hi Julian,
I haven't had time to look into this at yet, but I wanted to let you
know you haven't been warnocked. I'll try to look at this issue sometime
over the weekend.
Randy.
> Julian.
>
> References:
> 1. http://rt.cpan.org/Ticket/Display.html?id=8190
> 2. http://sourceforge.net/mailarchive/message.php?msg_id=11494869
|