GNU bug report logs - #59771
Conda 22.9.0 needs "sudo" as dependency

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Hugo Buddelmeijer <hugo@HIDDEN>; dated Fri, 2 Dec 2022 11:37:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 59771 <at> debbugs.gnu.org:


Received: (at 59771) by debbugs.gnu.org; 2 Dec 2022 11:54:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 02 06:54:02 2022
Received: from localhost ([127.0.0.1]:46265 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p14cE-0008LY-3z
	for submit <at> debbugs.gnu.org; Fri, 02 Dec 2022 06:54:02 -0500
Received: from tobias.gr ([80.241.217.52]:52772)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1p14cB-0008L9-7w
 for 59771 <at> debbugs.gnu.org; Fri, 02 Dec 2022 06:54:00 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=URJi/3dRkzNUF
 SvE+WCunnjC/AMZNFaY0pa8sGoH2fA=;
 h=in-reply-to:date:subject:cc:to:
 from:references; d=tobias.gr; b=FAhTSsRb+SOQmbMifx+jgyOWg62bpgPCEF0GVK
 pEVXIrkblRnPw0gwzY7gf5fljAeZmFUGu1089VKuFfK+sX5+vStzYEZ/GOYPMBuedIfjPl
 wWE7+gsThYFblUZvX7/PVAKuk3/7n2xa68ZtCzBR3l/ZdPhdm4ol/iDoYq30LBWsro7WKL
 H54ySCTSCbObtmuG7leBPhb3moZutQu2dMIPMr6FtsMdyJ8V4K9V7fPuoU74Nf8YRd3bFx
 FCHCp5dkYd+ZVJI8fRKqR70Vaze3axPWxgojVX/4HqaQ8O5tT1v4bG2SPdDGvX+FIYm4sB
 vT9H5WoO+o3r5P0G7u1Qp9Sw==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 9c892eda
 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); 
 Fri, 2 Dec 2022 11:53:55 +0000 (UTC)
References: <CA+Jv8O2oMwhj2zotckKQhqrTqqm5yUebU4udX81GATx3-koyHg@HIDDEN>
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: Hugo Buddelmeijer <hugo@HIDDEN>
Subject: Re: bug#59771: Conda 22.9.0 needs "sudo" as dependency
Date: Fri, 02 Dec 2022 12:47:22 +0100
In-reply-to: <CA+Jv8O2oMwhj2zotckKQhqrTqqm5yUebU4udX81GATx3-koyHg@HIDDEN>
BIMI-Selector: v=BIMI1; s=default;
Message-ID: <87359y3tqn.fsf@nckx>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 59771
Cc: bug-guix@HIDDEN, 59771 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Hi Hugo,

Hugo Buddelmeijer =E5=86=99=E9=81=93=EF=BC=9A
> As for why sudo is needed, I don't know. (Not sure I want to=20
> know.)

Indeed, this sounds like something to report and fix upstream.

> $ guix shell -C conda sudo

Won't work, because sudo needs to be setuid =E2=80=94 that is, provided by=
=20
the OS.

On Guix Systems, that means /run/setuid-programs/sudo.  It cannot=20
be run from the store, where setuid programmes are not allowed.

I tried --expose'ing /run/setuid-programs, but then sudo fails to=20
find libsudo_util.so.0.  I didn't test further but don't expect=20
that to suffice: sudo simply makes too many assumptions about the=20
system, because of the special job it needs to do.

While it would be nice to figure out how to provide=20
setuid-programs to a containers, Conda's pointless use of sudo is=20
the bug here.

Kind regards,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCY4nnsA0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW15bBkBAMzzB4Y9lO1Kd5qSaJnAG7JfZLYZc358m6LL2Et9
ZWJUAQDoo3N9sV5aA64FS7jswU5j7VqbHXNgahVTpRlKIqXOBw==
=6HLi
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#59771; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Dec 2022 11:54:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 02 06:54:03 2022
Received: from localhost ([127.0.0.1]:46268 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p14cF-0008Lt-DR
	for submit <at> debbugs.gnu.org; Fri, 02 Dec 2022 06:54:03 -0500
Received: from lists.gnu.org ([209.51.188.17]:38946)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1p14cE-0008Ln-Il
 for submit <at> debbugs.gnu.org; Fri, 02 Dec 2022 06:54:02 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1p14cE-0000pG-Bf
 for bug-guix@HIDDEN; Fri, 02 Dec 2022 06:54:02 -0500
Received: from tobias.gr ([2a02:c205:2020:6054::1])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1p14cC-0006hj-IO
 for bug-guix@HIDDEN; Fri, 02 Dec 2022 06:54:02 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=URJi/3dRkzNUF
 SvE+WCunnjC/AMZNFaY0pa8sGoH2fA=;
 h=in-reply-to:date:subject:cc:to:
 from:references; d=tobias.gr; b=FAhTSsRb+SOQmbMifx+jgyOWg62bpgPCEF0GVK
 pEVXIrkblRnPw0gwzY7gf5fljAeZmFUGu1089VKuFfK+sX5+vStzYEZ/GOYPMBuedIfjPl
 wWE7+gsThYFblUZvX7/PVAKuk3/7n2xa68ZtCzBR3l/ZdPhdm4ol/iDoYq30LBWsro7WKL
 H54ySCTSCbObtmuG7leBPhb3moZutQu2dMIPMr6FtsMdyJ8V4K9V7fPuoU74Nf8YRd3bFx
 FCHCp5dkYd+ZVJI8fRKqR70Vaze3axPWxgojVX/4HqaQ8O5tT1v4bG2SPdDGvX+FIYm4sB
 vT9H5WoO+o3r5P0G7u1Qp9Sw==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 9c892eda
 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); 
 Fri, 2 Dec 2022 11:53:55 +0000 (UTC)
References: <CA+Jv8O2oMwhj2zotckKQhqrTqqm5yUebU4udX81GATx3-koyHg@HIDDEN>
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: Hugo Buddelmeijer <hugo@HIDDEN>
Subject: Re: bug#59771: Conda 22.9.0 needs "sudo" as dependency
Date: Fri, 02 Dec 2022 12:47:22 +0100
In-reply-to: <CA+Jv8O2oMwhj2zotckKQhqrTqqm5yUebU4udX81GATx3-koyHg@HIDDEN>
BIMI-Selector: v=BIMI1; s=default;
Message-ID: <87359y3tqn.fsf@nckx>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@HIDDEN;
 helo=tobias.gr
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, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
Cc: bug-guix@HIDDEN, 59771 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Hi Hugo,

Hugo Buddelmeijer =E5=86=99=E9=81=93=EF=BC=9A
> As for why sudo is needed, I don't know. (Not sure I want to=20
> know.)

Indeed, this sounds like something to report and fix upstream.

> $ guix shell -C conda sudo

Won't work, because sudo needs to be setuid =E2=80=94 that is, provided by=
=20
the OS.

On Guix Systems, that means /run/setuid-programs/sudo.  It cannot=20
be run from the store, where setuid programmes are not allowed.

I tried --expose'ing /run/setuid-programs, but then sudo fails to=20
find libsudo_util.so.0.  I didn't test further but don't expect=20
that to suffice: sudo simply makes too many assumptions about the=20
system, because of the special job it needs to do.

While it would be nice to figure out how to provide=20
setuid-programs to a containers, Conda's pointless use of sudo is=20
the bug here.

Kind regards,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCY4nnsA0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW15bBkBAMzzB4Y9lO1Kd5qSaJnAG7JfZLYZc358m6LL2Et9
ZWJUAQDoo3N9sV5aA64FS7jswU5j7VqbHXNgahVTpRlKIqXOBw==
=6HLi
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#59771; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Dec 2022 11:36:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 02 06:36:48 2022
Received: from localhost ([127.0.0.1]:46172 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p14LU-0008BM-TJ
	for submit <at> debbugs.gnu.org; Fri, 02 Dec 2022 06:36:48 -0500
Received: from lists.gnu.org ([209.51.188.17]:41756)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <blackshift@HIDDEN>) id 1p14LP-0008BE-N2
 for submit <at> debbugs.gnu.org; Fri, 02 Dec 2022 06:36:43 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <blackshift@HIDDEN>)
 id 1p14LP-0004jY-FC
 for bug-guix@HIDDEN; Fri, 02 Dec 2022 06:36:39 -0500
Received: from mail-ej1-f45.google.com ([209.85.218.45])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <blackshift@HIDDEN>)
 id 1p14LN-0000b8-AG
 for bug-guix@HIDDEN; Fri, 02 Dec 2022 06:36:39 -0500
Received: by mail-ej1-f45.google.com with SMTP id n20so10998752ejh.0
 for <bug-guix@HIDDEN>; Fri, 02 Dec 2022 03:36:36 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=PZ5zz5BL4EOAOHDtd7GAR+QRd6aZGw3Fmw6URNNVxSM=;
 b=jwWw4AUIj3GR+Or1DcpT4az6BD7j9gjolV081J8eDm/ppluClap+lnpUt9y0Iv6pPl
 o5yWLTpg30Uux2haESleRMtA632KXvxB1ClEXO+JpDMOsNlbokxwbhU7GCBxcySdL/AO
 tYgO3fYrUzeiEie/ZEDjVw4Q3B+/tYPtBjUKAkojq1MveXszYrjJbI0Y6RCpnyM7S9Zy
 NPWTjoISZD2aHKzZjesIp39IMe4hVDoYHoGwJP209SIU//c3Q0RRkpYg8sKFJMBFEzwZ
 V9G8HO5qaNY/yG/VZL44Q/YrdrXeMFFC1cduS3g8sod0J6fThUEOaZGInZ9168ZPom2W
 ZAMQ==
X-Gm-Message-State: ANoB5pnWJ0QFeVElIZRwhoTZ93upTNNK4DMhm8Kh9KB6G4SgqAFHo11i
 h4C9QGWoFXGFtb3bOHcUbBCjRSfkdo8EbwUvVyKhRdlFRuvjfw==
X-Google-Smtp-Source: AA0mqf6Eq8n9Ju2TVgn1pV0LlKwIky/9CRCzPotH+8QQamCsULfCw0iMni1EHuOv1zrzgQsXyy/NZPJtqo1c6YPnpp4=
X-Received: by 2002:a17:906:b241:b0:7bc:1f2c:41b5 with SMTP id
 ce1-20020a170906b24100b007bc1f2c41b5mr30934254ejb.463.1669980994817; Fri, 02
 Dec 2022 03:36:34 -0800 (PST)
MIME-Version: 1.0
From: Hugo Buddelmeijer <hugo@HIDDEN>
Date: Fri, 2 Dec 2022 12:36:23 +0100
Message-ID: <CA+Jv8O2oMwhj2zotckKQhqrTqqm5yUebU4udX81GATx3-koyHg@HIDDEN>
Subject: Conda 22.9.0 needs "sudo" as dependency
To: bug-guix@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000fa52b805eed6bf39"
Received-SPF: pass client-ip=209.85.218.45; envelope-from=blackshift@HIDDEN;
 helo=mail-ej1-f45.google.com
X-Spam_score_int: -15
X-Spam_score: -1.6
X-Spam_bar: -
X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9,
 FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
 HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

--000000000000fa52b805eed6bf39
Content-Type: text/plain; charset="UTF-8"

Hi all,

Conda 22.9.0 needs "sudo" as a dependency:

$ guix shell -C conda

[env]$ conda --version
conda 22.9.0

[env]$ conda init bash
[...]
    Traceback (most recent call last):
[...]
      File
"/gnu/store/lvip6h5pamjwmvnkwg60sjb63ph8698k-python-3.9.9/lib/python3.9/subprocess.py",
line 18
21, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: 'sudo'


The problem goes away when sudo is added to the guix shell command. This
results in another error though; I'll report another bug for that.

As for why sudo is needed, I don't know. (Not sure I want to know.)

Background: if conda works well in guix, then we can get more conda users
and package maintainers on board with guix.

Greetings,
Hugo

--000000000000fa52b805eed6bf39
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi all,</div><div><br></div><div>Conda 22.9.0 needs &=
quot;sudo&quot; as a dependency:</div><div><br></div><div>$ guix shell -C c=
onda</div><div><br></div><div>[env]$ conda --version<br>conda 22.9.0</div><=
div><br></div><div>[env]$ conda init bash<br></div><div>[...]<br></div><div=
>=C2=A0 =C2=A0 Traceback (most recent call last):</div><div>[...]<br></div>=
<div>=C2=A0 =C2=A0 =C2=A0 File &quot;/gnu/store/lvip6h5pamjwmvnkwg60sjb63ph=
8698k-python-3.9.9/lib/python3.9/subprocess.py&quot;, line 18<br>21, in _ex=
ecute_child<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 raise child_exception_type(errno=
_num, err_msg, err_filename)<br>=C2=A0 =C2=A0 FileNotFoundError: [Errno 2] =
No such file or directory: &#39;sudo&#39;</div><div><br></div><div><br></di=
v><div>The problem goes away when sudo is added to the guix shell command. =
This results in another error though; I&#39;ll report another bug for that.=
</div><div><br></div><div>As for why sudo is needed, I don&#39;t know. (Not=
 sure I want to know.)<br></div><div><br></div><div>Background: if conda wo=
rks well in guix, then we can get more conda users and package maintainers =
on board with guix.<br></div><div><br></div><div>Greetings,</div><div>Hugo<=
/div><div><br></div><div><br></div></div>

--000000000000fa52b805eed6bf39--




Acknowledgement sent to Hugo Buddelmeijer <hugo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#59771; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 2 Dec 2022 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.