-
Notifications
You must be signed in to change notification settings - Fork 710
setup sdist places implementation-dependent preprocessor output in the source bundle #130
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
Comments
(Imported comment by ross on 2007-06-02) see also #92: issues with 'clean'. |
(Imported comment by @igfoo on 2007-06-07) It also includes files generated by "Setup configure", e.g. HsGLUT.h in the GLUT package. |
(Imported comment by @dcoutts on 2008-06-19) Replying to @igfoo: It also includes files generated by "Setup configure", e.g. HsGLUT.h in the GLUT package. Which is because Cabal has no idea that HsGLUT.h is the result of HsGLUT.h.in. |
(Imported comment by ross on 2008-06-19) Replying to @dcoutts: Replying to @igfoo:Maybe #152 wasn't a bug.It also includes files generated by "Setup configure", e.g. HsGLUT.h in the GLUT package. |
(Imported comment by @dcoutts on 2008-06-19) Or maybe we should assume that foo is generated (by an unknown pre-processor) by foo.in (if foo.in exists) and so it is foo.in that should go in the sdist and not foo. Though that also violates our rule about putting generated files in dist/ and not back in the source tree. |
(Imported comment by @igfoo on 2008-06-19) Incidentally, include/HsGLUT.h is in extra-tmp-files; should Cabal look at that when deciding what to put in the sdist? |
(Imported comment by @dankna on 2008-06-20) Attached, please find three patches for Cabal and one for There are three main pieces to the patch, as the commit messages will With the redirection of the output, I found that by doing it at the With the inclusion in sdist, I added a new parameter to prepareTree, With the subdirectory-naming, I added a new user hook that implements I also made a trivial change to Happy's Setup.lhs, to test the As always, see the source for more details. I tried to follow your |
(Imported comment by @dankna on 2010-04-21) Patch for Cabal in "darcs send" format. |
(Imported comment by @dankna on 2010-04-21) Patch for Cabal-Install in "darcs send" format. |
(Imported comment by @dankna on 2010-04-21) For testing purposes, modified Setup.lhs for Happy 1.18.4. |
(Imported comment by @nomeata on 2010-04-21) Is there still something happening on this front? It seems that, for example, uuagc could greatly benefit if Setup sdist would include all the generated .hs files in the tarball required to bootstrap the program; the current scheme (a separate uuagc-bootstrap package) feels like unnecessary overkill to me. |
I noticed that this has been changed: https://hackage.haskell.org/package/haskell-src-exts-1.16.0/haskell-src-exts-1.16.0.tar.gz doesn't contain |
@feuerbach You probably didn't have |
@feuerbach I looked at the code a bit more and it looks like the following happens:
|
That's so weird. Essentially, the output of |
@23Skidoo but thanks for shedding some light on this :) |
IIRC when we discussed this with @dcoutts the plan to fix this was to associate metadata with files produced by non-portable preprocessors. Current scheme does feel like a hack. |
Oh, huh. I'm glad this is still under active discussion, I was never really satisfied with my now-bitrotten patches either. Good luck. :) |
For completeness, nice article by @feuerbach that explains why current behaviour is problematic: http://ro-che.info/articles/2014-03-08-happy-alex-ghc-7.8 |
cabal install haskell-src-exts-1.10.1
indeterministically fails to regenerate the happy parser
#2311
I milestoned this | because, although this is a clear bug, people mostly seem to deal. |
#5389 ended this going forward. |
(Imported from Trac #137, reported by ross on 2007-06-02)
e.g. happy -agc output in the haskell-src package.
Suggested new scheme: http://www.haskell.org/pipermail/cabal-devel/2007-May/000529.html.
The text was updated successfully, but these errors were encountered: