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

Bug 33962

Summary: move the ghc checks to pkg_setup() / make it silent
Product: Gentoo Linux Reporter: Marius Mauch (RETIRED) <genone>
Component: [OLD] UnspecifiedAssignee: Andres Loeh (RETIRED) <kosmikus>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marius Mauch (RETIRED) gentoo-dev 2003-11-20 14:07:42 UTC
while testing a new esearch version I noticed that the ghc ebuilds print several error messages when they are parsed if you don't have ghc installed.
This should NOT happen, `bash bla.ebuild` should NEVER print anything (except for missing function errors provided by ebuild.sh), normally repoman should capture this but if it's conditional on the system state that's a hard task.
So please move all code in the ghc ebuilds that can possibly print anything to a function or redirect it to /dev/null.

Here's a sample of `bash ghc-5.04.ebuild`:

/usr/portage/dev-lang/ghc/ghc-5.04.ebuild: line 31: inherit: command not found
which: no ghc in (/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/bin:/usr/games/bin:/opt/vmware/bin)
It seems you do not have any version of GHC available yet.
I will bootstrap from HC files.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-01-09 10:20:53 UTC
Do I really have Spider to lend me his flamethrower to get this fixed ?
Comment 2 Andres Loeh (RETIRED) gentoo-dev 2004-01-11 13:31:48 UTC
oops, and I just yesterday misplaced my ring of fire resistance ...
No, you don't need to get the flamethrower -- I am sorry for the
long delay, it's good that you reminded me. I have removed
ghc-5.04.3 and updated ghc-5.04.3-r1 ... it should be silent now.

ks