Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alex-3.1.5 doesn't declare its dependency on happy #75

Closed
peti opened this issue Nov 27, 2015 · 5 comments
Closed

alex-3.1.5 doesn't declare its dependency on happy #75

peti opened this issue Nov 27, 2015 · 5 comments

Comments

@peti
Copy link
Contributor

peti commented Nov 27, 2015

Citing from http://hydra.cryp.to/build/1389306/nixlog/1/raw:

Building alex-3.1.5...
Preprocessing executable 'alex' for alex-3.1.5...
Setup: The program 'happy' is required but it could not be found

Apparently a build-tools: happy attribute is missing from the Cabal file.

@peti
Copy link
Contributor Author

peti commented Nov 27, 2015

And while I am at it ... perl seems to be missing, too.

@simonmar
Copy link
Member

Sigh, alex is not supposed to depend on Happy because it comes with the Happy-generated files. But this functionality in Cabal seems to break all the time. Let me check and see what happened.

@simonmar
Copy link
Member

Uploaded 3.1.6 without the problem, and filed an issue with cabal: haskell/cabal#2940

@hvr
Copy link
Member

hvr commented Dec 24, 2015

Cabal should have never attempted to regenerate the parsers if build-tools: happy is not specified

@simonmar
Copy link
Member

simonmar commented Jan 5, 2016

Do you mean "should" as in "it doesn't behave like that right now, but someone should fix it", or "I believe it behaves like that now, so if it doesn't it's a bug"?

If Cabal never runs Happy unless build-tools: happy is present, then I would need to have a -f devel flag to alex to enable the build-tools: happy line when modifying the parser or building the source distribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants