Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184652 - x11-libs/qwtplot3d needs qt4 use flag
Summary: x11-libs/qwtplot3d needs qt4 use flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Marcus D. Hanwell (RETIRED)
URL:
Whiteboard:
Keywords:
: 194316 (view as bug list)
Depends on:
Blocks: 144286
  Show dependency tree
 
Reported: 2007-07-08 20:10 UTC by Vladimir Brik
Modified: 2007-11-28 23:46 UTC (History)
3 users (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 Vladimir Brik 2007-07-08 20:10:13 UTC
x11-libs/qwtplot3d is compiled against qt3 by default and qt4 cannot be selected instead. This may cause a crash or linking error in applications that expect it to be compiled against qt4. qtiplot 0.9 is one of such apps. It's not in portage yet (sci-visualization/qtiplot-0.8.5 is the highest version available), but something might have to be done about it in the future.


Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-30 21:16:32 UTC
*** Bug 194316 has been marked as a duplicate of this bug. ***
Comment 2 Dieter Ries 2007-10-06 22:29:03 UTC
Same thing here, qtiplot from the science overlay doesnt compile when qwtplot3d is normally compiled against qt3. I have changed the ebuild by just changing qt_min_version 3.3 to 4.3 in lines 20 and 23 and removing the "${QTDIR}/bin/" in line 61, I am absolutely sure that the ebuild now is really really bad code, because it gives some "not found" messages, but it works here. So please, someone with more ebuilding skills than me, insert a qt-version-useflag.
Comment 3 François Bissey 2007-10-07 04:27:22 UTC
I successfully compiled qwtplot3d against qt4 here are the changes I made to the ebuild (diff output):
5c5
< inherit multilib qt3
---
> inherit multilib qt4
20c20
< DEPEND="$(qt_min_version 3.3)
---
> DEPEND="$(qt4_min_version 4)
23c23
< RDEPEND="$(qt_min_version 3.3)"
---
> RDEPEND="$(qt4_min_version 4)"
39,40c39
<       addwrite ${QTDIR}/etc/settings
<       ${QTDIR}/bin/qmake qwtplot3d.pro || die "qmake failed."
---
>       eqmake4 "qwtplot3d.pro" || die "qmake failed."


============================
I then compiled successfully qtiplot and it run, but I didn't stress it.
I guess we could a qt3 and a qt4 version of the ebuild like there is for
qwt-5 (qwt for qt4 and qwt-qt3 for qt3 obviously). 
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2007-11-28 23:46:32 UTC
Hi,

qwtplot3d is now splitted since version 0.2.7: by default it is built with qt4, and x11-libs/qwtplot3d-qt3 is the older qt3 version. (naming scheme was to follow qwt). This allows both qtiplot-0.9.x and labplot-1.5.x to build.

Thanks everyone