Open vmchale opened 7 years ago
@DanielG, IIRC, you added this variable. Can you take a look?
I can't reproduce this using master (934009b28377fb138c38d031fa91a5e34caa14e3). See -v2
logs here.
@vmchale can you post the full -v2 logs so I can compare with what I got?
One other thing --libexecsubdir
isn't an option that actually exists for autoconf generated configure scripts. It's an internal variable of Cabal like $libsubdir
. I couldn't find the code that runs that configure command so I don't know how that could possibly sneak through.
The title is misleading, as old-time
doesn't use a custom Setup.hs. Instead, old-time
is a build-type: configure
package.
Also happend for me when building ghc-paths
.
Linking /Users/alexbiehl/git/haddock/dist-newstyle/tmp/src-71567/ghc-paths-0.1.0.9/dist/setup/setup ...
unrecognized 'configure' option `--libexecsubdir='
cabal: Failed to build ghc-paths-0.1.0.9 (which is required by exe:haddock
from haddock-2.18.0). See the build log above for details.
In my case I was using ghc-8.2-rc1
which already ships a Cabal-2.0.0
lib but which didn't support --libexecsubdir
flag yet. Upgrading to to ghc-8.2-rc2
helped here as it ships with a more recent Cabal.
Ah, that makes sense. The code can't really know that the Cabal-2.0 that shipped with rc1 is different from the 2.0 from rc2. I guess you could call this a "bug" in the release process, I wonder why it's done like that, though my guess is because the PVP doesn't have a concept of a pre-release unlike semver.
@DanielG the reason was simply because we didn't pay too much attention. Version hacks that were used in the past (in this or other packages):
Cabal-2.0.0
, released one Cabal-2.0.0.0
Cabal-2.0.0.0
, first released one Cabal-2.0.0.1
bytestring
does at the minor version). (Or in the case of Cabal, stay w/ Cabal-1.25 for RC1)And then there's also https://ghc.haskell.org/trac/ghc/wiki/Commentary/Libraries/EagerVersionBump
There's not much you can do to encode pre-releases, if everything you can work with is a non-empty list of natural numbers... which is simply a technical limitation of Cabal.
Steps to reproduce:
I am using head. Excerpt of output with -v:
Excerpt from my ~/.cabal/config: