From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: qt-build-system: Add QT_QPA_PLATFORM=offscreen? Date: Wed, 22 Jan 2020 09:44:02 +0100 Message-ID: References: <20200121212746.16054-1-h.goebel@crazy-compilers.com> <20200121212746.16054-7-h.goebel@crazy-compilers.com> <20200121234321.2e51854b@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cRaUJD2LVDPBOjQoi2NvdN1f4ScRFn41I" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47216) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuBcQ-0003a2-2b for guix-devel@gnu.org; Wed, 22 Jan 2020 03:44:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iuBcP-0007MV-12 for guix-devel@gnu.org; Wed, 22 Jan 2020 03:44:09 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:57067) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iuBcO-0007Lw-NO for guix-devel@gnu.org; Wed, 22 Jan 2020 03:44:08 -0500 In-Reply-To: <20200121234321.2e51854b@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel , 39229@debbugs.gnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --cRaUJD2LVDPBOjQoi2NvdN1f4ScRFn41I Content-Type: multipart/mixed; boundary="EjMCDT72mZBOq2qJNXF82xWUbUADdCcC4"; protected-headers="v1" From: Hartmut Goebel To: Danny Milosavljevic Cc: 39229@debbugs.gnu.org, guix-devel Message-ID: Subject: qt-build-system: Add QT_QPA_PLATFORM=offscreen? References: <20200121212746.16054-1-h.goebel@crazy-compilers.com> <20200121212746.16054-7-h.goebel@crazy-compilers.com> <20200121234321.2e51854b@scratchpost.org> In-Reply-To: <20200121234321.2e51854b@scratchpost.org> --EjMCDT72mZBOq2qJNXF82xWUbUADdCcC4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US 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? --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | --EjMCDT72mZBOq2qJNXF82xWUbUADdCcC4-- --cRaUJD2LVDPBOjQoi2NvdN1f4ScRFn41I Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE1K2LnBZ7dXxPCOh3e3UoEb93O2UFAl4oC1IACgkQe3UoEb93 O2WR9g//QLcLpQGO4UqOYmVWEgdHOFA0YtMS7Y0Mj7Ml+HVWigmTA7lTdBOujhda GDBvkExS6tkh4/2R06YuG8kPLzjUL/NhBbh4FRc3cb/g7ZPUHpFvbB98X2r9T3zS jc3MeBa21SAN08S3UmICBZV3I3B4YvbfkDhTmEPURSrGcfo6kXJclnubtI3bN+Xy +m0IoLJ5tPSZCKK+rCrbEqAN2XCFh+kVq0N/KS89ryFhu6x8gzhJRvkF+WLKRi3b 1HP/tT2rR9zLvCJ4ddKfrFfgIsj2tP1yzb1u9a9oVk8SZ8tAWorTQEEFX34c/U7s aAPwRkENrtl2tHj0pi8Tld4gyq3Gob1VMQNmAVmN+P3WeU2N7coaj8mufo+/nmPz AUGkYu2ah+OBB4jzbhlaOYQM5/ng2QfTjg/z1jgcF4C24cffFUZpyNKL+4hxSH/q OwcQGisL2I9Munj26GUpWiN1Fzem94Rk/sr/tS2UHKgX+c+CBE7NK8VEVAPAwAV8 4E6E52jyFUg8gHdjzMpKu80e89nP9Et6Y0VX3NOfExBOI5aAOZ5jQcMtblZHSqDH Si6PrXrYv/sXiB8TsgY+FzOewoWuDjkr7RTDEegERW0kaRBtA9F3XtlIKiWmJbFY YMx/jhfnhaE6GS9GWE4hHpE8/sm34GsH6XKvhvm4ehHzNik7D98= =7WxN -----END PGP SIGNATURE----- --cRaUJD2LVDPBOjQoi2NvdN1f4ScRFn41I--