diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2018-04-23 22:24:25 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-12-07 09:12:09 +0000 |
commit | 4174ac2072f093b7d41bbfce711a1f373be1b63a (patch) | |
tree | c6be0d3b49296a00fd57eba64cbc4e4a85d9235f /eclass | |
parent | haskell-cabal.eclass: pass _EXTRA variables after "$@". (diff) | |
download | gentoo-4174ac2072f093b7d41bbfce711a1f373be1b63a.tar.gz gentoo-4174ac2072f093b7d41bbfce711a1f373be1b63a.tar.bz2 gentoo-4174ac2072f093b7d41bbfce711a1f373be1b63a.zip |
haskell-cabal.eclass: add a variable to disable verbose build failures
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/haskell-cabal.eclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass index 690bbf55b1c9..30b67bf7af94 100644 --- a/eclass/haskell-cabal.eclass +++ b/eclass/haskell-cabal.eclass @@ -66,6 +66,14 @@ inherit eutils ghc-package multilib toolchain-funcs # Needs working 'diff'. : ${CABAL_DEBUG_LOOSENING:=} +# @ECLASS-VARIABLE: CABAL_REPORT_OTHER_BROKEN_PACKAGES +# @DESCRIPTION: +# Show other broken packages if 'cabal configure' fails. +# It should be normally enabled unless you know you are about +# to try to compile a lot of broken packages. Default value: 'yes' +# Set to anything else to disable. +: ${CABAL_REPORT_OTHER_BROKEN_PACKAGES:=yes} + HASKELL_CABAL_EXPF="pkg_setup src_compile src_test src_install pkg_postinst pkg_postrm" # 'dev-haskell/cabal' passes those options with ./configure-based @@ -271,6 +279,8 @@ cabal-die-if-nonempty() { } cabal-show-brokens() { + [[ ${CABAL_REPORT_OTHER_BROKEN_PACKAGES} != yes ]] && return 0 + elog "ghc-pkg check: 'checking for other broken packages:'" # pretty-printer $(ghc-getghcpkg) check 2>&1 \ @@ -283,6 +293,8 @@ cabal-show-brokens() { } cabal-show-old() { + [[ ${CABAL_REPORT_OTHER_BROKEN_PACKAGES} != yes ]] && return 0 + cabal-die-if-nonempty 'outdated' \ $("${EPREFIX}"/usr/sbin/haskell-updater --quiet --upgrade --list-only) } |