Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7097 - Path to Qt is hardcoded in the qcad ebuild file
Summary: Path to Qt is hardcoded in the qcad ebuild file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Dan Armak (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-27 02:46 UTC by Juergen Nagel
Modified: 2003-04-24 13:13 UTC (History)
1 user (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 Juergen Nagel 2002-08-27 02:46:41 UTC
I have installed Qt in a non-standard location. When I tried to emerge qcad, the
compilation aborted.
After I had removed the line "export QTDIR=/usr/qt/3" in the ebuild file, the
program did compile.
Comment 1 Hannes Mehnert (RETIRED) gentoo-dev 2002-08-28 17:31:28 UTC
danarmak: if you remove the export QTDIR=... in the ebuilds it should work 
(works here).  
Comment 2 Dan Armak (RETIRED) gentoo-dev 2002-08-30 06:10:27 UTC
Yes, well, the export lines are there because there's only one QTDIR variable 
but many qt versions. I can remove the QTDIr=/usr/qt/3 lines from ebuilds 
today, but not the QTDIR=/usr/qt/2 lines from ebuilds using QT2. And when QT-4 
is released in a year or two, what will we do? qt-3 ebuild will then need this 
setting again. 
 
There is, of course, the set-qtdir() (and need-qt()) function in 
kde-functions.eclass. This is exactly the reason it exists. Should we make all 
qt ebuilds use them? I'l think about that because I have some objections... 
 
Meanwhile do you have any objections to making a symlink form /usr/qt/3 to 
whereever your custom qt is? That way all ebuilds will work no matter what 
while I decide what we should do. 
Comment 3 Dan Armak (RETIRED) gentoo-dev 2002-11-22 15:14:52 UTC
I'm no longer sure what my objections were, so I'm making the ebuild use set-qtdir() 
from kde-functions.eclass. I've also added an ebuild for 1.5.4. 
Comment 4 Paul de Vrieze (RETIRED) gentoo-dev 2003-04-24 13:13:39 UTC
A quick grep on QTDIR shows that there are still some ebuilds not using this function. Is there a reason for that?