Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33962 - move the ghc checks to pkg_setup() / make it silent
Summary: move the ghc checks to pkg_setup() / make it silent
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Andres Loeh (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-20 14:07 UTC by Marius Mauch (RETIRED)
Modified: 2004-01-11 13:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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