Ticket #166 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

sdist puts Happy-generated .hs files in the wrong place

Reported by: guest Owned by:
Priority: high Milestone: Cabal-1.4
Component: Cabal library Version: 1.2.0
Severity: normal Keywords:
Cc: simonmarhaskell@… Difficulty: normal
GHC Version: 6.6 Platform: Linux

Description

I want to use sdist to generate source distributions of Happy that don't depend on Happy, and hence come with the Happy-generated .hs files for the parsers. When I try this, the source files are included, but in the root of the tree, whereas Cabal seems to look for them in dist/build. I can move them by hand and re-generate the tarball, and that works.

I'm fairly sure this worked with older versions of Cabal.

Change History

Changed 5 years ago by duncan

  • priority changed from normal to high
  • milestone set to Cabal-1.4

Changed 5 years ago by duncan

  • status changed from new to closed
  • resolution set to fixed
Sun Mar 23 14:54:52 GMT 2008  Andrea Vezzosi <sanzhiyan@gmail.com>
  * FIX #166 by setting the right buildDir when preprocessing in sdist

This fixes the immediate problem. The rest of the problem is that tarballs that have pre-generated files in dist/ will get cleaned. They should really go in another dir that is checked but not cleaned. I'll open a separate bug on that issue.

Note: See TracTickets for help on using tickets.