Commit f16c79fa authored by OPNA2608's avatar OPNA2608
Browse files

haskellPackages.inspection-testing: Mark broken on platforms where GHC lacks...

haskellPackages.inspection-testing: Mark broken on platforms where GHC lacks DWARF <-> register mappings

Unsure:

- if, and how reliably, this works on
  - RISC-V (https://gitlab.haskell.org/ghc/ghc/-/commit/1c479c01d909c5a234cc17b0b308a400c2e0a6f6)
  - LoongArch64 (https://gitlab.haskell.org/ghc/ghc/-/commit/652cba7ee71d2ebd0af912fcc218bc0f27237738)
- what the situation on unregisterised builds is like
parent 85d8db97
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -694,6 +694,12 @@ with haskellLib;
    hash = "sha256-feGEuALVJ0Zl8zJPIfgEFry9eH/MxA0Aw7zlDq0PC/s=";
  }) super.algebraic-graphs;

  # Relies on DWARF <-> register mappings in GHC, not available for every arch & ABI
  # (check dwarfReturnRegNo in compiler/GHC/CmmToAsm/Dwarf/Constants.hs, that's where ppc64 elfv1 gives up)
  inspection-testing = overrideCabal (drv: {
    broken = with pkgs.stdenv.hostPlatform; !(isx86 || (isPower64 && isAbiElfv2) || isAarch64);
  }) super.inspection-testing;

  # Too strict bounds on filepath, hpsec, tasty, tasty-quickcheck, transformers
  # https://github.com/illia-shkroba/pfile/issues/3
  pfile = doJailbreak super.pfile;