emerge -uDN world * IMPORTANT: 1 news items need reading for repository 'gentoo'. * Use eselect news to read news items. Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-vcs/darcs-2.4.4-r1 * darcs-2.4.4.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking darcs-2.4.4.tar.gz to /var/tmp/portage/dev-vcs/darcs-2.4.4-r1/work >>> Source unpacked in /var/tmp/portage/dev-vcs/darcs-2.4.4-r1/work >>> Preparing source in /var/tmp/portage/dev-vcs/darcs-2.4.4-r1/work/darcs-2.4.4 ... /var/tmp/portage/dev-vcs/darcs-2.4.4-r1/work/darcs-2.4.4/contrib /var/tmp/portage/dev-vcs/darcs-2.4.4-r1/work/darcs-2.4.4 * Applying darcs-1.0.9-bashcomp.patch ... [ ok ] /var/tmp/portage/dev-vcs/darcs-2.4.4-r1/work/darcs-2.4.4 * Applying darcs-2.4.4-issue1770-curl_multi_perform-no-running-handles.patch ... [ ok ] * Applying darcs-2.4.4-tests-emailformat.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-vcs/darcs-2.4.4-r1/work/darcs-2.4.4 ... * darcs-2.4.4 will be built with threads support * Using cabal-1.8.0.6. [1 of 2] Compiling Distribution.ShellHarness ( Distribution/ShellHarness.hs, Distribution/ShellHarness.o ) Distribution/ShellHarness.hs:21:0: Warning: Module `Control.OldException' is deprecated: Future versions of base will not support the old exceptions style. Please switch to extensible exceptions. Distribution/ShellHarness.hs:21:0: Warning: In the use of `catch' (imported from Control.OldException): Deprecated: "Future versions of base will not support the old exceptions style. Please switch to extensible exceptions." [2 of 2] Compiling Main ( /var/tmp/portage/dev-vcs/darcs-2.4.4-r1/work/darcs-2.4.4/Setup.lhs, /var/tmp/portage/dev-vcs/darcs-2.4.4-r1/work/darcs-2.4.4/Setup.o ) /var/tmp/portage/dev-vcs/darcs-2.4.4-r1/work/darcs-2.4.4/Setup.lhs:58:0: Warning: Module `Control.OldException' is deprecated: Future versions of base will not support the old exceptions style. Please switch to extensible exceptions. /var/tmp/portage/dev-vcs/darcs-2.4.4-r1/work/darcs-2.4.4/Setup.lhs:58:0: Warning: In the use of `Exception.catch' (imported from Control.OldException): Deprecated: "Future versions of base will not support the old exceptions style. Please switch to extensible exceptions." Linking setup ... Configuring darcs-2.4.4... Flags chosen: deps-only=False, hpc=False, test=False, mmap=True, color=True, type-witnesses=False, threaded=True, terminfo=True, static=False, http=False, curl-pipelining=True, curl=True Dependency array >=0.1 && <0.4: using array-0.3.0.1 Dependency base ==3.*: using base-3.0.3.2 Dependency bytestring >=0.9.0 && <0.10: using bytestring-0.9.1.7 Dependency containers >=0.1 && <0.4: using containers-0.3.0.0 Dependency directory ==1.0.*: using directory-1.0.1.1 Dependency filepath ==1.1.*: using filepath-1.1.0.4 Dependency hashed-storage ==0.4.*: using hashed-storage-0.4.13 Dependency haskeline >=0.6.1 && <0.7: using haskeline-0.6.2.2 Dependency html ==1.0.*: using html-1.0.1.2 Dependency mmap >=0.2 && <0.5: using mmap-0.4.1 Dependency mtl >=1.0 && <1.2: using mtl-1.1.1.1 Dependency old-time ==1.0.*: using old-time-1.0.0.5 Dependency parsec >=2.0: using parsec-2.1.0.1 Dependency process ==1.0.*: using process-1.0.1.3 Dependency random ==1.0.*: using random-1.0.0.2 Dependency regex-compat >=0.71 && <0.94: using regex-compat-0.92 Dependency terminfo ==0.3.*: using terminfo-0.3.1.1 Dependency unix >=1.0 && <2.5: using unix-2.4.0.2 Dependency utf8-string ==0.3.*: using utf8-string-0.3.6 Dependency zlib >=0.5.1.0 && <0.6.0.0: using zlib-0.5.2.0 setup: The following installed packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used. package hashed-storage-0.4.13 is broken due to missing package mtl-1.1.0.2-336254fecf8a77054f76cb33671a5177 package haskeline-0.6.2.2 is broken due to missing package mtl-1.1.0.2-336254fecf8a77054f76cb33671a5177 package regex-base-0.93.1 is broken due to missing package mtl-1.1.0.2-336254fecf8a77054f76cb33671a5177 * ERROR: dev-vcs/darcs-2.4.4-r1 failed (configure phase): * setup configure failed * * Call stack: * ebuild.sh, line 56: Called src_configure * environment, line 3124: Called cabal_src_configure '--flags=curl' '--flags=-http' '--flags=curl-pipelining' '--flags=color' '--flags=terminfo' '--flags=mmap' '--flags=threaded' '--flags=-test' * environment, line 813: Called haskell-cabal_src_configure '--flags=curl' '--flags=-http' '--flags=curl-pipelining' '--flags=color' '--flags=terminfo' '--flags=mmap' '--flags=threaded' '--flags=-test' * environment, line 2446: Called cabal-configure '--flags=curl' '--flags=-http' '--flags=curl-pipelining' '--flags=color' '--flags=terminfo' '--flags=mmap' '--flags=threaded' '--flags=-test' * environment, line 692: Called die * The specific snippet of code: * ./setup configure --ghc --prefix="${EPREFIX}"/usr --with-compiler="$(ghc-getghc)" --with-hc-pkg="$(ghc-getghcpkg)" --prefix="${EPREFIX}"/usr --libdir="${EPREFIX}"/usr/$(get_libdir) --libsubdir=${P}/ghc-$(ghc-version) --datadir="${EPREFIX}"/usr/share/ --datasubdir=${P}/ghc-$(ghc-version) ${cabalconf} ${CABAL_CONFIGURE_FLAGS} ${CABAL_EXTRA_CONFIGURE_FLAGS} "$@" || die "setup configure failed" * * If you need support, post the output of 'emerge --info =dev-vcs/darcs-2.4.4-r1', * the complete build log and the output of 'emerge -pqv =dev-vcs/darcs-2.4.4-r1'. * The complete build log is located at '/var/tmp/portage/dev-vcs/darcs-2.4.4-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-vcs/darcs-2.4.4-r1/temp/environment'. * S: '/var/tmp/portage/dev-vcs/darcs-2.4.4-r1/work/darcs-2.4.4' >>> Failed to emerge dev-vcs/darcs-2.4.4-r1, Log file: >>> '/var/tmp/portage/dev-vcs/darcs-2.4.4-r1/temp/build.log' Maybe a simple ebuild patch should suffice. Haven't tried it though.
does running haskell-updater help?
I didn't think to isolate the problem, but emerge -av $(eix --only-names -C dev-haskell) darcs made the errors go away.
Problem always arises when you update one of intermediate libraries used by others. In this case mtl was updated recently (bug #391591) and broke hashed-storage. haskell-updater is a haskellish twin of revdep-rebuild for C library.
Finally made it. Here's how: initial state mtl-1.1.0.2 installed. darcs compiled because of flag update. steps: mtl update to 1.1.1.1 execute haskell-updater program. => along with other packages darcs is successfully rebuilt. Done. Thanks to all of you. N.B. Initially I've tried revdep-rebuild without any parameter which didn't help. I guess Gordon Pettey's way of revdep-rebuild would have made it.