Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190043 - dev-lang/ghc : ghc-updater script needs baselayout update
Summary: dev-lang/ghc : ghc-updater script needs baselayout update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
: 202917 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-24 13:55 UTC by Jeroen Roovers (RETIRED)
Modified: 2007-12-23 13:18 UTC (History)
2 users (show)

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 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.