[Haskell-cafe] Cabal, tar and uploading to Hackage

Thor Adam me at thoradam.com
Sun May 25 12:27:32 UTC 2014


You could try setting the TAR_OPTIONS environment variable before running
Setup:

TAR_OPTIONS="--format=ustar" runhaskell Setup.hs sdist


On Sat, May 24, 2014 at 11:41 PM, Magnus Therning <magnus at therning.org>wrote:

> Lately my attempts at creating tar-balls for uploading to Hackage have
> been failing.  I use the standard `./Setup.hs sdist` method to
> generate tar-balls, but apparently that uses `/usr/bin/tar` (GNU tar),
> which defaults to the 'gnu' format, while Hackage requires the
> 'ustar' format.
>
> Is there some way to pass arguments to `tar` when using `./Setup.hs
> sdist`?
>
> /M
>
> --
> Magnus Therning                      OpenPGP: 0xAB4DFBA4
> email: magnus at therning.org   jabber: magnus at therning.org
> twitter: magthe               http://therning.org/magnus
>
> Heuristic is an algorithm in a clown suit. It’s less predictable, it’s more
> fun, and it comes without a 30-day, money-back guarantee.
>      -- Steve McConnell, Code Complete
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>


On Sat, May 24, 2014 at 11:41 PM, Magnus Therning <magnus at therning.org>wrote:

> Lately my attempts at creating tar-balls for uploading to Hackage have
> been failing.  I use the standard `./Setup.hs sdist` method to
> generate tar-balls, but apparently that uses `/usr/bin/tar` (GNU tar),
> which defaults to the 'gnu' format, while Hackage requires the
> 'ustar' format.
>
> Is there some way to pass arguments to `tar` when using `./Setup.hs
> sdist`?
>
> /M
>
> --
> Magnus Therning                      OpenPGP: 0xAB4DFBA4
> email: magnus at therning.org   jabber: magnus at therning.org
> twitter: magthe               http://therning.org/magnus
>
> Heuristic is an algorithm in a clown suit. It’s less predictable, it’s more
> fun, and it comes without a 30-day, money-back guarantee.
>      -- Steve McConnell, Code Complete
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140525/ebf397a9/attachment.html>


More information about the Haskell-Cafe mailing list