Repository navigation
Drop include/HsNetworkConfig.h from the dist #307
Description
Activity
@angerman I agree.
@eborden 2.6.3.3 includes
include/HsNetworkConfig.h.
Butcabal sdistcreates.tar.gzwithout it.
How did you pack the package?btw, you can take a look at how
unixdoes it, to make sure autoconf generated files aren't included in the sdist; take a look at the .cabal file and the.buildinfousage.I should probably make sure to have a section in the cabal user's guide to document the pattern for that.
@kazu-yamamoto Odd, I used
cabal sdist.The problem is that
include/HsNetworkConfig.his mentioned ininstall-includes, which is seen bycabal sdist(and we don't yet have the equivalent ofautogen-modulesforinstall-includes). The trick thatunixuses is to hide theinstall-includesfromsdistfor autogenerated files in the.buidinfofile.PS: The problem I described was already fixed last year via 284ed49
I'm busy now. I will come back to this issue on 15th Feb.
I cannot reproduce this. Both
cabal-install-1.24andcabal-install-2.0do not includeinclude/HsNetworkConfig.heven aftercabal configure. So, I cannot see if the.hack solve this issue.Well, I'm happy either way; as long as no file that's supposed to be generated is in the package hackage hands me :-)
@angerman I need to understand why this happens and fix it so that it does not happen anymore.
@kazu-yamamoto in which branch of
networkdid you try this? themasterbranch seems to be fine already; and so does the network-2.7 branch....PS: I see... this is due to 284ed49 which is already part of all recent branches, and which I cooked up to address @angerman very problem last year... :-)
@kazu-yamamoto @angerman, I finally understand what happened here:
@angerman reported the issue against
network-2.6.3.3which predates 284ed49 and thus exhibits the packaging issueHowever, this is already fixed in Git, and I've found the commit in the branches for network-2.6, network-2.7, and network-3.0 (aka
master). So there's nothing to be done for the upcoming release as far as #307 is concerned IMO.I was testing this on
2.6.However, this is already fixed in Git, and I've found the commit in the branches for network-2.6, network-2.7, and network-3.0 (aka
master). So there's nothing to be done for the upcoming release as far as #307 is concerned IMO.Ah, I understand. Thanks. Let's close.
I believe that
include/HsNetworkConfig.hshould not be part of the distribution. As it is generated by theconfigurescript. However running the configure script in a different folder to keep the source tree clean, will result in twoHsNetworkConfig.hfiles, and at this point the order and interpretation of-Iparameters becomes important, which is rather unfortunate.