From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guillaume Le Vaillant Subject: bug#38829: XmlListModel QML missing from qtdeclarative 5.12.x Date: Sun, 05 Jan 2020 19:50:08 +0100 Message-ID: <87eewdg2lb.fsf@yamatai> References: <87h81gods7.fsf@yamatai> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42859) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioAzQ-0007J3-1s for bug-guix@gnu.org; Sun, 05 Jan 2020 13:51:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioAzO-00070w-Sg for bug-guix@gnu.org; Sun, 05 Jan 2020 13:51:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38644) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ioAzO-00070b-Dv for bug-guix@gnu.org; Sun, 05 Jan 2020 13:51:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ioAzO-000502-Da for bug-guix@gnu.org; Sun, 05 Jan 2020 13:51:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87h81gods7.fsf@yamatai> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 38829@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Guillaume Le Vaillant skribis: > In version 5.12.6 of the 'qtdeclarative' package, the > 'lib/qt5/qml/QtQuick/XmlListModel' directory is missing (qtdeclarative > 5.11.3 had it). > > It causes run time issues; for example the 'monero-gui' > package builds fine but it fails to run: > > --8<---------------cut here---------------start------------->8--- > 2019-12-31 12:50:42.076 W app startd (log: /home/guillaume/.bitmonero/mon= ero-wallet-gui.log) > 2019-12-31 12:50:42.077 W Qt:5.12.6 GUI:- | screen: 1920x1080 - dpi: 96.1= 263 - ratio:0.997092 > 2019-12-31 12:50:42.179 W QQmlApplicationEngine failed to load component > 2019-12-31 12:50:42.179 W qrc:/main.qml:1693 Type WizardLang unavailable > 2019-12-31 12:50:42.179 W qrc:/wizard/WizardLang.qml:32 module "QtQuick.X= mlListModel" is not installed > 2019-12-31 12:50:42.179 E Error: no root objects > --8<---------------cut here---------------end--------------->8--- I was able to build the QML for 'XmlListModel' by making 'qtdeclarative' a dependency of 'qtxmlpatterns' instead of the opposite (and the QML is in the 'qtxmlpatterns' package). Rebuilding the required Qt packages and 'monero-gui' and running it worked fine. However I'm not too familiar with the Qt packages, so does someone think this approach could cause problems in some of them? Here's the patch I used: =2D-8<---------------cut here---------------start------------->8--- From=202f0befe2e183d65a731e616b7b55808d27d8af8e Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Sun, 5 Jan 2020 19:27:17 +0100 Subject: [PATCH] gnu: qtxmlpatterns: Build QML plugin for XmlListModel. * gnu/packages/qt.scm (qtdeclarative)[native-inputs]: Remove qtxmlpatterns. (qtxmlpatterns)[native-inputs]: Add qtdeclarative. =2D-- gnu/packages/qt.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 795b5e9d2b..daa35c77cb 100644 =2D-- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -723,6 +723,7 @@ from within Qt 5."))) "1l44476ibb8rv4rf80vbjdc3712lmrl1xcxswa513ip66k47p5vn")))) (arguments (substitute-keyword-arguments (package-arguments qtsvg) + ((#:tests? _ #f) #f) ; TODO: Enable the tests ((#:phases phases) `(modify-phases ,phases (add-after 'unpack 'disable-network-tests @@ -730,7 +731,8 @@ from within Qt 5."))) (("qxmlquery") "# qxmlquery") (("xmlpatterns ") "# xmlpatterns")) #t)))))) =2D (native-inputs `(("perl" ,perl))) + (native-inputs `(("perl" ,perl) + ("qtdeclarative" ,qtdeclarative))) (inputs `(("qtbase" ,qtbase))) (synopsis "Qt XML patterns module") (description "The QtXmlPatterns module is a XQuery and XPath engine for @@ -758,8 +760,7 @@ xmlpatternsvalidator."))) ("pkg-config" ,pkg-config) ("python" ,python) ("python-wrapper" ,python-wrapper) =2D ("qtsvg" ,qtsvg) =2D ("qtxmlpatterns" ,qtxmlpatterns))) + ("qtsvg" ,qtsvg))) (inputs `(("mesa" ,mesa) ("qtbase" ,qtbase))) =2D-=20 2.24.1 =2D-8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCXhIv4A8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j/eNAD/SHj/Yj8JW9++EnN6cez3xq9SHWtL8pu0DX27 efsqyZwA/j0JrLUNzpII21N0LrqGtYvMAUVxphg6hR37/3t4Bpsa =jcPd -----END PGP SIGNATURE----- --=-=-=--