GNU bug report logs - #31668
[PATCH 1/2] gnu: Add qtwebview.

Previous Next

Package: guix-patches;

Reported by: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Date: Thu, 31 May 2018 13:54:01 UTC

Severity: normal

Tags: patch

Done: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

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 31668 in the body.
You can then email your comments to 31668 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 guix-patches <at> gnu.org:
bug#31668; Package guix-patches. (Thu, 31 May 2018 13:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 31 May 2018 13:54:02 GMT) Full text and rfc822 format available.

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

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: guix-patches <at> gnu.org
Subject: [PATCH 1/2] gnu: Add qtwebview.
Date: Thu, 31 May 2018 15:53:22 +0200
* gnu/packages/qt.scm (qtwebview): New variable.
---
 gnu/packages/qt.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index c3d0bff2f..894269515 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2017 Quiliro <quiliro <at> fsfla.org>
 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me <at> tobias.gr>
 ;;; Copyright © 2018 Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
+;;; Copyright © 2018 Hartmut Goebel <h.goebel <at> crazy-compilers.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1057,6 +1058,27 @@ between the host (QML/C++ application) and the client (HTML/JavaScript
 application).  The transport mechanism is supported out of the box by the two
 popular web engines, Qt WebKit 2 and Qt WebEngine.")))
 
+(define-public qtwebview
+  (package (inherit qtsvg)
+    (name "qtwebview")
+    (version "5.11.0")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "https://download.qt.io/official_releases/qt/"
+                                 (version-major+minor version) "/" version
+                                 "/submodules/" name "-everywhere-src-"
+                                 version ".tar.xz"))
+             (sha256
+              (base32
+               "0a89v8mj5pb7a7whyhasf4ms0n34ghfmv2qp0pyxnq56f2bsjbl4"))))
+    (native-inputs
+     `(("perl" ,perl)
+       ("qtdeclarative" ,qtdeclarative)))
+    (synopsis "Display web content in a QML application")
+    (description "Qt WebView provides a way to display web content in a QML
+application without necessarily including a full web browser stack by using
+native APIs where it makes sense.")))
+
 (define-public qtlocation
   (package (inherit qtsvg)
     (name "qtlocation")
-- 
2.13.6





Information forwarded to guix-patches <at> gnu.org:
bug#31668; Package guix-patches. (Thu, 31 May 2018 13:55:02 GMT) Full text and rfc822 format available.

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

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: 31668 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: Add qtwebglplugin.
Date: Thu, 31 May 2018 15:54:46 +0200
* gnu/packages/qt.scm (qtwebglplugin): New variable.
---
 gnu/packages/qt.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 894269515..a65e08e05 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1058,6 +1058,32 @@ between the host (QML/C++ application) and the client (HTML/JavaScript
 application).  The transport mechanism is supported out of the box by the two
 popular web engines, Qt WebKit 2 and Qt WebEngine.")))
 
+(define-public qtwebglplugin
+  (package (inherit qtsvg)
+    (name "qtwebglplugin")
+    (version "5.11.0")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "https://download.qt.io/official_releases/qt/"
+                                 (version-major+minor version) "/" version
+                                 "/submodules/" name "-everywhere-src-"
+                                 version ".tar.xz"))
+             (sha256
+              (base32
+               "1al7dv7i9rg4z4p8vnipbjbbgc6113lbfjggxxap3sn6hqs986fm"))))
+    (native-inputs
+     `(("perl" ,perl)
+       ;; The package is implemented badly, thus these need to be native-inputs
+       ("mesa" ,mesa)
+       ("qtwebsockets" ,qtwebsockets)))
+    (synopsis "QPA plugin for running an application via a browser using
+streamed WebGL commands")
+    (description "Qt back end that uses WebGL for rendering. It allows Qt
+applications (with some limitations) to run in a web browser that supports
+WebGL.  WebGL is a JavaScript API for rendering 2D and 3D graphics within any
+compatible web browser without the use of plug-ins.  The API is similar to
+OpenGL ES 2.0 and can be used in HTML5 canvas elements")))
+
 (define-public qtwebview
   (package (inherit qtsvg)
     (name "qtwebview")
-- 
2.13.6





Information forwarded to guix-patches <at> gnu.org:
bug#31668; Package guix-patches. (Sun, 10 Jun 2018 02:57:02 GMT) Full text and rfc822 format available.

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

From: iyzsong <at> member.fsf.org (宋文武)
To: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
Cc: 31668 <at> debbugs.gnu.org
Subject: Re: [bug#31668] [PATCH 2/2] gnu: Add qtwebglplugin.
Date: Sun, 10 Jun 2018 10:55:18 +0800
Hartmut Goebel <h.goebel <at> crazy-compilers.com> writes:

> * gnu/packages/qt.scm (qtwebglplugin): New variable.
> ---
>  gnu/packages/qt.scm | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>
> diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
> index 894269515..a65e08e05 100644
> --- a/gnu/packages/qt.scm
> +++ b/gnu/packages/qt.scm
> @@ -1058,6 +1058,32 @@ between the host (QML/C++ application) and the client (HTML/JavaScript
>  application).  The transport mechanism is supported out of the box by the two
>  popular web engines, Qt WebKit 2 and Qt WebEngine.")))
>  
> +(define-public qtwebglplugin
> +  (package (inherit qtsvg)
> +    (name "qtwebglplugin")
> +    (version "5.11.0")
> +    (source (origin
> +             (method url-fetch)
> +             (uri (string-append "https://download.qt.io/official_releases/qt/"
> +                                 (version-major+minor version) "/" version
> +                                 "/submodules/" name "-everywhere-src-"
> +                                 version ".tar.xz"))
> +             (sha256
> +              (base32
> +               "1al7dv7i9rg4z4p8vnipbjbbgc6113lbfjggxxap3sn6hqs986fm"))))
> +    (native-inputs
> +     `(("perl" ,perl)
> +       ;; The package is implemented badly, thus these need to be native-inputs
> +       ("mesa" ,mesa)
> +       ("qtwebsockets" ,qtwebsockets)))

Hello, what’s “implemented badly” means?  I think ‘mesa’ and
‘qtwebsockets’ belongs to the ‘inputs’ nicely, since after build
‘qtwebglplugin’ does keep references to them.




Information forwarded to guix-patches <at> gnu.org:
bug#31668; Package guix-patches. (Sun, 10 Jun 2018 18:04:02 GMT) Full text and rfc822 format available.

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

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: 宋文武 <iyzsong <at> member.fsf.org>
Cc: 31668 <at> debbugs.gnu.org
Subject: Re: [bug#31668] [PATCH 2/2] gnu: Add qtwebglplugin.
Date: Sun, 10 Jun 2018 20:03:50 +0200
Am 10.06.2018 um 04:55 schrieb 宋文武:
> Hello, what’s “implemented badly” means?  I think ‘mesa’ and
> ‘qtwebsockets’ belongs to the ‘inputs’ nicely, since after build
> ‘qtwebglplugin’ does keep references to them.

If you put these two into "inputs", the build fails. I can not remember
the details, but ASAIR it looked like somebody missed preparation. You
may want to try yourself, qtwebglplugin build quickly.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel <at> crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |





Information forwarded to guix-patches <at> gnu.org:
bug#31668; Package guix-patches. (Mon, 11 Jun 2018 12:21:01 GMT) Full text and rfc822 format available.

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

From: iyzsong <at> member.fsf.org (宋文武)
To: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
Cc: 31668 <at> debbugs.gnu.org
Subject: Re: [bug#31668] [PATCH 2/2] gnu: Add qtwebglplugin.
Date: Mon, 11 Jun 2018 20:19:32 +0800
Hartmut Goebel <h.goebel <at> crazy-compilers.com> writes:

> Am 10.06.2018 um 04:55 schrieb 宋文武:
>> Hello, what’s “implemented badly” means?  I think ‘mesa’ and
>> ‘qtwebsockets’ belongs to the ‘inputs’ nicely, since after build
>> ‘qtwebglplugin’ does keep references to them.
>
> If you put these two into "inputs", the build fails. I can not remember
> the details, but ASAIR it looked like somebody missed preparation. You
> may want to try yourself, qtwebglplugin build quickly.

Oh, that’s due to the package inherit from ‘qtsvg’, and in the inherited
‘configure-qmake’ phase, it will run ‘(assoc-ref inputs "qtbase")’.  Add
‘qtbase’ to ‘inputs’ will make it built, and the ‘perl’ is not needed,
as the below works for me:
--8<---------------cut here---------------start------------->8---
    (native-inputs '())
    (inputs
     `(("mesa" ,mesa)
       ("qtbase" ,qtbase)
       ("qtwebsockets" ,qtwebsockets)))
--8<---------------cut here---------------end--------------->8---

Otherwise, look good to me, thanks!




Reply sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
You have taken responsibility. (Tue, 12 Jun 2018 20:50:02 GMT) Full text and rfc822 format available.

Notification sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
bug acknowledged by developer. (Tue, 12 Jun 2018 20:50:02 GMT) Full text and rfc822 format available.

Message #22 received at 31668-close <at> debbugs.gnu.org (full text, mbox):

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: 宋文武 <iyzsong <at> member.fsf.org>
Cc: 31668-close <at> debbugs.gnu.org
Subject: Re: [bug#31668] [PATCH 2/2] gnu: Add qtwebglplugin.
Date: Tue, 12 Jun 2018 22:49:38 +0200
Pushed as b5792b9cb8c592d4b6da76bbb2acb55cd233e715, crediting your work.

Thanks for the review.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel <at> crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |





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

This bug report was last modified 6 years and 341 days ago.

Previous Next


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