GNU bug report logs - #32013
Krita dependency kxmlgui fails to build since Qt 5.11

Previous Next

Package: guix;

Reported by: Leo Famulari <leo <at> famulari.name>

Date: Fri, 29 Jun 2018 21:03:02 UTC

Severity: normal

Done: Leo Famulari <leo <at> famulari.name>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32013 in the body.
You can then email your comments to 32013 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#32013; Package guix. (Fri, 29 Jun 2018 21:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo Famulari <leo <at> famulari.name>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 29 Jun 2018 21:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: bug-guix <at> gnu.org
Subject: Krita dependency kxmlgui fails to build since Qt 5.11
Date: Fri, 29 Jun 2018 17:02:36 -0400
[Message part 1 (text/plain, inline)]
Since we upgraded Qt to 5.11, Krita's dependency kxmlgui has failed to
build:

https://hydra.gnu.org/build/2815173

We see this:

------
/tmp/guix-build-kxmlgui-5.42.0.drv-0/kxmlgui-5.42.0/src/kshortcuteditwidget.cpp: In lambda function:
/tmp/guix-build-kxmlgui-5.42.0.drv-0/kxmlgui-5.42.0/src/kshortcuteditwidget.cpp:94:27: error: comparison between distinct pointer types ‘QAction*’ and ‘QObject*’ lacks a cast
             if (action != m_action) {
                           ^
In file included from /gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtGui/qtguiglobal.h:43:0,
                 from /gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtWidgets/qtwidgetsglobal.h:43,
                 from /gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtWidgets/qwidget.h:43,
                 from /gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtWidgets/QWidget:1,
                 from /tmp/guix-build-kxmlgui-5.42.0.drv-0/kxmlgui-5.42.0/src/kshortcutseditor.h:30,
                 from /tmp/guix-build-kxmlgui-5.42.0.drv-0/kxmlgui-5.42.0/src/kshortcutsdialog_p.h:25,
                 from /tmp/guix-build-kxmlgui-5.42.0.drv-0/kxmlgui-5.42.0/src/kshortcuteditwidget.cpp:26:
/gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtCore/qmetatype.h: In instantiation of ‘struct QtPrivate::IsPointerToTypeDerivedFromQObject<QAction*>’:
/gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtCore/qmetatype.h:1614:60:   required from ‘struct QMetaTypeId<QAction*>’
/gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtCore/qmetatype.h:1633:10:   required from ‘struct QMetaTypeId2<QAction*>’
/gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtCore/qobject_impl.h:68:49:   required from ‘struct QtPrivate::TypesAreDeclaredMetaType<QtPrivate::List<QAction*, const QKeySequence&> >’
/gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtCore/qobject.h:327:86:   required from ‘static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = void (KGlobalAccel::*)(QAction*, const QKeySequence&); Func2 = ShortcutEditWidget::ShortcutEditWidget(QWidget*, const QKeySequence&, const QKeySequence&, bool)::<lambda(QAction*, const QKeySequence&)>; typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::type = QMetaObject::Connection; typename QtPrivate::FunctionPointer<Func>::Object = KGlobalAccel]’
/tmp/guix-build-kxmlgui-5.42.0.drv-0/kxmlgui-5.42.0/src/kshortcuteditwidget.cpp:99:5:   required from here
/gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtCore/qmetatype.h:1386:9: error: invalid application of ‘sizeof’ to incomplete type ‘QAction’
         Q_STATIC_ASSERT_X(sizeof(T), "Type argument of Q_DECLARE_METATYPE(T*) must be fully defined");
         ^
In file included from /gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtCore/qobjectdefs.h:50:0,
                 from /gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtGui/qwindowdefs.h:44,
                 from /gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtWidgets/qwidget.h:44,
                 from /gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtWidgets/QWidget:1,
                 from /tmp/guix-build-kxmlgui-5.42.0.drv-0/kxmlgui-5.42.0/src/kshortcutseditor.h:30,
                 from /tmp/guix-build-kxmlgui-5.42.0.drv-0/kxmlgui-5.42.0/src/kshortcutsdialog_p.h:25,
                 from /tmp/guix-build-kxmlgui-5.42.0.drv-0/kxmlgui-5.42.0/src/kshortcuteditwidget.cpp:26:
/gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtCore/qobjectdefs_impl.h: At global scope:
/gnu/store/kjzfprjsjgyi2y7ybs7rinaac7gziabb-qtbase-5.11.0/include/qt5/QtCore/qobjectdefs_impl.h:429:18: error: ‘QtPrivate::QFunctorSlotObject<Func, N, Args, R>::QFunctorSlotObject(Func) [with Func = ShortcutEditWidget::ShortcutEditWidget(QWidget*, const QKeySequence&, const QKeySequence&, bool)::<lambda(QAction*, const QKeySequence&)>; int N = 2; Args = QtPrivate::List<QAction*, const QKeySequence&>; R = void]’, declared using local type ‘ShortcutEditWidget::ShortcutEditWidget(QWidget*, const QKeySequence&, const QKeySequence&, bool)::<lambda(QAction*, const QKeySequence&)>’, is used but never defined [-fpermissive]
         explicit QFunctorSlotObject(Func f) : QSlotObjectBase(&impl), function(std::move(f)) {}
                  ^
make[2]: *** [src/CMakeFiles/KF5XmlGui.dir/build.make:302: src/CMakeFiles/KF5XmlGui.dir/kshortcuteditwidget.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/guix-build-kxmlgui-5.42.0.drv-0/build'
make[1]: *** [CMakeFiles/Makefile2:262: src/CMakeFiles/KF5XmlGui.dir/all] Error 2
make[1]: Leaving directory '/tmp/guix-build-kxmlgui-5.42.0.drv-0/build'
make: *** [Makefile:144: all] Error 2
Backtrace:
           4 (primitive-load "/gnu/store/ljdraf9d3rc0lg4m9iqgzxr0155…")
In ice-9/eval.scm:
   191:35  3 (_ _)
In srfi/srfi-1.scm:
    640:9  2 (for-each #<procedure 974980 at /gnu/store/qzsljkcllc0…> …)
In /gnu/store/qzsljkcllc01dmdq9z0yrqri3ajam3vp-module-import/guix/build/gnu-build-system.scm:
   799:31  1 (_ _)
In /gnu/store/qzsljkcllc01dmdq9z0yrqri3ajam3vp-module-import/guix/build/utils.scm:
    616:6  0 (invoke _ . _)

/gnu/store/qzsljkcllc01dmdq9z0yrqri3ajam3vp-module-import/guix/build/utils.scm:616:6: In procedure invoke:
Throw to key `srfi-34' with args `(#<condition &invoke-error [program: "make" arguments: ("-j" "4") exit-status: 2 term-signal: #f stop-signal: #f] 9ddfc0>)'.
builder for `/gnu/store/4b1nca913a2spjf9z6z35v1wqj761qqj-kxmlgui-5.42.0.drv' failed with exit code 1
------
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#32013; Package guix. (Fri, 17 Aug 2018 16:31:01 GMT) Full text and rfc822 format available.

Message #8 received at 32013 <at> debbugs.gnu.org (full text, mbox):

From: Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de>
To: Leo Famulari <leo <at> famulari.name>
Cc: 32013 <at> debbugs.gnu.org
Subject: Re: bug#32013: Krita dependency kxmlgui fails to build since Qt 5.11
Date: Fri, 17 Aug 2018 18:30:34 +0200
[Message part 1 (text/plain, inline)]
On Fri, 29 Jun 2018 17:02:36 -0400
Leo Famulari <leo <at> famulari.name> wrote:

> Since we upgraded Qt to 5.11, Krita's dependency kxmlgui has failed to
> build:
> 
> https://hydra.gnu.org/build/2815173


I played a bit around with this:

I just updated the KDE libs to 5.49.0 with a simple

./pre-inst-env guix refresh -t kde -u

There is one test in attica that fails, I disabled it by adding a phase:



+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'disable-provider-test
+           (lambda _
+             (substitute* "autotests/CMakeLists.txt"
+               ((".*providertest.cpp") "")))))))

With that, kxmlgui builds again.

Krita has then another issue: libraw was recently updated to 0.19.0, if
I revert that, Krita builds again. I opened another bug for that,
because I found it unrelated and it could maybe effect other packages
as well:

#32467

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32467


I would call that solution "quick & dirty" or at least untested,
that's why I haven't prepared a patch: I haven't rebuilt the whole
KDE-stack, just the dependencies from kxmlgui and krita. I have no idea
of how to do a proper KDE-update or what has to be tested for KDE. I
think someone should do a proper KDE-update and then krita builds again
automatically.

I would ask for someone else to do the KDE-update as I have not much
knowledge about that and will be mostly absent the next weeks.

Hopefully this information motivates someone else to do the job :-)

Björn


[Message part 2 (application/pgp-signature, inline)]

Reply sent to Leo Famulari <leo <at> famulari.name>:
You have taken responsibility. (Sat, 01 Sep 2018 06:15:01 GMT) Full text and rfc822 format available.

Notification sent to Leo Famulari <leo <at> famulari.name>:
bug acknowledged by developer. (Sat, 01 Sep 2018 06:15:02 GMT) Full text and rfc822 format available.

Message #13 received at 32013-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de>
Cc: 32013-done <at> debbugs.gnu.org
Subject: Re: bug#32013: Krita dependency kxmlgui fails to build since Qt 5.11
Date: Sat, 1 Sep 2018 02:14:35 -0400
[Message part 1 (text/plain, inline)]
On Fri, Aug 17, 2018 at 06:30:34PM +0200, Björn Höfling wrote:
> I played a bit around with this:

Thanks for investigating all this. I took your advice and upgraded the
KDE packages, and got kxmlgui and Krita working again.

Fixed by commit 600f1ad8e61e65ad9a1f22d099d16c5948cb1f48
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 29 Sep 2018 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 203 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.