Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182867 - net-wireless/wpa_supplicant-0.6.0 hardcodes qmake path for QT3
Summary: net-wireless/wpa_supplicant-0.6.0 hardcodes qmake path for QT3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-22 05:53 UTC by Thomas Capricelli
Modified: 2007-06-29 07:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
wpa_supplicant-0.6.0.ebuild.diff (wpa_supplicant-0.6.0.ebuild.diff,947 bytes, patch)
2007-06-22 08:05 UTC, Jakub Moc (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2007-06-22 05:53:08 UTC
The ebuild hardcodes path for qt3
(ex : line 163:)
/usr/qt/3/bin/qmake -o "${S}"/wpa_gui/Makefile "${S}"/wpa_gui/wpa_gui.pro

and will not compile if qt is installed somewhere else (but still in path, and $QTDIR is set also).

Another point is that it doesn't find qt4 neither. But this is a lot more difficult to solve as gentoo uses 'qmake' for both qt3 and qt4.

Reproducible: Always

Actual Results:  
/usr/portage/net-wireless/wpa_supplicant/wpa_supplicant-0.6.0.ebuild: line 155: /usr/qt/3/bin/qmake: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-22 08:05:30 UTC
Created attachment 122784 [details, diff]
wpa_supplicant-0.6.0.ebuild.diff

We only support QT installed via Gentoo ebuilds, and it works just perfectly fine with that. ${QTDIR}/bin/qmake is the correct path for qt-3 (is NOT in $PATH) and /usr/bin/qmake is for qt-4. As such, this patch is purely cosmetic and not needed for anyone using Gentoo ebuilds. If you install stuff to different locations, that's your problem.
Comment 2 Thomas Capricelli 2007-06-22 08:16:11 UTC
And i would be delighted if the script was using ${QTDIR}/bin/qmake as you said, but it does not. It explicitely uses /usr/qt/3/bin/qmake, check.

(I find the comment a little bit rude. Gentoo is about flexibility, no ? what is /etc/portage/profile/package.provided for then?)
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-06-29 07:47:51 UTC
Fixed, thanks.