From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qEfCEUaCWmDLXwAA0tVLHw (envelope-from ) for ; Wed, 24 Mar 2021 00:05:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aJNgDUaCWmATbwAAbx9fmQ (envelope-from ) for ; Wed, 24 Mar 2021 00:05:26 +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 EA74710111 for ; Wed, 24 Mar 2021 01:05:25 +0100 (CET) Received: from localhost ([::1]:53522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOr1Z-0003Ry-37 for larch@yhetil.org; Tue, 23 Mar 2021 20:05:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOr1E-0003P0-U8 for guix-devel@gnu.org; Tue, 23 Mar 2021 20:05:06 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:34954) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOr19-0003nh-Np for guix-devel@gnu.org; Tue, 23 Mar 2021 20:05:04 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 91df2453; Wed, 24 Mar 2021 00:04:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=z2ZIN03TYT6bWnJ5D8FbolvOC6zZA8VZni0ZoI7l6U4=; b=IWnlgZLpAuJ7 9lYwuqhFGRUXxecqkULmarV5VgMZ2eK/8jcFpkzzq39GEIIXPGweFoYM3Crwu10t 7Jlkrh13eq7Ttj4flqJvHeRQ/LqjHs/0MHBqvZNkrcF9WQ0k/47FnOTxd3uDKVLW Xsef/9ju2W8sZUvNS8y5qc4Ui/2cFrDO4OUl/eT3a+uziNg93swmA6wH1fzUVQwx W5bQgpkBJeWQ3ufDk2/a/ghVM2hZi8fC7EwogVr2rPDQ1Z8J3ZreqZIbukbcN7Bv 84bFNJd4rbOaXvZetz9YkkG3yHSmZFJ+y+HbPwv5BOlaQ2LoppbqNgX5phA5u1dX LczujbUglg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 68337077 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 24 Mar 2021 00:04:52 +0000 (UTC) Date: Tue, 23 Mar 2021 20:04:41 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <87r1k57bj1.fsf@riseup.net> References: <87r1k57bj1.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: guix environment guix -pure can't locate lesspipe To: guix-devel@gnu.org,c4t0 From: Julien Lepiller Message-ID: Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu 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-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list 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+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616544326; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=z2ZIN03TYT6bWnJ5D8FbolvOC6zZA8VZni0ZoI7l6U4=; b=N5LfHvLDXRQb5RR9UaugwQ50TdwQ78CXHC7k5BLRwglx03ubWDeISTeYLMmBU6Exo+thyl GFqzEd19+55uZAKF6iuLnUyPqUMrv6WoSaBbv534k1dZmfldOxYxVbxeE4jIt6Kdy5ancZ bqxkuaKMQEKN4JwOsg2oqPFLhKJ+PCL9owwaZZo9L3RgLZi80Ap7yNZiW8uPJDSa6SFFLO JS7mw62Rhs8oD6GvG6aGBIVr4hPHLU7KZysqkcIE6CYrvYxO8eP2FtQKE/BUiAdcq1AepI Cy2/KJ1raqvOKx7PeU+p1SYF1/IMVlMRt1jyOW/Bnl07etOSFF2RHnGkXhTiqg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616544326; a=rsa-sha256; cv=none; b=rCo0YkmARvHEZAv2ORE+mmEKjyeowhzr57wKM0abKFR6wBahOdqwkWMRiLU905NFO6F4p2 BEseMQKykJCSM2qWM4iW3/FttE2WX5nzdP7h7XDxE1kHoWnYPes66SMKPtVVt4PzMQohoA jkWJ8YJ0rxzvAA0RoGU0BH6VJlXzWU7pzB+gwGXbl/pR+7yvCgH8qpACX5KpezRzj749Mb jvSOwr4rjRmFw1On1ZiNyKgqyRof9gn20MhdLeB6m+MwwONGlfWUoeFPFbqNQ2KxrDSeIG BSoeE6stzMxp0FYpjEKdx3L2Il5jdbctTh2hM5xVCiHsJjFiL6MP1Mge6GuBRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=IWnlgZLp; dmarc=pass (policy=none) header.from=lepiller.eu; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=IWnlgZLp; dmarc=pass (policy=none) header.from=lepiller.eu; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: EA74710111 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: /yuFm3lo3M3Z Le 23 mars 2021 18:25:38 GMT-04:00, c4t0 a =C3=A9crit = : > >Hi, > >I'm having trouble importing a package from hackage, so I tried to >debug >the import source code=2E After cloning guix I found that I can't start a >pure environment: > >guix environment guix --pure --ad-hoc help2man git strace >Command 'lesspipe' is available in the following places > * /bin/lesspipe > * /usr/bin/lesspipe >The command could not be located because '/bin:/usr/bin' is not >included in the PATH environment variable=2E >lesspipe: command not found This is probably because a start file from bash or your shell uses lesspip= e, but it's not available in the environment=2E Something similar happens t= o me on Fedora where it wants to install software that's already there=2E I= simply deny the request to install, as it's not a fatal error=2E > >If I use --container it works: > >$guix environment guix --pure --ad-hoc help2man git strace lesspipe >--container >me@mypc ~/guix/git/guix [env]$ > >but then I have problems connecting with the daemond: >=2E/pre-inst-env guix build hello >guix build: error: failed to connect >to`/usr/local/var/guix/daemon-socket/socket': No such file or directory Here, you probably=2Eforgot to pass --localstatedir as documented in the m= anual=2E If you don't do so, it might result in a broken guix installation! > >(also there isn't any file in my user environment with that name) > >So I have to run guix environment with --network and start one: >$guix environment guix --pure --ad-hoc help2man git strace lesspipe >--container >me@mypc ~/guix/git/guix [env]$ > >and then >=2E/pre-inst-env guix-daemon & >and >=2E/pre-inst-env guix build hello > >it appears to work, but really I don't know if i'm making a mess at >this point=2E=2E=2E I can't pass --build-users-group=3Dguixbuild because = it >doesn't exist inside the container=2E >And besides more that one daemon in the same store shurely produces >nasty race conditions=2E You shouldn't run guix-daemon from the checkout=2E It is not needed=2E Nor= mally, you should be able to share /var/guix inside the container, but the = container itself should not be needed=2E > >I think that running inside a container should be the way >to do it but using the store in read-only mode to avoid installing >stuff >(or maybe that is not a problem since it can be GC later?) or providing >a way to connect with the running daemon=2E > >So i'm asking if the last things that I do are safe, and should be >included in the manual, because it take me a while to figure it out=2E No, they're not safe=2E You might have corrupted guix's database, which mi= ght result in errors down the road=2E I'd suggest that you run guix gc --ve= rify=3Dcontents to make sure your store is alright=2E > >or we have a problem with non containerized environment for guix >development=2E Any ideas what might be the problem? > >or there isn't any need even to start a guix environment=2E=2E=2E (do not >think so) > >COD