Setup sdist broken on Windows

Hi, On Windows, taking the filepath library: Building source dist for filepath-1.0... copy System\FilePath.hs to dist\src\filepath-1.0\.\System\FilePath.hs copy System\FilePath\Posix.hs to dist\src\filepath-1.0\.\System\FilePath\Posix.h s copy System\FilePath\Windows.hs to dist\src\filepath-1.0\.\System\FilePath\Windo ws.hs copy System\FilePath\Internal.hs to dist\src\filepath-1.0\System\FilePath\Intern al.hs copy Setup.hs to dist\src\filepath-1.0\Setup.hs copy filepath.cabal to dist\src\filepath-1.0\filepath.cabal D:\bin\tar.exe -C dist\src -czf dist\filepath-1.0.tar.gz filepath-1.0 D:\bin\tar.exe: Cannot use compressed or remote archives D:\bin\tar.exe: Error is not recoverable: exiting now Setup: source tarball creation failed! Tar exited with status 2 Using Cabal from about 2 minutes ago. Any idea what is wrong? Thanks Neil

On Tue, 2007-04-10 at 15:24 +0100, Neil Mitchell wrote:
Hi,
On Windows, taking the filepath library:
D:\bin\tar.exe -C dist\src -czf dist\filepath-1.0.tar.gz filepath-1.0 D:\bin\tar.exe: Cannot use compressed or remote archives D:\bin\tar.exe: Error is not recoverable: exiting now
Any idea what is wrong?
Perhaps your tar doesn't like the -z option to create gziped tarballs, or perhaps it relies on an external gzip command which is missing. Obviously this whole calling tar+gzip solution is not so good on windows. Bjorn has some code for reading and writing tar files but for gzip we only have pure Haskell implementation of the decompression code, for compression we'd need either my zlib binding (which uses an external zlib.dll on windows, though in theory it could be statically linked) or some other implementation. Duncan
participants (2)
-
Duncan Coutts
-
Neil Mitchell