Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61967 - kde-functions.eclass (re-)exports QTDIR
Summary: kde-functions.eclass (re-)exports QTDIR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-27 12:49 UTC by Kurt Hindenburg
Modified: 2004-08-30 06:30 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 Kurt Hindenburg 2004-08-27 12:49:49 UTC
% cat /etc/env.d/45qt3
QTDIR=/home/kvh/CVS/KDE/CVS-kde/qt-copy
PATH=/home/kvh/CVS/KDE/CVS-kde/qt-copy/bin
ROOTPATH=/home/kvh/CVS/KDE/CVS-kde/qt-copy/bin
LDPATH=/home/kvh/CVS/KDE/CVS-kde/qt-copy/lib
QMAKESPEC=linux-g++
MANPATH=/home/kvh/CVS/KDE/CVS-kde/qt-copy/doc/man

I don't understand why kde-functions.eclass re-exports $QTDIR for ebuilds.  This causes ebuilds which require QT to not be able to find my qt-dir.
As a test I put a 'einfo $QTDIR' in an ebuild (superkaramba) and it printed /usr/qt/3.

Here is a small patch to fix this; it works in my case.  Note that I don't have qt installed via ebuilds.

--- kde-functions.eclass.orig   2004-08-27 14:38:17.000000000 -0500
+++ kde-functions.eclass        2004-08-27 14:39:54.000000000 -0500
@@ -243,7 +243,9 @@
        done
        IFS=$IFSBACKUP

-       export QTDIR="/usr/qt/$QTMAJORVER"
+       if [ ! $QTDIR ]; then
+               export QTDIR="/usr/qt/$QTMAJORVER"
+       fi

        # i'm putting this here so that the maximum amount of qt/kde apps gets it -- danarmak
        # if $QTDIR/etc/settings/qtrc file exists, the qt build tools try to create



Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
kde-functions.eclass re-exports $QTDIR for ebuilds

Expected Results:  
If $QTDIR is already set system-wide (/etc/env.d/*qt*), don't re-export $QTDIR.


Portage 2.0.50-r10 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.8.1)
=================================================================
System uname: 2.6.8.1 i686 AMD Duron(tm) processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /mnt/part6/KDEDIRS/HEAD/share/config /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache clean sandbox titles userpriv"
GENTOO_MIRRORS="/mnt/auto/cdr /mnt/auto/cdrw http://gentoo.seren.com/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirrors.tds.net/gentoo
ftp://mirrors.tds.net/gentoo http://www.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/part6/portage-tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm arts artswrappersuid avi berkdb cdr crypt cups doc
encodeflac foomaticdb gdbm gif gstreamer gtk2 imlib jack joystick jpeg kde lcms
libg++ libwww mad maildir mailwrapper mikmod mmx mono mpeg ncurses nls oggvorbis
oss pam pdflib perl png python qt quicktime readline ruby ruby18 sdl slang spell
ssessl svga tcpd truetype x86 xml2 xv zlib"
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-08-30 06:30:30 UTC
Commited your change to portage - thanks for the report.