Can't create sdist bundle

Hi, Long time problem, now with a new version of GHC and Cabal, and still a problem... C:\Documents\Uni\uniplate>runhaskell Setup sdist -v3 Building source dist for uniplate-1.0.1... Creating dist\src\uniplate-1.0.1 (and its parents) Creating dist\src\uniplate-1.0.1 (and its parents) Creating dist\src\uniplate-1.0.1\.\Data\Generics (and its parents) copy .\Data\Generics\Uniplate.hs to dist\src\uniplate-1.0.1\.\Data\Generics\Unip late.hs copy .\Data\Generics\UniplateOn.hs to dist\src\uniplate-1.0.1\.\Data\Generics\Un iplateOn.hs copy .\Data\Generics\Biplate.hs to dist\src\uniplate-1.0.1\.\Data\Generics\Bipla te.hs copy .\Data\Generics\PlateDirect.hs to dist\src\uniplate-1.0.1\.\Data\Generics\P lateDirect.hs copy .\Data\Generics\PlateTypeable.hs to dist\src\uniplate-1.0.1\.\Data\Generics \PlateTypeable.hs copy .\Data\Generics\PlateData.hs to dist\src\uniplate-1.0.1\.\Data\Generics\Pla teData.hs copy .\Data\Generics\PlateInternal.hs to dist\src\uniplate-1.0.1\.\Data\Generics \PlateInternal.hs Creating dist\src\uniplate-1.0.1 (and its parents) copy LICENSE to dist\src\uniplate-1.0.1\LICENSE Creating dist\src\uniplate-1.0.1 (and its parents) copy uniplate.htm to dist\src\uniplate-1.0.1\uniplate.htm Preprocessing library uniplate-1.0.1... Creating dist\src\uniplate-1.0.1 (and its parents) copy Setup.hs to dist\src\uniplate-1.0.1\Setup.hs copy uniplate.cabal to dist\src\uniplate-1.0.1\uniplate.cabal ("C:\\bin\\tar.exe",["-C","dist\\src","-czf","dist\\uniplate-1.0.1.tar.gz","unip late-1.0.1"]) C:\bin\tar.exe: Cannot use compressed or remote archives C:\bin\tar.exe: Error is not recoverable: exiting now Calling tar then gzip would make this work. This bug stops me from updating my Hackage packages which won't work with GHC 6.8.1. Thanks Neil

On Mon, 2007-11-12 at 17:50 +0000, Neil Mitchell wrote:
Hi,
Long time problem, now with a new version of GHC and Cabal, and still a problem...
Calling tar then gzip would make this work. This bug stops me from updating my Hackage packages which won't work with GHC 6.8.1.
Well the simple solution is to change the version of tar.exe you've got to one that does support gzip. I'm sure there must be one. Changing Cabal about to call separate tar and gzip might make it work on your box but since no other Windows users have tar or gzip anyway it won't help them. The right solution imho is to move the sdist feature into cabal-install where it can depend on the tar and zlib packages. Then it'd work without requiring tar.exe or gzip.exe on your path. It already does this for unpacking tarballs and works fine on windows. Duncan

Hi
Well the simple solution is to change the version of tar.exe you've got to one that does support gzip. I'm sure there must be one.
Any idea where I might find it? The words MingW or Cygwin will not be appreciated :-) I have copies of tar and gzip that are Windows native versions, very handy, and could easily be distributed with Cabal on Windows. They come to 155Kb in total, so its not unreasonable to ship them.
The right solution imho is to move the sdist feature into cabal-install where it can depend on the tar and zlib packages.
What is the likely timeframe for this? If its more than a few weeks, then there should really be some way for Windows users to create Cabal packages before this. As a longer term goal, it does seem quite reasonable. Thanks Neil

On Tue, 2007-11-13 at 10:23 +0000, Neil Mitchell wrote:
Hi
Well the simple solution is to change the version of tar.exe you've got to one that does support gzip. I'm sure there must be one.
Any idea where I might find it? The words MingW or Cygwin will not be appreciated :-)
Google suggests: http://unxutils.sourceforge.net/
I have copies of tar and gzip that are Windows native versions, very handy, and could easily be distributed with Cabal on Windows. They come to 155Kb in total, so its not unreasonable to ship them.
We're just not set up for shipping binaries. We have no mechanisms for it.
The right solution imho is to move the sdist feature into cabal-install where it can depend on the tar and zlib packages.
What is the likely timeframe for this? If its more than a few weeks, then there should really be some way for Windows users to create Cabal packages before this. As a longer term goal, it does seem quite reasonable.
Depends on how much of a hacky solution you want. cabal-install already works on windows and uses the zlib package. It already has code for untaring packages. Adding an sdist command to cabal-install that calls the Cabal lib prepareTree function to prepare the tar image and then uses it's internal tar and zlib code to make the package doesn't sound too hard. So if there's someone who wants to have a go at that we can give pointers. When I have a moment to work on cabal-install I'd rather focus on getting cabal-setup and cabal-install merged in a sane way. Their command line handling is a bit of a mess at the moment. Duncan

Hi
Any idea where I might find it? The words MingW or Cygwin will not be appreciated :-)
Google suggests: http://unxutils.sourceforge.net/
Those are the ones I already have, they are great, but they don't do the whole tar with compression thing. Would it really be that hard to make the Windows build default to doing tar then gz? Given the easy availability of the above tar/gz tools, it would make things much easier.
So if there's someone who wants to have a go at that we can give pointers.
My time is kinda fully booked :-) Thanks Neil

Hi Neil,
Have you tried this: http://gnuwin32.sourceforge.net
Regards,
Krasimir
On Nov 13, 2007 1:36 PM, Neil Mitchell
Hi
Any idea where I might find it? The words MingW or Cygwin will not be appreciated :-)
Google suggests: http://unxutils.sourceforge.net/
Those are the ones I already have, they are great, but they don't do the whole tar with compression thing. Would it really be that hard to make the Windows build default to doing tar then gz? Given the easy availability of the above tar/gz tools, it would make things much easier.
So if there's someone who wants to have a go at that we can give pointers.
My time is kinda fully booked :-)
Thanks
Neil
_______________________________________________ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel

Hi Krasimir,
Have you tried this: http://gnuwin32.sourceforge.net
Thanks! That does work. For future reference, you have to pick the Setup link from this page: http://gnuwin32.sourceforge.net/packages/libarchive.htm Downloading their version of "tar" will NOT work, but downloading their version of "bsdtar" will, which you can then rename from bsdtar.exe to tar.exe and add it to your %PATH%. Thanks Neil
participants (3)
-
Duncan Coutts
-
Krasimir Angelov
-
Neil Mitchell