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

Bug 190043

Summary: dev-lang/ghc : ghc-updater script needs baselayout update
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED FIXED    
Severity: major CC: jakub, kanelxake
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jeroen Roovers (RETIRED) gentoo-dev 2007-08-24 13:55:20 UTC
--- gentoo-x86/dev-lang/ghc/files/ghc-updater.  2007-07-26 20:00:54.000000000 +0200
+++ gentoo-x86/dev-lang/ghc/files/ghc-updater   2007-08-24 15:51:19.000000000 +0200
@@ -80,7 +80,11 @@
 # load the gentoo-style info macros, but hack to get around
 # it thinking this is an rc script
 EBUILD="1"
-source /sbin/functions.sh
+if [[ -e /lib/rcscripts/sh/functions.sh ]]; then
+       source /lib/rcscripts/sh/functions.sh
+else
+       source /sbin/functions.sh
+fi

 # misc helper functions
 eloginfo() {
Comment 1 Lennart Kolmodin (RETIRED) gentoo-dev 2007-08-26 18:18:00 UTC
Fixed, thanks.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-12-21 08:22:56 UTC
*** Bug 202917 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-12-21 08:24:51 UTC
This fix is wrong, it should simply source /etc/init.d/functions.sh which *always* exists and points to a correct location, baselayout-2* or not.
Comment 4 Lennart Kolmodin (RETIRED) gentoo-dev 2007-12-23 13:18:26 UTC
Oh, even better.
Committed, thanks Jakub.