Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618062 - app-text/qpdfview-0.4.17_beta1 USE=-dbus - sources/mainwindow.cpp:1291:21: error: 'QDBusInterface' was not declared in this scope
Summary: app-text/qpdfview-0.4.17_beta1 USE=-dbus - sources/mainwindow.cpp:1291:21: er...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-10 00:02 UTC by Preston Crow
Modified: 2017-11-07 13:32 UTC (History)
2 users (show)

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


Attachments
Patch from upstream bug report (qpdfview-dbus.patch,631 bytes, patch)
2017-05-31 19:45 UTC, Preston Crow
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Preston Crow 2017-05-10 00:02:17 UTC
Building qpdfview-0.4.16 works just fine:
[ebuild   R    ] app-text/qpdfview-0.4.16::gentoo  USE="cups pdf qt5 svg -dbus -djvu -fitz -postscript -sqlite -synctex" LINGUAS="-ast -az -be -bg -bs -ca -cs -da -de -el -en_GB -eo -es -eu -fi -fr -gl -he -hr -hu -id -it -kk -ko -ky -lt -ms -my -pl -pt -pt_BR -ro -ru -sk -sv -th -tr -ug -uk -vi -zh_CN" 0 KiB

Building 0.4.17_beta1 with dbus works fine (though I hit bug 618044):

root@emcdesktop ~ # USE=dbus emerge -1v qpdfview

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] app-text/qpdfview-0.4.17_beta1::gentoo [0.4.16::gentoo] USE="cups dbus* pdf qt5 svg -djvu -fitz -postscript -sqlite -synctex" LINGUAS="-ast -az -be -bg -bs -ca -cs -da -de -el -en_GB -eo -es -eu -fi -fr -gl -he -hr -hu -id -it -kk -ko -ky -lt -ms -my -pl -pt -pt_BR -ro -ru -sk -sv -th -tr -ug -uk -vi -zh_CN" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-text/qpdfview-0.4.17_beta1::gentoo
>>> Installing (1 of 1) app-text/qpdfview-0.4.17_beta1::gentoo
>>> Jobs: 1 of 1 complete                           Load avg: 2.17, 0.88, 0.94

 * Messages for package app-text/qpdfview-0.4.17_beta1:

 * There are changes in locales! This ebuild should be updated to:
 * PLOCALES="ast az be bg bs ca cs da de el en_GB eo es eu fi fr gl he hr hu id it ja kk ko ky lt ms my pl pt pt_BR ro ru sk sv th tr ug uk vi zh_CN"
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.


Building without dbus support results in various compilation errors:

x86_64-pc-linux-gnu-g++ -c -O3 -march=native -pipe -fomit-frame-pointer -fno-stack-protector -ggdb -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DAPPLICATION_VERSION=\"0.4.17beta1\" -DWITH_SVG -DPLUGIN_INSTALL_PATH=\"/usr/lib64/qpdfview\" -DWITH_PDF -DPOPPLER_VERSION=\"0.52.0\" -DPDF_PLUGIN_NAME=\"libqpdfview_pdf.so\" -DWITH_IMAGE -DIMAGE_PLUGIN_NAME=\"libqpdfview_image.so\" -DWITH_CUPS -DCUPS_VERSION=\"2.2.3\" -DWITH_SIGNALS -DDATA_INSTALL_PATH=\"/usr/share/qpdfview\" -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I. -Iicons -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtPrintSupport -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtCore -Imoc -I/usr/lib64/qt5/mkspecs/linux-g++ -o objects/moc_pageitem.o moc/moc_pageitem.cpp
sources/mainwindow.cpp: In member function 'void qpdfview::MainWindow::on_moveToInstance_triggered(qpdfview::DocumentView*)':
sources/mainwindow.cpp:1291:21: error: 'QDBusInterface' was not declared in this scope
     QScopedPointer< QDBusInterface > interface(MainWindowAdaptor::createInterfa
                     ^
sources/mainwindow.cpp:1291:36: error: template argument 1 is invalid
     QScopedPointer< QDBusInterface > interface(MainWindowAdaptor::createInterfa
                                    ^
sources/mainwindow.cpp:1291:36: error: template argument 2 is invalid
sources/mainwindow.cpp:1291:48: error: 'MainWindowAdaptor' has not been declared
     QScopedPointer< QDBusInterface > interface(MainWindowAdaptor::createInterfa
                                                ^
sources/mainwindow.cpp:1293:18: error: base operand of '->' is not a pointer
     if(!interface->isValid())
                  ^
sources/mainwindow.cpp:1296:24: error: 'QDBusConnection' has not been declared
         qCritical() << QDBusConnection::sessionBus().lastError().message();
                        ^
sources/mainwindow.cpp:1300:14: error: base operand of '->' is not a pointer
     interface->call("raiseAndActivate");
              ^
sources/mainwindow.cpp:1302:5: error: 'QDBusReply' was not declared in this scope
     QDBusReply< bool > reply = interface->call("jumpToPageOrOpenInNewTab", tab-
     ^
sources/mainwindow.cpp:1302:17: error: expected primary-expression before 'bool'
     QDBusReply< bool > reply = interface->call("jumpToPageOrOpenInNewTab", tab-
                 ^
sources/mainwindow.cpp:1304:9: error: 'reply' was not declared in this scope
     if(!reply.isValid() || !reply.value())
         ^
sources/mainwindow.cpp:1307:24: error: 'QDBusConnection' has not been declared
         qCritical() << QDBusConnection::sessionBus().lastError().message();
                        ^
sources/mainwindow.cpp:1311:14: error: base operand of '->' is not a pointer
     interface->call("saveDatabase");
              ^
Comment 1 Preston Crow 2017-05-31 19:44:32 UTC
This has been reported upstream, and a patch is available that works for me:

https://bugs.launchpad.net/qpdfview/+bug/1644575
Comment 2 Preston Crow 2017-05-31 19:45:38 UTC
Created attachment 474880 [details, diff]
Patch from upstream bug report
Comment 3 Petr Zima 2017-08-01 10:41:10 UTC
Confirming, same here.  The patch works, thanks.
Comment 4 Larry the Git Cow gentoo-dev 2017-11-07 13:32:38 UTC
The bug has been closed via the following commit(s):

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

commit 595fecd1424a9ffdaaac068948ab05ceaf9a56ca
Author:     Andrey Grozin <grozin@gentoo.org>
AuthorDate: 2017-11-07 13:30:10 +0000
Commit:     Andrey Grozin <grozin@gentoo.org>
CommitDate: 2017-11-07 13:31:45 +0000

    app-text/qpdfview: bump to the current 0.4.18 snapshot
    
    Closes: https://bugs.gentoo.org/618044
    Closes: https://bugs.gentoo.org/618062
    Closes: https://bugs.gentoo.org/634978
    Package-Manager: Portage-2.3.13, Repoman-2.3.4

 app-text/qpdfview/Manifest                   |  1 +
 app-text/qpdfview/qpdfview-0.4.18_pre.ebuild | 96 ++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)