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 6H5HELRsWmAPWAAA0tVLHw (envelope-from ) for ; Tue, 23 Mar 2021 22:33:24 +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 yNQaDLRsWmAobgAA1q6Kng (envelope-from ) for ; Tue, 23 Mar 2021 22:33:24 +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 A83F0ED0D for ; Tue, 23 Mar 2021 23:33:23 +0100 (CET) Received: from localhost ([::1]:42660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOpaU-0000GQ-RA for larch@yhetil.org; Tue, 23 Mar 2021 18:33:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOpTD-0004sX-IO for guix-devel@gnu.org; Tue, 23 Mar 2021 18:25:52 -0400 Received: from mx1.riseup.net ([198.252.153.129]:43632) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOpTA-000716-Ad for guix-devel@gnu.org; Tue, 23 Mar 2021 18:25:51 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4F4mCq4CclzDqgH for ; Tue, 23 Mar 2021 15:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1616538343; bh=izQBvxuXfZgh5OQc764RoMDbIfh640lCHZB/H78wd88=; h=From:To:Subject:Date:From; b=lsyYA2YVTMo5yEylkUx7trkEzr2rKoygcMdKiwQY/kZWNDgclema2mu2fXdGi0wGj 81ngXpLdjVcsAigSHWJdcNajV71F5JK3e1L55We5lCsPr/60PpJjxP8PD3zyC+qRDk AE4omtBMRoSRJv7QmW0GzvO4sjCRHOhAqUoLMlEg= X-Riseup-User-ID: 60F87D47EB3C0A2569C31A29742B2719A668D87D08765F79A6B19652725A0F96 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4F4mCp6Tmcz5wFH for ; Tue, 23 Mar 2021 15:25:42 -0700 (PDT) From: c4t0 To: guix-devel@gnu.org Subject: guix environment guix -pure can't locate lesspipe Date: Tue, 23 Mar 2021 19:25:38 -0300 Message-ID: <87r1k57bj1.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=198.252.153.129; envelope-from=c4t0@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 23 Mar 2021 18:26:34 -0400 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=1616538803; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=izQBvxuXfZgh5OQc764RoMDbIfh640lCHZB/H78wd88=; b=Fr6cbj/Flwn4VsgL6e2XIO2Ow0TjGRqhZdUd1AuxxK59Ee8bFjHL+u+qQcIqXUSvRHxkh+ hbw+WMmUzLG8FYH0GZd9/nll4auqVAgH4RvEsrLN9gGf800rJjjF8IrKsQu5aKxzBMrpis efCfEEjMgMhNYz5bqtNwFeQtAiUAq8xbgbaM3Nhsi6NpIlRy7r77e1qL5m68fnjykolo9L 8tttr4ZTO3d6rLF00FAVllQ8uBvJaeYhlmIMhOCsYcmfEA0yAGDnQVlHhplaUse4qSbNFf v7bdS8ECORQQg2n29aBiNvr3JYifso9PA+P/tg6YYanhG8wc8NsZzY+MbuIbbg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616538803; a=rsa-sha256; cv=none; b=fYMS0ajTUOEm1lzbjwIS1Y0JxHR+XIFkmyiXoDY54CG80Dfspnzauz8I/swEp9GGynHEwV S3bDM96u5/SqmctwhLCIAG0s8wexy0zil5FjXmrKCLhUqW7lURz13xK3TKSUepHNabz7UU Jd58HdRpzGPqhiOkbQT8s3PzCO1Ory8Z9L7MhLYYvxDlJnsv3RnlOFFwKEeUFyzILMgE4J JKOMwThDkRA3WkIAjsQCgjnNblKcemZYYzxUOdK5zEcRxDienbT5hkEhbK7/dZcoShxzhq gAYvjPf+iiKByN4khcgCg4hbD7X79dqp4s2zCUW22DzQOhD3QOemk9aud+esnQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=lsyYA2YV; dmarc=pass (policy=none) header.from=riseup.net; 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=riseup.net header.s=squak header.b=lsyYA2YV; dmarc=pass (policy=none) header.from=riseup.net; 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: A83F0ED0D X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: T08NX2NLFiTW Hi, I'm having trouble importing a package from hackage, so I tried to debug the import source code. 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. lesspipe: command not found 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: ./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 (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 ./pre-inst-env guix-daemon & and ./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... I can't pass --build-users-group=guixbuild because it doesn't exist inside the container. And besides more that one daemon in the same store shurely produces nasty race conditions. 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. 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. or we have a problem with non containerized environment for guix development. Any ideas what might be the problem? or there isn't any need even to start a guix environment... (do not think so) COD