From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kLYSGiOKN2FVDwAAgWs5BA (envelope-from ) for ; Tue, 07 Sep 2021 17:49:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oHmUFSOKN2FdXgAAB5/wlQ (envelope-from ) for ; Tue, 07 Sep 2021 15:49:55 +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 0DF4486BB for ; Tue, 7 Sep 2021 17:49:55 +0200 (CEST) Received: from localhost ([::1]:51682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNdMA-0005JK-6W for larch@yhetil.org; Tue, 07 Sep 2021 11:49:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNdK2-0001YY-DS for help-guix@gnu.org; Tue, 07 Sep 2021 11:47:42 -0400 Received: from mail-qv1-xf2e.google.com ([2607:f8b0:4864:20::f2e]:46955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNdK1-0008Ck-0a for help-guix@gnu.org; Tue, 07 Sep 2021 11:47:42 -0400 Received: by mail-qv1-xf2e.google.com with SMTP id s16so6033697qvt.13 for ; Tue, 07 Sep 2021 08:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WmgoSjlX9GHOeMc5S1QfEma0/kh9I0wBJpxPPRGsGbY=; b=aZID/cANpHR5q0WGOEf5P0WM6rTku+b4d4oRjdgS+9IYqGKSrDLSCqOjJMME6HZLgz yRBa6hlJr7shLxzx+r3wAKM+wmus6SJ/x4u4/Ga/Vu6OuVi76JCVNkcC1rTFwN+NYQXB K5izBEehdouuYNv/vLIEVAfBbM/UIu6AMb1eiZl2ji61R/7eY0/k7NN5spebLhL18rih DJBs0JdLWlm+MjFm0csBYNQBf1neeUvTWAlu2AHM99hDYkrhr22bYmspF503UXoUXkX+ p5W9c2mEN3f9iKJtDeeYak3vpm6Y2AuXWrMvAlgebhNX7OCh4IAkAqe6vjaZRhh1XjeP Xx1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WmgoSjlX9GHOeMc5S1QfEma0/kh9I0wBJpxPPRGsGbY=; b=k+a6vxmBoK8/EO1AS5cj5Zwd608C9liv51ZOxXE7oykxKM8utU5yd4Uxm/Is6/BGLR 70i0/F/am3PjtwXUr+A1fICU1Gg/9IrjbOuvZTf0/isQNpceWU2B96NKs7eh6XdWusHi D/NVb0Avv/+mY0vOOlR54OG83AZKM5a3xTJzNjDuXvtA7uemyFsV97PqOtWH1fo+vETN i3Qu2A74LEGJlfhwvj3HOifyKPuNaTkwfyum6YdRanhSldYjvq6jciH3QvG+k3i35215 govRnufQtd4HMLMfSn1qNkLfOZ0rozh9iiYvy7bfL3XQDhzlU0CDQB+9KOlB2p6i5MnN v5/g== X-Gm-Message-State: AOAM532GjgGe6pEtK5CzwlvZIhzEgpSOf4P2IIS6Woop+84wXqBRnxnH a5+t4eeyTmGrqYIgbjbpMqbyrzg51YgITVQOcdFM8dglYUc= X-Google-Smtp-Source: ABdhPJzFxoLp9C2B3w0yF9884qxrqtW6BgnGv5j0kOKS8yFOiGHTHt8Py2IwT40ahF9rDa+GYF892DR3tPQOD03cu94= X-Received: by 2002:ad4:498d:: with SMTP id t13mr15392080qvx.55.1631029659722; Tue, 07 Sep 2021 08:47:39 -0700 (PDT) MIME-Version: 1.0 References: <20210906125732.GB27512@gac.attlocal.net> In-Reply-To: <20210906125732.GB27512@gac.attlocal.net> From: zimoun Date: Tue, 7 Sep 2021 17:47:28 +0200 Message-ID: Subject: Re: Running make inside a Guix Container From Outside To: jgart Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::f2e; envelope-from=zimon.toutoune@gmail.com; helo=mail-qv1-xf2e.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631029795; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=WmgoSjlX9GHOeMc5S1QfEma0/kh9I0wBJpxPPRGsGbY=; b=QqKT02SLZ5aOmR1il9hjVpbCLKtKrayIYwBKfOlwgZdvS4MpSjovtVmp3K34gTyEMSFuIz 7f9L7qugR3zMwmmRSr92OePeWJXW38Y1RPg+lRTJI/2PLp9OXTMSCzZs0PyC63uJ5Slw0d vh/dOg8a6deegAgdb70isNzCtZUazgTQCnkSysBqDDM4D1nm6GCqhbVKKb2CKdoalRAjt7 IJu7VHVlkr5n01K3C0S7DdXWpE6eL3al9rz+QZGNpvfzu63UVKmy8WUK9h6DUPA87lMqlA wj2uRZ7c0S/pSUNnbEbeBv6QQCx2eoJB7MfpbYTyebFrOPKmkm4lvLCkHgvPOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631029795; a=rsa-sha256; cv=none; b=JH+WgBFoM5DcKfWCrB5/DxaCOv+ySzGV3rtLihvGoQpvShRQ8dl+sVlFVXG0IEE97za28+ G1MWj+qAtxx0tdEKLhVtQuZXBQrDgVdXJtESkLgzmbOk0q1bRcvHFGURPFnv1txVTAxQ1J +D/RNuBQdwQVUsPVyZmp3sP3lKp9CXrYVtsoZDbFaiOEq/NCFFBuD2txLaGMqdC3vTMAEd krO3ocSnelJIBe0byNvhRQAVu75rl+UClKGsSbdRETowp+D+KC44jzUopLFcCVqYnKqapW QCMlammVoNUz5ngR5TpqaUkymBAj0LSO7b8g/dmMRAYTCYkJbPfsV2fYwsLk6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="aZID/cAN"; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="aZID/cAN"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 0DF4486BB X-Spam-Score: -1.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: sphHb0Up6lQc Hi, On Mon, 6 Sept 2021 at 18:58, jgart wrote: > ``` > #!/bin/sh > git clone https://git.savannah.gnu.org/git/guix.git guix-3000 > cd guix-3000 > guix environment guix --container > ./bootstrap > ./configure --local-statedir=/var > time make > exit > print "ready for hacking" > ``` Instead, I would run something like --8<---------------cut here---------------start------------->8--- #!/bin/sh guix environment -C guix --ad-hoc bash -- bash -c \ './bootstrap && ./configure --localstatedir=/var && time make' guix environment -C guix --8<---------------cut here---------------end--------------->8--- Well, this creates 2 temporary profiles. If you want to save some time, you can also pass '--ad-hoc bash' to the second environment even if you do not you it. Note that instead of '--ad-hoc', I would use '-m manifest.scm' containing all the useful tools (Git, Emacs, etc.) > Am I misusing `guix container exec`? I do not know, I do not really use "guix container". :-) Well, I consider such subcommand as experimental. ;-) Hope that helps, simon