Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401517 - app-text/djview-4.8 fails to build with qt 4.8
Summary: app-text/djview-4.8 fails to build with qt 4.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
: 407635 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-30 14:02 UTC by Rafał Mużyło
Modified: 2012-04-21 17:10 UTC (History)
6 users (show)

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


Attachments
patch to build with qt 4.8 (djview-4.8-qt-4.8.patch,894 bytes, patch)
2012-01-30 14:02 UTC, Rafał Mużyło
Details | Diff
modified ebuild (djview-4.8.ebuild,1.99 KB, text/plain)
2012-03-22 21:40 UTC, Robert Cabrera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mużyło 2012-01-30 14:02:02 UTC
Created attachment 300389 [details, diff]
patch to build with qt 4.8

Not much to say, a series of:
/usr/include/qt4/QtCore/qglobal.h: In function ‘void qSwap(T&, T&) [with T = QByteArray::Data*]’:
/usr/include/qt4/QtCore/qbytearray.h:164:59:   instantiated from here
/usr/include/qt4/QtCore/qglobal.h:2152:5: error: call of overloaded ‘swap(QByteArray::Data*&, QByteArray::Data*&)’ is ambiguous
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/include/g++-v4/bits/move.h:106:5: note: candidates are: void std::swap(_Tp&, _Tp&) [with _Tp = QByteArray::Data*]
qdjvuwidget.cpp:156:1: note:                 void swap(T&, T&) [with T = QByteArray::Data*]

Attached patch seems to work.
Comment 1 pavel sanda 2012-02-07 12:57:50 UTC
have you reported it upstream? the maintainer is quite responsive there.
Comment 2 tdr 2012-02-13 10:24:32 UTC
Patch works for me, thanks.
Comment 3 Robert Cabrera 2012-03-22 21:40:03 UTC
Created attachment 306369 [details]
modified ebuild

Modified ebuild. Create a djview folder and add this ebuild to your overlay. Put the patch in the "file" folder there then run 'ebuild djview-4.8.ebuild digest'.

Then install. Enjoy!
Comment 4 R Stephan 2012-04-02 08:23:21 UTC
I have opened an issue in the patch tracker upstream
Comment 5 R Stephan 2012-04-02 16:26:46 UTC
Upstream says it's fixed now, see
https://sourceforge.net/tracker/?func=detail&atid=406585&aid=3514075&group_id=32953

so waiting for release now
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-04-21 09:49:06 UTC
*** Bug 407635 has been marked as a duplicate of this bug. ***
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2012-04-21 17:10:39 UTC
Committed this upstream patch to Portage:

http://djvu.git.sourceforge.net/git/gitweb.cgi?p=djvu/djview.git;a=commit;h=7d4802964b9e74506c63f43505b632f6e7b5db3c