Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 285413

Summary: dev-haskell/regex-posix only installs on the second try
Product: Gentoo Linux Reporter: Arne Babenhauserheide <arne_bab>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Arne Babenhauserheide 2009-09-18 05:41:26 UTC
For some reason I had to start the darcs emerge 2 times to get regex posix: 

>>> Installing (8 of 10) dev-haskell/regex-posix-0.72.0.2
>>> Failed to install dev-haskell/regex-posix-0.72.0.2, Log file:
>>>  '/var/tmp/portage/dev-haskell/regex-posix-0.72.0.2/temp/build.log'
*** Resuming merge...                                                  
 * emerge --keep-going: dev-util/darcs-2.0.2 dropped due to unsatisfied
 * dependency.                                                         
 * emerge --keep-going: dev-haskell/regex-compat-0.71.0.1 dropped due to
 * unsatisfied dependency.                                              

 * Messages for package dev-lang/ghc-6.8.2-r1:

 * IMPORTANT:
 * If you have upgraded from another version of ghc, please run:
 *       /usr/sbin/ghc-updater                                  
 * to re-merge all ghc-based Haskell libraries.                 
 * To enable command-line completion for ghc, run:              
 *                                                              
 *   eselect bashcomp enable ghc                                
 *                                                              
 * to install locally, or                                       
 *                                                              
 *   eselect bashcomp enable --global ghc                       
 *                                                              
 * to install system-wide.                                      

 * Messages for package dev-haskell/regex-posix-0.72.0.2:

 * 
 * ERROR: dev-haskell/regex-posix-0.72.0.2 failed.
 * Call stack:                                    
 *               ebuild.sh, line 1748:  Called die
 * The specific snippet of code:                  
 *      preprocess_ebuild_env || \                
 *              die "error processing environment"
 *  The die message:                              
 *   error processing environment                 
 *                                                
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-haskell/regex-posix-0.72.0.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/regex-posix-0.72.0.2/temp/environment'.
 *                                                                                                                

 * Messages for package dev-util/darcs-2.0.2:

 * emerge --keep-going: dev-util/darcs-2.0.2 dropped due to unsatisfied
 * dependency.                                                         

 * Messages for package dev-haskell/regex-compat-0.71.0.1:

 * emerge --keep-going: dev-haskell/regex-compat-0.71.0.1 dropped due to
 * unsatisfied dependency.                                              
 *                                                                      
 * The following 3 packages have failed to build or install:            
 *                                                                      
 *      ('ebuild', '/', 'dev-haskell/regex-posix-0.72.0.2', 'merge')    
 *      ('ebuild', '/', 'dev-util/darcs-2.0.2', 'merge')                
 *      ('ebuild', '/', 'dev-haskell/regex-compat-0.71.0.1', 'merge')   


--------------------------------------

>>> Verifying ebuild manifests
>>> Starting parallel fetch
>>> Emerging (1 of 3) dev-haskell/regex-posix-0.72.0.2
>>> Installing (1 of 3) dev-haskell/regex-posix-0.72.0.2
>>> Emerging (2 of 3) dev-haskell/regex-compat-0.71.0.1
>>> Installing (2 of 3) dev-haskell/regex-compat-0.71.0.1
>>> Emerging (3 of 3) dev-util/darcs-2.0.2


--------------------------------------

The only difference between the two runs was that in the second I emerged with LC_ALL=C to get english error messages. 

Reproducible: Always
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2010-07-12 17:06:01 UTC
> * IMPORTANT:
> * If you have upgraded from another version of ghc, please run:
> *       /usr/sbin/ghc-updater                                  
> * to re-merge all ghc-based Haskell libraries.
> * To enable command-line completion for ghc, run:
> *
> *   eselect bashcomp enable ghc

I suspect your emerge process (not so) silently upgraded ghc and broke all installed .cabal packages.

Closing at INVALID.

Please reopen the bug if I'm mistaken.

Immediately after ghc upgrade user has to run ghc-updater/haskell-updater by hands to get nonbroken haskell system.

Currently there is no way to stop portage from emerging stuff and give user a change to start ghc-updater/haskell-updater. At least I don't know such thing.