Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155548 - net-wireless/wpa_supplicant with USE="qt4" requires qt3support
Summary: net-wireless/wpa_supplicant with USE="qt4" requires qt3support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords:
: 157962 165840 263209 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-18 00:45 UTC by Krzysztof Pawlik (RETIRED)
Modified: 2010-09-08 17:46 UTC (History)
5 users (show)

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


Attachments
wpa_supplicant-0.5.6.ebuild.diff (wpa_supplicant-0.5.6.ebuild.diff,913 bytes, patch)
2006-12-12 13:20 UTC, Jakub Moc (RETIRED)
Details | Diff
Patch for improved dependency on qt3support (wpa_supplicant-0.6.4-qt3support.diff,804 bytes, patch)
2009-03-31 15:32 UTC, Thomas Fischer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Pawlik (RETIRED) gentoo-dev 2006-11-18 00:45:45 UTC
When building wpa_suplicant it fails:

g++ -c -pipe -O2 -Wall -W -D_REENTRANT  -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/Qt3Support -I/usr/include/qt4 -I. -I.. -I../../hostapd -I.moc -I.ui -o .obj/scanresults.o scanresults.cpp
In file included from scanresults.h:19,
                 from scanresults.cpp:17:
.ui/ui_scanresults.h:13:31: error: Qt3Support/Q3Header: No such file or directory
.ui/ui_scanresults.h:14:33: error: Qt3Support/Q3ListView: No such file or directory
.ui/ui_scanresults.h:24:42: error: Qt3Support/Q3MimeSourceFactory: No such file or directory
In file included from networkconfig.h:19,
                 from scanresults.cpp:19:
.ui/ui_networkconfig.h:27:45: error: Qt3Support/Q3ListViewItemIterator: No such file or directory
In file included from eventhistory.h:19,
                 from eventhistory.cpp:17:
.ui/ui_eventhistory.h:23:42: error: Qt3Support/Q3MimeSourceFactory: No such file or directory
.ui/ui_scanresults.h:30: error: ISO C++ forbids declaration of 'Q3ListView' with no type
.ui/ui_scanresults.h:30: error: expected ';' before '*' token
.ui/ui_scanresults.h: In member function 'void Ui_ScanResults::setupUi(QDialog*)':
.ui/ui_scanresults.h:43: error: 'scanResultsView' was not declared in this scope
.ui/ui_scanresults.h:43: error: expected type-specifier before 'Q3ListView'
.ui/ui_scanresults.h:43: error: expected `;' before 'Q3ListView'
.ui/ui_scanresults.h:60: error: 'QFrame' has not been declared
.ui/ui_scanresults.h:61: error: 'QFrame' has not been declared
.ui/ui_scanresults.h: In member function 'void Ui_ScanResults::retranslateUi(QDialog*)':
.ui/ui_scanresults.h:100: error: 'scanResultsView' was not declared in this scope
scanresults.h: At global scope:
scanresults.h:37: error: 'Q3ListViewItem' has not been declared
networkconfig.h:32: error: 'Q3ListViewItem' has not been declared
scanresults.cpp: In constructor 'ScanResults::ScanResults(QWidget*, const char*, bool, Qt::WFlags)':
scanresults.cpp:29: error: 'scanResultsView' was not declared in this scope
scanresults.cpp: In member function 'virtual void ScanResults::updateResults()':
scanresults.cpp:72: error: 'scanResultsView' was not declared in this scope
scanresults.cpp:91: error: expected type-specifier before 'Q3ListViewItem'
scanresults.cpp:91: error: expected `;' before 'Q3ListViewItem'
scanresults.cpp: At global scope:
scanresults.cpp:115: error: variable or field 'bssSelected' declared void
scanresults.cpp:115: error: 'int ScanResults::bssSelected' is not a static member of 'class ScanResults'
scanresults.cpp:115: error: 'Q3ListViewItem' was not declared in this scope
scanresults.cpp:115: error: 'sel' was not declared in this scope
scanresults.cpp:116: error: expected ',' or ';' before '{' token
make: *** [.obj/scanresults.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [.obj/eventhistory.o] Error 1

!!! ERROR: net-wireless/wpa_supplicant-0.5.5 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  wpa_supplicant-0.5.5.ebuild, line 155:   Called die

!!! emake wpa_gui-qt4 failed

And I have:

[ebuild   R   ] x11-libs/qt-4.2.1-r1  USE="cups doc gif jpeg opengl pch png postgres xinerama zlib -accessibility -dbus -debug -examples -firebird -glib -mng -mysql -nas -nis -odbc -qt3 -sqlite" INPUT_DEVICES="-wacom" 0 kB

wpa_supplicant with USE="qt4" requires qt4 with USE="qt3" (that flag was added in qt-4.2.1-r1) or patching it to be pure Qt4 app.
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2006-12-04 10:32:51 UTC
In qt-4.2.2, the Qt3Support libraries can be turned on/off with the qt3support flag.  Adding a check for it to this ebuild is probably all that's needed.
Comment 2 Willard Dawson 2006-12-06 10:31:20 UTC
(In reply to comment #1)
> In qt-4.2.2, the Qt3Support libraries can be turned on/off with the qt3support
> flag.  Adding a check for it to this ebuild is probably all that's needed.
> 

As of today, this bug still exists for:

wpa_supplicant-0.5.6
qt-4.2.1
Comment 3 bunkacid 2006-12-07 22:18:12 UTC
 (In reply to comment #1)

I was experiencing this issue and I found this bug.
I added qt3support USE flag per the above comment, to the x11-libs/qt and recompiled both wpa_supplicant, x11-libs/qt fixed the issue.

Here is the versions I am using along with the associate USE flags used to compile the software.
x11-libs/qt-4.2.2  USE="-accessibility cups -dbus -debug -doc -examples -firebird gif -glib jpeg mng mysql nas -nis -odbc opengl -pch png -postgres qt3support sqlite -sqlite3 xinerama zlib" INPUT_DEVICES="-wacom"
net-wireless/wpa_supplicant-0.5.6  USE="dbus -gsm madwifi -qt3 qt4 readline ssl" 

Comment 4 Roy Marples (RETIRED) gentoo-dev 2006-12-11 05:02:49 UTC
Fixed, thanks
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-12-12 13:15:26 UTC
*** Bug 157962 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-12-12 13:19:03 UTC
This check is broken, only qt-4.2.2+ has this flag...
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-12-12 13:20:07 UTC
Created attachment 103890 [details, diff]
wpa_supplicant-0.5.6.ebuild.diff
Comment 8 Roy Marples (RETIRED) gentoo-dev 2006-12-13 10:27:37 UTC
Fixed, thanks Jakub :)
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-02-07 22:35:04 UTC
*** Bug 165840 has been marked as a duplicate of this bug. ***
Comment 10 Luke-Jr 2007-02-07 22:50:22 UTC
The check is broken with:
[ebuild   R   ] x11-libs/qt-4.2.2  USE="accessibility cups dbus gif jpeg mng opengl png sqlite3 zlib -debug -doc -examples (-firebird) -glib -mysql -nas -nis -odbc -pch -postgres -qt3support -sqlite -xinerama" INPUT_DEVICES="-wacom" 0 kB
Comment 11 Roy Marples (RETIRED) gentoo-dev 2007-02-08 10:03:30 UTC
The check is present in 0.5.7
Comment 12 Luke-Jr 2007-02-08 16:00:00 UTC
The bug also exists in 0.5.4
backport?
Comment 13 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-21 09:38:52 UTC
*** Bug 263209 has been marked as a duplicate of this bug. ***
Comment 14 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-21 09:40:14 UTC
Reopening as this still isn't fixed for all versions of wpa_supplicant
Comment 15 Sven E. 2009-03-21 10:03:05 UTC
As a comparison, look at this, when I try to emerge umbrello:

emerge: there are no ebuilds built with USE flags to satisfy "x11-libs/qt-core:4[qt3support,ssl]".
!!! One of the following packages is required to complete your request:
- x11-libs/qt-core-4.5.0 (Change USE: +qt3support)
(dependency required by "kde-base/umbrello-4.2.1" [ebuild])
(dependency required by "umbrello" [argument])

This looks a lot like something I'd expect for wpa_supplicant in this case, they do some kde inherit stuff in the ebuild, maybe it's possible to do a a similiar check for wpa_supplicant?
Comment 16 Thomas Fischer 2009-03-31 15:28:06 UTC
(In reply to comment #15)
> As a comparison, look at this, when I try to emerge umbrello:
> 
> emerge: there are no ebuilds built with USE flags to satisfy
> "x11-libs/qt-core:4[qt3support,ssl]".
> !!! One of the following packages is required to complete your request:
> - x11-libs/qt-core-4.5.0 (Change USE: +qt3support)

This problem can be fixed (I hope) by a patch I'm going to attach soon. The patch, however, depends on that another bug (bug #264403) is fixed first (does not apply if you use Qt 4.5.
Comment 17 Thomas Fischer 2009-03-31 15:32:54 UTC
Created attachment 186871 [details, diff]
Patch for improved dependency on qt3support

Improves the dependency checking on USE qt3support in x11-libs/qt-core or x11-libs/qt. Simplifies the checking by using EAPI=1 features.
Comment 18 Thomas Fischer 2009-03-31 15:48:18 UTC
(In reply to comment #17)
> Created an attachment (id=186871) [edit]
> Patch for improved dependency on qt3support
> 
> Improves the dependency checking on USE qt3support in x11-libs/qt-core or
> x11-libs/qt. Simplifies the checking by using EAPI=1 features.

Hm, there may be two typos:
1. It should be [qt3support] instead of [qt3support=]
2. This USE flag checking is an EAPI2 feature, so the ebuild should require EAPI=2

Further comments are welcome...

Comment 19 Davide Pesavento gentoo-dev 2009-04-11 17:23:02 UTC
uberlord was retired long ago... this bug should be reassigned to mobile@g.o I guess...
Comment 20 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2010-04-18 13:09:10 UTC
Is this still a problem with the 0.7.x version?
Comment 21 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2010-09-08 17:46:46 UTC
Closing as fixed, since nobody has been complaining about the 0.7 version, and nobody wants to answer my question about if this is still relevant.

If the problem exists with the 0.7.3 version, please reopen the bug.