Skip Menu |

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

Report information
The Basics
Id: 4616
Status: open
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: vanHardenbergP [...] pac.dfo-mpo.gc.ca
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.21
Fixed in: (no value)



Subject: Tarball creation tests fail under Win32.
Perl 5.8.2, with Archive::Tar installed... Snippet of output from t/runthrough.t: mkdir Sample-0.01 mkdir Sample-0.01/bin mkdir Sample-0.01/lib mkdir Sample-0.01/lib/Sample Creating Sample-0.01.tar.gz Unable to add file: 'Sample-0.01' at C:/perl/site/5.8.2/lib/Module/Build/Base.pm line 1706 Unable to add file: 'Sample-0.01/bin' at C:/perl/site/5.8.2/lib/Module/Build/Bas e.pm line 1706 Unable to add file: 'Sample-0.01/lib' at C:/perl/site/5.8.2/lib/Module/Build/Bas e.pm line 1706 Unable to add file: 'Sample-0.01/lib/Sample' at C:/perl/site/5.8.2/lib/Module/Bu ild/Base.pm line 1706 Deleting Sample-0.01 ok 20
I believe this particular bug has been fixed in Archive::Tar 1.08, though other annoyances in that module still remain (the directory structure of the tarball won't be seen by many Win32 extractor utilities). -Ken
From: James McCoy
On Sat Jan 10 21:12:34 2004, KWILLIAMS wrote: Show quoted text
> I believe this particular bug has been fixed in Archive::Tar 1.08, > though other > annoyances in that module still remain (the directory structure of the > tarball won't be > seen by many Win32 extractor utilities).
The reason the directory structure isn't seen by such utilities (like WinZip) is due to $Archive::Tar::DO_NOT_USE_PREFIX being set to 0. As noted in Archive::Tar's Changes for version 1.30: - address: #18720 ([PATCH] Archive::Tar creates POSIX style tar files unnecessarily and by default, leading to compatibility problems particularly with WinZip.) If one needs to create tarballs for Windows/Linux and not old Unix systems, then DO_NOT_USE_PREFIX is best set to 1. It'd be useful to be able to override the existing logic in Module::Build::Base::make_tarball and explicitly specify a value for $Archive::Tar::DO_NOT_USE_PREFIX for people that are in such a situation. As it currently stands, I can't use the dist target and instead need to manually package the distdir due to this.