[Hackage] #445: Simple builds ignore .buildinfo

#445: Simple builds ignore .buildinfo ----------------------------+----------------------------------------------- Reporter: awick | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.3 Platform: | ----------------------------+----------------------------------------------- It would be convenient if Simple builds would look for buildinfo files, instead of just ignoring them. It's sometimes convenient to have the configure script run as a separate phase (for example, when you're configuring a bunch of separate cabal packages) instead of re-running the same configure tests every time, and this would help. There's an obvious workaround (setting the type to 'Configure' and then adding an empty 'configure' script), but this is tedious. I've attached a simple example. The .buildinfo file tells Cabal to build Test2 in addition to Test1. If you set the type to Simple, it only builds Test1. If you set it to 'Configure', it runs the empty configure script and then builds both Test1 and Test2. It'd be nicer if 'Simple' caused both Test1 and Test2 to be built, as well. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/445 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#445: Simple builds ignore .buildinfo ----------------------------+----------------------------------------------- Reporter: awick | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: ----------------------------+----------------------------------------------- Comment (by duncan): Personally I'm inclined to leave it as is given how simple the workaround is. I don't think we want to generally encourange the use of .buildinfo files. I'm leaving the ticket open to give others a chance to comment. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/445#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#445: Simple builds ignore .buildinfo ----------------------------+----------------------------------------------- Reporter: awick | Owner: Type: enhancement | Status: new Priority: normal | Milestone: _|_ Component: Cabal library | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * type: defect => enhancement * milestone: => _|_ -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/445#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#445: Simple builds ignore .buildinfo ----------------------------+----------------------------------------------- Reporter: awick | Owner: Type: enhancement | Status: closed Priority: normal | Milestone: _|_ Component: Cabal library | Version: 1.6.0.1 Severity: normal | Resolution: wontfix Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * status: new => closed * resolution: => wontfix Comment: Note that a related feature that I do want to implement is to allow, for development purposes only, a local per-package config file #556. This would let you save any/all flags that you can pass to `cabal configure`. For things like ghc-options, cc-options, this might be enough for what you need. Note as an additional workaround, if you really want to read .buildinfo files then you can modify the Setup.hs to do so: {{{ main = defaultMainWithHooks autoconfUserHooks { postConf = \_ _ _ _ -> return () } }}} This means it will not try to run any `./configure` script but it will read the `.buildinfo` file. However I'm going to keep the Simple build type simple and not have it read externally generated `.buildinfo` files. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/445#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage