From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:51447) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuCCA-0004Ac-2m for guix-patches@gnu.org; Wed, 22 Jan 2020 04:21:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iuCC7-0004L7-I3 for guix-patches@gnu.org; Wed, 22 Jan 2020 04:21:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iuCC6-0004Km-9u for guix-patches@gnu.org; Wed, 22 Jan 2020 04:21:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iuCC6-0001Q5-75 for guix-patches@gnu.org; Wed, 22 Jan 2020 04:21:02 -0500 Subject: [bug#39229] qt-build-system: Add QT_QPA_PLATFORM=offscreen? Resent-Message-ID: References: <20200121212746.16054-1-h.goebel@crazy-compilers.com> <20200121212746.16054-7-h.goebel@crazy-compilers.com> <20200121234321.2e51854b@scratchpost.org> From: Mike Rosset In-reply-to: Date: Wed, 22 Jan 2020 01:20:04 -0800 Message-ID: <875zh3luez.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39229@debbugs.gnu.org Cc: guix-devel@gnu.org, dannym@scratchpost.org 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