summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Tennis <caleb@gentoo.org>2004-01-23 13:54:40 +0000
committerCaleb Tennis <caleb@gentoo.org>2004-01-23 13:54:40 +0000
commitfd19ed84b665d314547eb4c8241e9156fcad1f2a (patch)
tree45a4081feb5b9d57c99f823d3e1460cbcd3e0561 /eclass/kde.eclass
parentstable on sparc (diff)
downloadhistorical-fd19ed84b665d314547eb4c8241e9156fcad1f2a.tar.gz
historical-fd19ed84b665d314547eb4c8241e9156fcad1f2a.tar.bz2
historical-fd19ed84b665d314547eb4c8241e9156fcad1f2a.zip
add an error if the configure script dies and warn about nvidia drivers
Diffstat (limited to 'eclass/kde.eclass')
-rw-r--r--eclass/kde.eclass22
1 files changed, 19 insertions, 3 deletions
diff --git a/eclass/kde.eclass b/eclass/kde.eclass
index 5b45a6924af9..604ba2ff5f5b 100644
--- a/eclass/kde.eclass
+++ b/eclass/kde.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.87 2004/01/21 23:28:22 gmsoft Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.88 2004/01/23 13:54:40 caleb Exp $
#
# Author Dan Armak <danarmak@gentoo.org>
#
@@ -10,7 +10,6 @@
inherit base kde-functions
ECLASS=kde
INHERITED="$INHERITED $ECLASS"
-
DESCRIPTION="Based on the $ECLASS eclass"
HOMEPAGE="http://www.kde.org/"
@@ -114,7 +113,7 @@ kde_src_compile() {
export KDEDIRS="${PREFIX}:${KDEDIR}"
cd $S
- ./configure ${myconf} || die "died running ./configure, $FUNCNAME:configure"
+ ./configure ${myconf} || configure_die "died running ./configure, $FUNCNAME:configure"
# Seems ./configure add -O2 by default but hppa don't want that but we need -ffunction-sections
if [ "${ARCH}" = "hppa" ]
then
@@ -138,6 +137,23 @@ kde_src_compile() {
}
+# This function is to give the user a message when configure dies. The reason is that the
+# nvidia drivers cause opengl linkage issues with Qt, so if someone hasn't set them up properly
+# Qt is badly linked and they think it's a KDE related bug.
+configure_die()
+{
+ echo $@
+ eerror
+ eerror "Your KDE program installation died while running the configure script"
+ eerror
+ eerror "If the error died during the check for Qt, and you have Qt installed, the problem"
+ eerror "is most likely due to your nvidia drivers being configured improperly."
+ eerror
+ eerror "Search forums.gentoo.org for help in setting them up properly. This is NOT a kde bug."
+ eerror
+ die
+}
+
kde_src_install() {
debug-print-function $FUNCNAME $*