unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* qt-build-system: Add QT_QPA_PLATFORM=offscreen?
       [not found]   ` <20200121234321.2e51854b@scratchpost.org>
@ 2020-01-22  8:44     ` Hartmut Goebel
  2020-01-22  9:20       ` [bug#39229] " Mike Rosset
  2020-01-22  9:24       ` Efraim Flashner
  0 siblings, 2 replies; 3+ messages in thread
From: Hartmut Goebel @ 2020-01-22  8:44 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel, 39229


[-- Attachment #1.1: Type: text/plain, Size: 1141 bytes --]

Hi Danny,

(forwarding to guix-devel to eventually get more opinions on this)

Am 21.01.20 um 23:43 schrieb Danny Milosavljevic:
>> +         (add-before 'check 'check-setup
>> +           (lambda _
>> +             (setenv "QT_QPA_PLATFORM" "offscreen")
>> +             #t)))))
> Hmm, would it make sense to do that automatically in qt-build-system ?

I would be fine with this, since I find myself adding this snippet quite
often when building Qt/KDE applications. But there *might* be cases,
where tests fail due to this setting. (While I'm not aware of one, I
could imaging some test checks whether it is actually painting.)

Thus I propose implementing this in some way to easily disable it if
required: Either

- by adding this a new phase (as in the snippet shown above), so it can
easily be disabled

- by adding another keyword-argument (proposal: `#:qpa-platform`,
default: "offscreen", if +f, will not be set.

WDYT?

-- 
Regards
Hartmut Goebel

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



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [bug#39229] qt-build-system: Add QT_QPA_PLATFORM=offscreen?
  2020-01-22  8:44     ` qt-build-system: Add QT_QPA_PLATFORM=offscreen? Hartmut Goebel
@ 2020-01-22  9:20       ` Mike Rosset
  2020-01-22  9:24       ` Efraim Flashner
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Rosset @ 2020-01-22  9:20 UTC (permalink / raw)
  To: guix-patches; +Cc: guix-devel, 39229


Hartmut Goebel writes:

> Hi Danny,
>
> (forwarding to guix-devel to eventually get more opinions on this)
>
> Am 21.01.20 um 23:43 schrieb Danny Milosavljevic:
>>> +         (add-before 'check 'check-setup
>>> +           (lambda _
>>> +             (setenv "QT_QPA_PLATFORM" "offscreen")
>>> +             #t)))))
>> Hmm, would it make sense to do that automatically in qt-build-system ?
>
> I would be fine with this, since I find myself adding this snippet quite
> often when building Qt/KDE applications. But there *might* be cases,
> where tests fail due to this setting. (While I'm not aware of one, I
> could imaging some test checks whether it is actually painting.)
>
> Thus I propose implementing this in some way to easily disable it if
> required: Either
>
> - by adding this a new phase (as in the snippet shown above), so it can
> easily be disabled
>
> - by adding another keyword-argument (proposal: `#:qpa-platform`,
> default: "offscreen", if +f, will not be set.
>
> WDYT?


I think adding this to qt-build-system with the keywords is a good
suggestion.

++

Mike

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: qt-build-system: Add QT_QPA_PLATFORM=offscreen?
  2020-01-22  8:44     ` qt-build-system: Add QT_QPA_PLATFORM=offscreen? Hartmut Goebel
  2020-01-22  9:20       ` [bug#39229] " Mike Rosset
@ 2020-01-22  9:24       ` Efraim Flashner
  1 sibling, 0 replies; 3+ messages in thread
From: Efraim Flashner @ 2020-01-22  9:24 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: guix-devel, 39229

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

On Wed, Jan 22, 2020 at 09:44:02AM +0100, Hartmut Goebel wrote:
> Hi Danny,
> 
> (forwarding to guix-devel to eventually get more opinions on this)
> 
> Am 21.01.20 um 23:43 schrieb Danny Milosavljevic:
> >> +         (add-before 'check 'check-setup
> >> +           (lambda _
> >> +             (setenv "QT_QPA_PLATFORM" "offscreen")
> >> +             #t)))))
> > Hmm, would it make sense to do that automatically in qt-build-system ?
> 

I was about to suggest this.
(ins)efraim@E5400 ~/workspace/guix$ grep QT_QPA_PLATFORM\" gnu/packages/kde*scm | wc -l
41
(ins)efraim@E5400 ~/workspace/guix$ grep define-public gnu/packages/kde*scm | wc -l
124
(ins)efraim@E5400 ~/workspace/guix$ grep qt-build-system gnu/packages/kde*scm | wc -l
27


> I would be fine with this, since I find myself adding this snippet quite
> often when building Qt/KDE applications. But there *might* be cases,
> where tests fail due to this setting. (While I'm not aware of one, I
> could imaging some test checks whether it is actually painting.)
> 
> Thus I propose implementing this in some way to easily disable it if
> required: Either
> 
> - by adding this a new phase (as in the snippet shown above), so it can
> easily be disabled
> 
> - by adding another keyword-argument (proposal: `#:qpa-platform`,
> default: "offscreen", if +f, will not be set.
> 
> WDYT?
> 

I like a new phase before the 'check phase. Are there other things we'd
want to add? Looking through kde-framworks.scm the only one I'd feel
comfortable adding would be the TZ ones.



-- 
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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-22  9:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20200121212746.16054-1-h.goebel@crazy-compilers.com>
     [not found] ` <20200121212746.16054-7-h.goebel@crazy-compilers.com>
     [not found]   ` <20200121234321.2e51854b@scratchpost.org>
2020-01-22  8:44     ` qt-build-system: Add QT_QPA_PLATFORM=offscreen? Hartmut Goebel
2020-01-22  9:20       ` [bug#39229] " Mike Rosset
2020-01-22  9:24       ` Efraim Flashner

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).