Ticket #897 (closed defect: wontfix)

Opened 20 months ago

Last modified 20 months ago

cabal sdist broken on OS X

Reported by: tibbe Owned by:
Priority: high Milestone:
Component: Cabal library Version: 1.8.0.6
Severity: major Keywords:
Cc: bos Difficulty: unknown
GHC Version: Platform: Mac OS

Description

The latest released version of cabal-install generates an sdist correctly:

$ cabal sdist -v3
Warning: Cannot run preprocessors. Run 'configure' command first.
creating dist/src
Building source dist for hashable-1.1.2.2...
creating dist/src/sdist.67677/hashable-1.1.2.2
creating dist/src/sdist.67677/hashable-1.1.2.2/Data
creating dist/src/sdist.67677/hashable-1.1.2.2/cbits
Installing ./Data/Hashable.hs to
dist/src/sdist.67677/hashable-1.1.2.2/./Data/Hashable.hs
Installing cbits/hashByteString.c to
dist/src/sdist.67677/hashable-1.1.2.2/cbits/hashByteString.c
creating dist/src/sdist.67677/hashable-1.1.2.2/tests
Installing tests/Properties.hs to
dist/src/sdist.67677/hashable-1.1.2.2/tests/Properties.hs
creating dist/src/sdist.67677/hashable-1.1.2.2
Installing LICENSE to dist/src/sdist.67677/hashable-1.1.2.2/LICENSE
creating dist/src/sdist.67677/hashable-1.1.2.2
Installing CHANGES to dist/src/sdist.67677/hashable-1.1.2.2/CHANGES
creating dist/src/sdist.67677/hashable-1.1.2.2
Installing README.md to dist/src/sdist.67677/hashable-1.1.2.2/README.md
creating dist/src/sdist.67677/hashable-1.1.2.2/tests
Installing tests/Properties.hs to
dist/src/sdist.67677/hashable-1.1.2.2/tests/Properties.hs
creating dist/src/sdist.67677/hashable-1.1.2.2/benchmarks
Installing benchmarks/Benchmarks.hs to
dist/src/sdist.67677/hashable-1.1.2.2/benchmarks/Benchmarks.hs
creating dist/src/sdist.67677/hashable-1.1.2.2/benchmarks
Installing benchmarks/Makefile to
dist/src/sdist.67677/hashable-1.1.2.2/benchmarks/Makefile
creating dist/src/sdist.67677/hashable-1.1.2.2
Installing Setup.hs to dist/src/sdist.67677/hashable-1.1.2.2/Setup.hs
Installing ./hashable.cabal to
dist/src/sdist.67677/hashable-1.1.2.2/./hashable.cabal
Source tarball created: dist/hashable-1.1.2.2.tar.gz

but HEAD generates an incorrectly named tempdir:

$ cabal sdist -v3
creating dist/src
Building source dist for hashable-1.1.2.2...
creating dist/src/sdist.-67246
creating dist/src/sdist.-67246/Data
creating dist/src/sdist.-67246/cbits
Installing ./Data/Hashable.hs to dist/src/sdist.-67246/./Data/Hashable.hs
Installing cbits/hashByteString.c to
dist/src/sdist.-67246/cbits/hashByteString.c
creating dist/src/sdist.-67246/tests
Installing tests/Properties.hs to dist/src/sdist.-67246/tests/Properties.hs
creating dist/src/sdist.-67246
Installing LICENSE to dist/src/sdist.-67246/LICENSE
creating dist/src/sdist.-67246
Installing CHANGES to dist/src/sdist.-67246/CHANGES
creating dist/src/sdist.-67246
Installing README.md to dist/src/sdist.-67246/README.md
creating dist/src/sdist.-67246/tests
Installing tests/Properties.hs to dist/src/sdist.-67246/tests/Properties.hs
creating dist/src/sdist.-67246/benchmarks
Installing benchmarks/Benchmarks.hs to
dist/src/sdist.-67246/benchmarks/Benchmarks.hs
creating dist/src/sdist.-67246/benchmarks
Installing benchmarks/Makefile to dist/src/sdist.-67246/benchmarks/Makefile
Preprocessing library hashable-1.1.2.2...
creating dist/src/sdist.-67246
Installing Setup.hs to dist/src/sdist.-67246/Setup.hs
Installing ./hashable.cabal to dist/src/sdist.-67246/./hashable.cabal
cabal: dist/src/sdist.-67246/hashable-1.1.2.2: does not exist

Change History

Changed 20 months ago by tibbe

I found the problem by accident; I had installed some "random" version of cabal-install from HEAD as I was testing out the new cabal bench feature.

Changed 20 months ago by bos

  • cc bos added

<metoo/>

Changed 20 months ago by duncan

  • status changed from new to closed
  • resolution set to wontfix

This bug only occurs when you build cabal-install-0.10 against Cabal-1.12, something which is explicitly prevented by the version constraints in the cabal-install-0.10 cabal file. That is, you only get this bug if you edit the .cabal file to relax the constraints. If you do that, you're welcome to keep both pieces. Alternatively, build Cabal & cabal-install head.

Changed 20 months ago by kowey

Just adding before I forget that folks seeing this may be following instructions for getting GHC on MacOS X 10.7  https://gist.github.com/1169332 which say to relax the dependencies. Somebody with a round tuit should probably add instructions to get cabal-install head

Changed 20 months ago by beastaugh

@kowey: I'm currently updating that (my) guide with instructions as to how to build Cabal 1.10. If people here think it's better to add instructions on how to build Cabal and cabal-install HEAD I'm happy to do that instead.

Note: See TracTickets for help on using tickets.