From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: qt-build-system: prefix or suffix env-variables in wrap-program Date: Wed, 11 Dec 2019 09:33:49 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40208) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iexRW-0005Aj-To for guix-devel@gnu.org; Wed, 11 Dec 2019 03:34:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iexRV-0002wU-CR for guix-devel@gnu.org; Wed, 11 Dec 2019 03:33:58 -0500 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:54039) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iexRV-0002rR-2e for guix-devel@gnu.org; Wed, 11 Dec 2019 03:33:57 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 47Xqw135s7z1rfM0 for ; Wed, 11 Dec 2019 09:33:53 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 47Xqw1301yz1rS9s for ; Wed, 11 Dec 2019 09:33:53 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id E5ayw57miP5u for ; Wed, 11 Dec 2019 09:33:52 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-50-235.dynamic.mnet-online.de [188.174.50.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Wed, 11 Dec 2019 09:33:52 +0100 (CET) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id 9DD2460089 for ; Wed, 11 Dec 2019 09:34:46 +0100 (CET) Content-Language: en-US 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.org@gnu.org Sender: "Guix-devel" To: Guix-devel Hi, it came to my mind that currently the qt-build-system wraps the program without passing along any environment variables. Thus e.g. XDG_CONFIG_DIRS will be overwritten, instead of not extended. Furtunatly ((guix build utils) wrap-program) supports prefixing or suffixing an existing variable value. Shall qt-build-system: prefix or suffix existing env-variables? Should it become =C2=A0=C2=A0=C2=A0 export XDG_DATA_DIRS=3D"$XDG_DATA_DIRS${XDG_DATA_DIRS:+:}/gnu/store/=E2=80=A6-ka= te-=E2=80=A6" or =C2=A0=C2=A0=C2=A0 export XDG_DATA_DIRS=3D"/gnu/store/=E2=80=A6-kate-=E2=80=A6${XDG_DATA_DIRS:+:}$X= DG_DATA_DIRS" Currently affected variables are: XDG_DATA_DIRS XDG_CONFIG_DIRS QT_PLUGIN_PATH QML_IMPORT_PATH --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |