Ignore:
Timestamp:
Jan 18, 2015, 8:56:11 PM (4 years ago)
Author:
cal@…
Message:

haskell portgroup: run ghc-pkg list and ghc-pkg check before configure

This should make the logfiles for failed build attempts more helpful and give
me a clue as to why some builds fail on the buildbot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/haskell-1.0.tcl

    r114507 r131799  
    4848array set haskell.compiler_configuration {
    4949    ghc {port       ghc
    50          compiler   ${prefix}/bin/ghc}
     50         compiler   ${prefix}/bin/ghc
     51         ghc-pkg    ${prefix}/bin/ghc-pkg}
    5152}
    5253
     
    9899        }
    99100
     101    pre-configure [subst {
     102        ui_debug "Listing installed haskell packages"
     103        catch {system "[subst ${compiler_config(ghc-pkg)}] list"}
     104        ui_debug "Running ghc-pkg check"
     105        catch {system "[subst ${compiler_config(ghc-pkg)}] check; exit 1"}
     106   }]
     107
    100108    livecheck.type      regex
    101109    livecheck.url       http://hackage.haskell.org/package/${package}
Note: See TracChangeset for help on using the changeset viewer.