unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 2/3] gnu: Add fluid.
Date: Mon, 9 Jan 2017 12:11:19 +0200	[thread overview]
Message-ID: <20170109101119.GA24479@macbook42.flashner.co.il> (raw)
In-Reply-To: <87shospohn.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 3813 bytes --]

On Mon, Jan 09, 2017 at 10:32:52AM +0100, Ludovic Courtès wrote:
> Hi!
> 
> ng0 <ng0@libertad.pw> skribis:
> 
> > * gnu/packages/qt.scm (fluid): New variable.
> 
> I think it’s best to put it in kde.scm or some other place; it feels
> wrong to import (gnu packages kde-frameworks) in (gnu packages qt).
> 
> > +(define-public fluid
> > +  (package
> > +    (name "fluid")
> > +    (version "0.9.0")
> > +    (source
> > +     (origin
> > +       (method url-fetch)
> > +       (uri (string-append "https://github.com/lirios/fluid/releases/download/"
> > +                           "v" version "/" name "-" version ".tar.xz"))
> > +       (file-name (string-append name "-" version ".tar.xz"))
> > +       (sha256
> > +        (base32
> > +         "0m6mijlnizgvmh0z2wcrmkfl5cdrylxz3d7bqii8dasmm0q8f68y"))))
> > +    (build-system cmake-build-system)
> > +    (arguments
> > +     `(#:tests? #f ; XXX: The tests do not find the fluid module.
> > +       #:phases
> > +       (modify-phases %standard-phases
> > +         (add-before 'build 'setenv
> > +                     (lambda _
> > +                       (setenv "QT_QPA_PLATFORM" "offscreen"))))))
> 
> Please add as a comment why this is needed, and add this phase before
> ‘check’ for clarity.  Also add #t as the return value.
> 
> I removed the #:tests? #f as Danny suggested, but the tests are failing
> in a way that suggests there’s something wrong:
> 
> --8<---------------cut here---------------start------------->8---
> Test project /tmp/guix-build-fluid-0.9.0.drv-0/build
>     Start 1: tst_controls
> 1/3 Test #1: tst_controls .....................***Failed    0.05 sec
> file:///tmp/guix-build-fluid-0.9.0.drv-0/fluid-0.9.0/tests/auto/controls/tst_icon.qml:17:1: module "Fluid.Controls" is not installed 
>      import Fluid.Controls 1.0 
>      ^
> ********* Start testing of tst_controls *********
> Config: Using QtTest library 5.7.1, Qt 5.7.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 4.9.4)
> QWARN  : tst_controls::tst_icon::compile() 
>   /tmp/guix-build-fluid-0.9.0.drv-0/fluid-0.9.0/tests/auto/controls/tst_icon.qml produced 1 error(s):
>     /tmp/guix-build-fluid-0.9.0.drv-0/fluid-0.9.0/tests/auto/controls/tst_icon.qml:17,1: module "Fluid.Controls" is not installed
>   Working directory: /tmp/guix-build-fluid-0.9.0.drv-0/build/tests/auto/controls
>   View: QQuickView, import paths:
>     '/tmp/guix-build-fluid-0.9.0.drv-0/build/tests/auto/controls'
>     'qrc:/qt-project.org/imports'
>     '/gnu/store/0v50sh1lgkwkhxxq1v37ayxr15vayn6k-qtdeclarative-5.7.1/qml'
>     '/gnu/store/31mn2qgx5gh3zg3pk4w0j2a89jrkqnyv-qtquickcontrols2-5.7.1/qml'
>   Plugin paths:
>     '.'
> 
> FAIL!  : tst_controls::tst_icon::compile() module "Fluid.Controls" is not installed
> --8<---------------cut here---------------end--------------->8---
> 
> Could you check what’s going on?

I've been working a bit with the tests in the qt modules, and
qtdeclarative, for instance, can't find qtquick, which is part of
qtdeclarative. Debian adds: (for qtdeclarative)

----
QML2_IMPORT_PATH=$(CURDIR)/test_root/usr/lib/$(DEB_HOST_MULTIARCH)/qt5/qml \
HOME=$(CURDIR) LD_LIBRARY_PATH=$(CURDIR)/lib
----

to the test phase so that the tests can find what was just built. I
would suggest trying either running the tests after 'install (which
probably won't make a difference), or setting an environmental variable
or patching the source to change where Some-Important-Qt-Import-Path™ is.


> 
> Thanks you!
> 
> Ludo’.
> 

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2017-01-09 10:11 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-04 12:47 Patches to add: DOtherSide, fluid, font-google-roboto ng0
2017-01-04 12:47 ` [PATCH 1/3] gnu: Add dotherside ng0
2017-01-04 12:47 ` [PATCH 2/3] gnu: Add fluid ng0
2017-01-04 14:04   ` Danny Milosavljevic
2017-01-04 14:48     ` David Craven
2017-01-04 12:47 ` [PATCH 3/3] gnu: Add font-google-roboto ng0
2017-01-09  9:21   ` Ludovic Courtès
2017-01-04 14:53 ` fluid, dotherside, roboto. v2 ng0
2017-01-04 14:53   ` [PATCH 1/3] gnu: Add dotherside ng0
2017-01-09  9:24     ` Ludovic Courtès
2017-01-04 14:53   ` [PATCH 2/3] gnu: Add fluid ng0
2017-01-09  9:32     ` Ludovic Courtès
2017-01-09 10:11       ` Efraim Flashner [this message]
2017-01-09 10:20       ` ng0
2017-01-09 12:44         ` fluid, v2 ng0
2017-01-09 12:44           ` [PATCH] gnu: Add fluid ng0
2017-01-09 14:15             ` ng0
2017-01-09 15:58               ` David Craven
2017-01-09 16:11                 ` David Craven
2017-01-09 16:45                   ` ng0
2017-01-09 16:49                     ` David Craven
2017-01-04 14:53   ` [PATCH 3/3] gnu: Add font-google-roboto ng0

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170109101119.GA24479@macbook42.flashner.co.il \
    --to=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).