darcs patch: don't automatically include install-incl... (and 2 more)
Hi, I've discussed my previous patch ("add extra-includes field to buildinfo") with Duncan and we came to the conclusion that adding a new field is not necessary. Instead, the semantics of the install-include: field can be changed so that the files listed there are only installed but not automatically included in compilations via C. The inclusion can still be achieved by listing the file in the includes: field as well. (This is an incompatible change but it should not affect too many packages, I hope.) See the patch descriptions below for details. The patches are tested with ghc HEAD with an updated cabal file for the base file. Thinking about these patches uncovered a different problem: it is hard to include files that come with the package itself in the packages' compilation. The base package (my working example) uses the trick of listing "../../includes" in the include-dirs field. This works, but it's not very pretty. I have no good solution for that problem at the moment though. Bertram Fri Apr 20 14:34:18 CEST 2007 Bertram Felgenhauer <int-e@gmx.de> * don't automatically include install-include: headers into compilations via C This way it's possible to install header files that are meant for preprocessing Haskell code, or header files that are meant to be indirectly included by others. Fri Apr 20 14:35:27 CEST 2007 Bertram Felgenhauer <int-e@gmx.de> * install headers for all compilers This patch moves the installation of header files from Distribution.Simple.GHC to Distribution.Simple.Install. This is required for the header files to be usable for preprocessing Haskell code in other packages. Fri Apr 20 15:15:24 CEST 2007 Bertram Felgenhauer <int-e@gmx.de> * update documentation for install-headers: field
On Fri, 2007-04-20 at 15:28 +0200, Bertram Felgenhauer wrote:
Hi,
I've discussed my previous patch ("add extra-includes field to buildinfo") with Duncan and we came to the conclusion that adding a new field is not necessary.
Cheers Bertram, I'll give people a day or two to raise issues about this, otherwise I'm inclined to apply it. Duncan
participants (2)
-
Bertram Felgenhauer -
Duncan Coutts