From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: ./pre-inst-env guix build dangerous inside an environment? Date: Tue, 10 Sep 2019 16:37:03 +0200 Message-ID: <87a7bcqkts.fsf@elephly.net> References: <20190910135802.lorsnzuaofjxifwy@wz.localdomain> 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]:52625) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7hGe-0001pT-4B for help-guix@gnu.org; Tue, 10 Sep 2019 10:37:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7hGd-0001aa-0x for help-guix@gnu.org; Tue, 10 Sep 2019 10:37:15 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21324) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i7hGc-0001ZP-JL for help-guix@gnu.org; Tue, 10 Sep 2019 10:37:14 -0400 In-reply-to: <20190910135802.lorsnzuaofjxifwy@wz.localdomain> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Wiktor =?utf-8?Q?=C5=BBelazny?= Cc: help-guix@gnu.org Hi Wiktor, > While developing my first package definition to be contributed to GNU > Guix, I followed 14.1 (=E2=80=9EBuilding from Git=E2=80=9D) and 14.2 (=E2= =80=9ERunning > Guix Before It Is Installed=E2=80=9D) of the manual. > > 14.1 suggests using a Guix environment via `guix environment guix`. I > thought it would be even better to do `guix environment --pure guix`, > and thus obtain some higher level of isolation. How did you configure Guix? This sounds like perhaps you ran =E2=80=9C./configure=E2=80=9D without =E2=80=9C--localstatedir=3D/var=E2=80= =9D, so that Guix would be using a different location for its database and thus consider existing stuff in /gnu to be invalid. This is not a problem with using an environment. The problem is with using a Guix that is misconfigured so that it considers /gnu to be =E2=80=9Cpolluted=E2=80=9D and cleans it up according to the fresh database= that is found at the default localstatedir (which is not /var). -- Ricardo