Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573764 - app-emulation/q4wine: add Qt5 support
Summary: app-emulation/q4wine: add Qt5 support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-03 11:48 UTC by John Brezerk
Modified: 2016-02-15 04:16 UTC (History)
1 user (show)

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


Attachments
version bump with qt5 support (q4wine-1.2_p2-r2.ebuild,1.61 KB, text/plain)
2016-02-03 11:49 UTC, John Brezerk
Details
build log (build.log,6.57 KB, text/plain)
2016-02-12 04:14 UTC, Michael Palimaka (kensington)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Brezerk 2016-02-03 11:48:36 UTC
Version bump to q4wine-1.2-r2.

I have added qt5 flag, so now it will be possible to build q4wine with qt5 libraries. 

Reproducible: Always
Comment 1 John Brezerk 2016-02-03 11:49:26 UTC
Created attachment 424534 [details]
version bump with qt5 support
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2016-02-03 20:18:48 UTC
Upstream version 1.2-r2 is already packaged in gentoo (as 1.2_p2 to avoid conflicts with gentoo-specific revision numbers).

This bug is requesting qt5 support in that (or a future) version.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2016-02-10 16:07:21 UTC
It fails to build for me:

CMake Error at src/q4wine-lib/CMakeLists.txt:74 (QT5_WRAP_UI):
  Unknown CMake command "QT5_WRAP_UI".

It also appears to try to detect qt4 unconditionally.
Comment 4 John Brezerk 2016-02-10 22:02:15 UTC
Hi, Michael 

Can you add some more info please?
1. full build log.
2. cmake version.
3. cmake use flags.

thanks.
Comment 5 Michael Palimaka (kensington) gentoo-dev 2016-02-12 04:14:51 UTC
Created attachment 425276 [details]
build log

[ebuild   R   ~] dev-util/cmake-3.4.3::gentoo  USE="ncurses -doc -emacs -qt4 -qt5 -system-jsoncpp {-test}" 0 KiB
Comment 6 John Brezerk 2016-02-13 09:18:30 UTC
Hi, Michael

Here you are my build log: http://pastebin.com/rA3YGvAZ on my gentoo box: http://pastebin.com/dgmUmg8U (emerge --info)

The only difference, is how QT5 cmake option is set by portage:

From your log:
-- QT5                           : yes
From my log:
-- QT5                           : ON

It seems like in your case portage function $(cmake-utils_use qt5) does set the option to wrong value. According to https://cmake.org/cmake/help/v3.4/command/option.html the valid values should be "ON" or "OFF", not "yes". 

This is why cmake fails to detect Qt5 libs and defaults to Qt4.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2016-02-15 04:16:16 UTC
(In reply to John Brezerk from comment #6)
> Hi, Michael
> 
> Here you are my build log: http://pastebin.com/rA3YGvAZ on my gentoo box:
> http://pastebin.com/dgmUmg8U (emerge --info)
> 
> The only difference, is how QT5 cmake option is set by portage:
> 
> From your log:
> -- QT5                           : yes
> From my log:
> -- QT5                           : ON
> 
> It seems like in your case portage function $(cmake-utils_use qt5) does set
> the option to wrong value. According to
> https://cmake.org/cmake/help/v3.4/command/option.html the valid values
> should be "ON" or "OFF", not "yes". 
> 
> This is why cmake fails to detect Qt5 libs and defaults to Qt4.

Normally on/yes/true are interchangeable, but for some reason this package does stuff like if(QT5 MATCHES ON) instead of just if(QT5) in some places.

Anyway, thanks, patch pushed with some minor changes.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5044478a38f2af48dbdbd708d5069b72133f141