From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2CoDJ4IFRV+YNgAA0tVLHw (envelope-from ) for ; Tue, 25 Aug 2020 12:35:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CIvgIoIFRV9aJwAA1q6Kng (envelope-from ) for ; Tue, 25 Aug 2020 12:35:14 +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 C6F799402CB for ; Tue, 25 Aug 2020 12:35:13 +0000 (UTC) Received: from localhost ([::1]:34388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAYAS-0005tV-L8 for larch@yhetil.org; Tue, 25 Aug 2020 08:35:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAYAI-0005rt-Cf for bug-guix@gnu.org; Tue, 25 Aug 2020 08:35:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49099) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAYAI-0006dm-2x for bug-guix@gnu.org; Tue, 25 Aug 2020 08:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAYAI-0001eE-0U for bug-guix@gnu.org; Tue, 25 Aug 2020 08:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42920: conda 4.8.3 on guix cannot activate environments Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 25 Aug 2020 12:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42920 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Hugo Buddelmeijer X-Debbugs-Original-Cc: bug-guix@gnu.org, 42920@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15983588676266 (code B ref -1); Tue, 25 Aug 2020 12:35:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Aug 2020 12:34:27 +0000 Received: from localhost ([127.0.0.1]:60640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAY9j-0001cz-Ia for submit@debbugs.gnu.org; Tue, 25 Aug 2020 08:34:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:42210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAY9h-0001cl-Dm for submit@debbugs.gnu.org; Tue, 25 Aug 2020 08:34:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAY9h-0005oS-6Y for bug-guix@gnu.org; Tue, 25 Aug 2020 08:34:25 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21188) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kAY9d-0006bB-Rx for bug-guix@gnu.org; Tue, 25 Aug 2020 08:34:24 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1598358858; cv=none; d=zohomail.com; s=zohoarc; b=UaTiRjw764EIs1SQV4kL4uSwOOA+tixbvdzcJPk8OEWwyymHW1DSqCietxtiS/7Ex5iX2uQf5n/Frwebd1J0QKkya1msIyO9HR6IxYVBrM88IfWFAufSKKFkYcNEJHJTVowlfqye/0t2qhxs+OEkiLkYJMCxRwySKaLMTYrp6/E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598358858; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=jv7a5d8OB+bLMi58WLlJZ5WC8HZq5AiNKSNsAfU/rdQ=; b=ldaK/9lEVSiO2eqVAYzna7cTUmJo8XslTOsVSftfG6ONhUvlIENCvM6f5P0gTrhSKb/1VqxgC21OJquoIl4LzWyDsiNqHmOWT3PeeWZOEG7KNHuoaFCJLxSwkPXrRY5V24b1nY03JQO1SLnn50E9TbCyvxxPOiT+EN890ANzDow= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1598358858; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=jv7a5d8OB+bLMi58WLlJZ5WC8HZq5AiNKSNsAfU/rdQ=; b=Y14Lk5Go0qkLBTu1zNPQAI5QQaVuDuDYvd4HXk+AtKOYLNBueqTA943BlrLn4rp9 EgauJ9yqbYzwYo2afx1ebqnsFa1T/e+HYemsJN15vC0Y9cRSZcfk326gc3YphI5yr9D 9sCUFnVm8fxKLJkVWXrNo/mWDituTJAi3NhQKkUM= Received: from localhost (p54ad4c14.dip0.t-ipconnect.de [84.173.76.20]) by mx.zohomail.com with SMTPS id 1598358854650721.6492113191758; Tue, 25 Aug 2020 05:34:14 -0700 (PDT) References: <87blj7x841.fsf@elephly.net> <87364gy7tw.fsf@elephly.net> User-agent: mu4e 1.4.10; emacs 26.3 From: Ricardo Wurmus In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Tue, 25 Aug 2020 14:34:11 +0200 Message-ID: <87imd6x5to.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/25 08:34:19 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 42920@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=elephly.net header.s=zoho header.b=Y14Lk5Go; 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: 1.99 X-TUID: skMzm/wOZ5Fw Hi Hugo, > The problem with the prompt arises from step 4), because 'conda' has bash > as interpreter, and "non-interactive bashes go out of their way to unset > PS1": > https://superuser.com/questions/663069/why-does-subshell-not-inherit-expo= rted-variable-ps1 > https://tldp.org/HOWTO/Bash-Prompt-HOWTO/setps.html Good sleuthing! > So .conda.real never gets the PS1 variable and it disappears. > > I don't really understand why there is a bash function, a conda bash scri= pt > and a .conda-real python script. That=E2=80=99s because we wrap application to ensure that they run with exp= ected environment variables. By default this wrapper is implemented as a Bash script, but we also have =E2=80=9Cwrap-script=E2=80=9D, which turns scripts= using =E2=80=9C#=E2=80=9D as a comment character into polyglottal Guile scripts, setting variables with Guile and then reexecuting themselves with the actual interpreter. Not sure if that would help here. (There also have been reports about =E2=80=9Cwrap-script=E2=80=9D being bug= gy, but I don=E2=80=99t recall any details.) --=20 Ricardo