Skip Menu |

This queue is for tickets about the Module-Find CPAN distribution.

Report information
The Basics
Id: 49511
Status: resolved
Priority: 0/
Queue: Module-Find

People
Owner: Nobody in particular
Requestors: GRUBER [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.07
Fixed in: 0.08



Subject: The distribution tarball for 0.07 contains Mac OS X extended attributes
At least on some systems (FreeBSD and Linux tested) the extended attributes unpack as files: ._README ._Makefile.PL ... This leads to build failures: Checking if your kit is complete... Looks good Writing Makefile for Module::Find cp ._Find.pm blib/lib/Module/._Find.pm cp Find.pm blib/lib/Module/Find.pm Manifying blib/man3/Module::Find.3 /usr/local/bin/perl "-Iblib/arch" "-Iblib/lib" ._Makefile.PL ._Makefile Unrecognized character \x05 in column 2 at ._Makefile.PL line 1.
I recommend putting something like the following into your Makefile.PL if ($^O eq 'darwin') { my $osx_ver = `/usr/bin/sw_vers -productVersion`; chomp $osx_ver; # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE # On 10.5 (Leopard) it wants COPYFILE_DISABLE die("Oh, you got Snow Lepoard, snazzy. Please read the man page for tar to find out if Apple renamed COPYFILE_DISABLE again and fix this Makefile.PL please?\n") if $osx_ver =~ /^10.6/; my $attr = $osx_ver =~ /^10.5/ ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE'; makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}. qq{ echo "You must set the ENV variable $attr to true,"; }. ' echo "to avoid getting resource forks in your dist."; exit 255; fi' }); }
Resolved in 0.08.