From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KOuoFtC/el9zXgAA0tVLHw (envelope-from ) for ; Mon, 05 Oct 2020 06:40:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qPd1EtC/el+vSwAAB5/wlQ (envelope-from ) for ; Mon, 05 Oct 2020 06:40:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 78E8B940237 for ; Mon, 5 Oct 2020 06:40:15 +0000 (UTC) Received: from localhost ([::1]:54372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPKAQ-0001gK-7C for larch@yhetil.org; Mon, 05 Oct 2020 02:40:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPKAE-0001fV-Dj for bug-guix@gnu.org; Mon, 05 Oct 2020 02:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36000) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPKAE-0002ce-4j for bug-guix@gnu.org; Mon, 05 Oct 2020 02:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPKAE-0003s8-1a for bug-guix@gnu.org; Mon, 05 Oct 2020 02:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43446: Qt Apps cant make use of qtwayland due to QT_PLUGIN_PATH '= wrapping Resent-From: Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 05 Oct 2020 06:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43446 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Received: via spool by 43446-submit@debbugs.gnu.org id=B43446.160187998714859 (code B ref 43446); Mon, 05 Oct 2020 06:40:01 +0000 Received: (at 43446) by debbugs.gnu.org; 5 Oct 2020 06:39:47 +0000 Received: from localhost ([127.0.0.1]:47546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPK9y-0003ra-OD for submit@debbugs.gnu.org; Mon, 05 Oct 2020 02:39:46 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]:40458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPK9w-0003rN-Sr for 43446@debbugs.gnu.org; Mon, 05 Oct 2020 02:39:45 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4C4WDB4JwtzQkjT; Mon, 5 Oct 2020 08:39:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1601879976; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rPSs5zXP8u/SHoEnu+wvUDueVne6lwOLDQ7WclAE4Ro=; b=VYGG9Nb7lnKyZb9lViIFTUriXao8LgPntHLwqmfzbtXqygJG5RqFMCTex6YNnMvwUj31W5 1ShjJnFnrlsMN6RohSzElRLljXfjmgGl6jAZADFxhIamkZ6iQn0e9bB66PRkvOLN+kSVN2 u9v5ANbG2nuxQqoQ386YQK3cSmfIcd8TMzgBgLI6fcO//KmkDc2+o7GyXmTV2uuANH8G/+ YBC8q+tf1/1bEyQvnnTBvvv6LhTBxysUbPmBLvEI95pNs38pxQ+joIbPiCRUZG24AVy0Eg i7vBSPPLGvpyrNjr7aGvSwzTGv9JWSoOTd5VxnXB6zgTWKjJzc54KwP0LZL1Dg== Received: from smtp2.mailbox.org ([80.241.60.241]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id bIuTnorLHNGK; Mon, 5 Oct 2020 08:39:35 +0200 (CEST) References: <650d1848-7dc8-2063-265c-1a965a1dd5ee@brendan.scot> <87mu1217s3.fsf@elephly.net> From: Brendan Tildesley Message-ID: <400a2e9e-4d0a-75b5-8288-0e07d515c139@brendan.scot> Date: Mon, 5 Oct 2020 17:39:28 +1100 MIME-Version: 1.0 In-Reply-To: <87mu1217s3.fsf@elephly.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-MBO-SPAM-Probability: X-Rspamd-Score: -5.25 / 15.00 / 15.00 X-Rspamd-Queue-Id: 7E19C1696 X-Rspamd-UID: 65ec3a X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 43446@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=brendan.scot header.s=MBO0001 header.b=VYGG9Nb7; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: tz0JqDetjkuC On 4/10/20 10:43 pm, Ricardo Wurmus wrote: > Brendan Tildesley writes: > >> qt-build-system wraps variables such as QT_PLUGIN_PATH with '= >> instead of prefix, so when qtwayland is installed in a profile or >> included in the environment, the application fails to see it. Programs >> run with export QT_QPA_PLATFORM=wayland-egl will fail to launch. >> >> We could: >> >> 1. Use 'prefix so that the parent environment's variables are appended >> and users have to manually install qtwayland them selves. >> 2. Include qtwayland as an input to every qt package somehow. Can the >> build system do that? Considering that Wayland seems to be the >> future, I feel that Qt GUI applications should support it by >> default. I mean, wayland is in the closure of qtbase anyway. >> 3. Both? Why is '= used anyway? > I can’t say why the Qt build system does this, but in other cases we > know that 'prefix causes problems because the application may end up > loading incompatible binaries leading to a crash. That’s especially the > case on foreign distros, e.g. when the Guix-installed graphical > application loads a plugin from the system’s XDG_* directories. > Thanks for pointing that out. But, currently a Guix Qt program is unable to see plugins available in the environment/profile even if the variable is set because the wrapper just deletes that in its local environment. It can only see what's in it's inputs. How else can that be fixed? cat `which nheko`|grep QT; export QT_PLUGIN_PATH="/gnu/store/swqnld90m4gmmc1qaf4lg1psvf6q0rr0-qttools-5.14.2/lib/qt5/plugins:/gnu/store/j0b10r3djln34avx4qxh1kxzg70fn04r-qtbase-5.14.2/lib/qt5/plugins:/gnu/store/lh2yq7dlw3cfaf613h787drpy6f146n3-qtdeclarative-5.14.2/lib/qt5/plugins:/gnu/store/cz6lfbphrdqvgrbhgdq0hd7a50015i5h-qtmultimedia-5.14.2/lib/qt5/plugins:/gnu/store/r4h7w3zw02nc33bi7bjlqbl9b8kilh9r-qtsvg-5.14.2/lib/qt5/plugins"