Re: [Module::Build] Archive::Tar file format
Status: Beta
Brought to you by:
kwilliams
|
From: Randy W. S. <Ra...@Th...> - 2004-01-13 23:35:27
|
On 1/12/2004 6:15 AM, Jos I. Boumans wrote:
>> YES! Looks good. I will test more extensively when a snapshot is
>> available. Thanks.
>
>
> You can find a snapshot attached. To use the new feature, follow this
> bit of documentation:
>
I've tried both versions with no success after modifying Module::Build
with the patch below. I get the same result whether DO_NOT_USE_PREFIX is
true or false. WinZip and PowerArchiver can not read the path info,
while WinRAR and at least one port of GNU tar can read it.
Randy.
$ diff -u Base.pm.orig Base.pm
--- Base.pm.orig 2004-01-10 23:19:59.000000000 -0500
+++ Base.pm 2004-01-13 18:01:36.000000000 -0500
@@ -1741,6 +1741,9 @@
$self->do_system($self->{args}{gzip}, "$dir.tar") if
$self->{args}{gzip};
} else {
require Archive::Tar;
+ # Archive::Tar versions >= 1.09 use the following to enable a
compatibility
+ # hack so that the resulting archive is compatible with older clients.
+ $Archive::Tar::DO_NOT_USE_PREFIX = 1;
my $files = $self->rscan_dir($dir);
Archive::Tar->create_archive("$dir.tar.gz", 1, @$files);
}
|