-
Notifications
You must be signed in to change notification settings - Fork 701
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
Files listed in extra-tmp-files
should not be copied into source dist tarball
#1557
Comments
|
I'm not quite sure what is the right way to fix this. Clearly, Cabal can't detect if a file listed in |
I've written a patch, but it solves the problem only for |
The solution is to configure first, then sdist. |
Oh, mm, ok in this case you want to generate it on the target. |
Well, if |
Ok, so a sensible solution for ./configure style packages that generate extra .h files to install is to put them into the .buildinfo file, in the install-includes field. I think that's better than ad-hoc making |
Fyi, I've applied the described trick to |
A typical example is
configure
-type build systems:In this case,
cabal sdist
will require the redundant fileinclude/HsTimeConfig.h
to exist even though it's a redundant auto-generated artifact by the./configure
script.Thus,
cabal clean
followed bycabal sdist
will fail, as theHsTimeConfig.h
will have been removed by then.The text was updated successfully, but these errors were encountered: