Skip to content

Silence GHC 8.4's "ignoring (possibly broken) abi-depends field for packages" warning #5465

Closed
@hvr

Description

@hvr

GHC 8.4 started emitting the following noisy warning whenever a package registration (IPI) includes a abi-depends: field (see https://ghc.haskell.org/trac/ghc/ticket/14381 for more details) cluttering the output:

Building cabal-doctest-1.0.6 (lib)...
ignoring (possibly broken) abi-depends field for packages
Configuring reflection-2.1.3 (lib)...
ignoring (possibly broken) abi-depends field for packages
Configuring semigroups-0.18.4 (lib)...
Building reflection-2.1.3 (lib)...
ignoring (possibly broken) abi-depends field for packages

This affects GHC 8.4.3 (but it probably won't affect GHC 8.4.4); since abi-depends is ignored loudly we ought to simply omit populating this field for GHCs which noisy warn about it being ignored anyway.

More generally, as it's effectively redundant (it would mostly provide an additional check in case cabal screws up the nix-style hash computation) and some distributions started to patch GHC 8.2.2; so we might as well never populate abi-depends.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions