On Sat, Oct 29, 2016 at 10:10:39AM -0300, Lisandro Damián Nicanor Pérez Meyer 
wrote:
> Already in experimental! please ping me if you need help with Dianara.
> 
> I don't know if you have packaged Qt5 apps before (nor did check actually). 
> In 
> case you didn't you might want to read
> 
>   http://pkg-kde.alioth.debian.org/packagingqtbasedstuff.html
> 
> Cheers!
> 

Hi!

I've tested this (on two i386 Sid machines) and have some feedback.

Dianara uses qmake as the buildsystem, so it relies on a oauth.prf spec
file, which was missing in the Qt4 version of libqoauth-dev[1], but is
present now.
The problem is that this oauth.prf file needs some adapting.

This is a simple diff of the changes I made to make it work:

1c1
< QOAUTH_INCDIR = $$[QT_INSTALL_HEADERS]
---
> QOAUTH_INCDIR = /usr/include  ### $$[QT_INSTALL_HEADERS]
4,5c4,5
< QOAUTH_INCDIR ~= s!/qt4*!!
< QOAUTH_LIBDIR ~= s!/qt4*!!
---
> #QOAUTH_INCDIR ~= s!/qt4*!!
> #QOAUTH_LIBDIR ~= s!/qt4*!!


Basically, make QOAUT_INCDIR point to /usr/include instead of using that
variable, which points to /usr/lib/{$arch-triplet}/qt5.

Then the other two lines that would take care of removing "qt4" from the
resulting variable, should be removed or commented out.

Or, as an alternative, libqoauth-dev should put its header files in that
/usr/lib/{archtriplet}/qt5 path, whatever's best. I don't know how that
would affect Choqok or other potential "users".


With this, Dianara builds perfectly with Qt 5. Package
libqca-qt5-2-plugins should be a new dependency instead of
libqca2-plugin-ossl, since apparently QCA plugins for the Qt5 version
are all packed into that one.


When starting up Dianara, I get an early crash, related to the systray
icon, both under Plasma and under LXQt, but I imagine it has to do with
the Qt5.7.1 transition. It works fine under a bare Openbox+Tint2
session.


Hope this helps!


Thank you both for all your great work =)
Cheers!


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825976


-- 
Development blog: https://jancoding.wordpress.com

Reply via email to