Ludovic Courtès <ludo@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 29 Jan 2024 15:01:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 29 10:01:37 2024 Received: from localhost ([127.0.0.1]:33216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rUT8j-00017o-2k for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 10:01:37 -0500 Received: from lists.gnu.org ([2001:470:142::17]:49040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludovic.courtes@HIDDEN>) id 1rUT8h-00017a-Mu for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 10:01:36 -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 <ludovic.courtes@HIDDEN>) id 1rUT8T-00085O-Ud for bug-guix@HIDDEN; Mon, 29 Jan 2024 10:01:21 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludovic.courtes@HIDDEN>) id 1rUT8R-0003WE-Oy for bug-guix@HIDDEN; Mon, 29 Jan 2024 10:01:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=lNRMxvjIKM/nU1IWm029P66xDGHimyX8BOVnA2iippY=; b=GIzTGFDMSviCAj/n22qoFRa7feCwFLnVuQMVCrrmGO+FRY7Ge7goGBsM Sn7QXuppmrh82sw1gj5ZGVGTJx/8AurDEtLtxRQofrySXAC0q3zgjGSyD AtfCynacz5xiU0Y/9wm1SgTiAr4mxGveFdaD90/dvByaRzo/avsMKAHmh o=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@HIDDEN; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.05,227,1701126000"; d="scan'208";a="149201578" Received: from unknown (HELO ribbon) ([193.50.110.61]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2024 16:01:14 +0100 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludovic.courtes@HIDDEN> To: bug-guix@HIDDEN Subject: Channel dependencies should be propagated X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: =?utf-8?Q?D=C3=A9cadi?= 10 =?utf-8?Q?Pluvi=C3=B4se?= an 232 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de la =?utf-8?Q?Cogn=C3=A9e?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 29 Jan 2024 16:01:14 +0100 Message-ID: <878r48p4jp.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.83; envelope-from=ludovic.courtes@HIDDEN; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) 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: -1.0 (-) Hello! With channels flourishing, we found a bug that=E2=80=99s always been there. When channel C depends on B, which depends on A, in general you need both A and B to be present in the build environment of C (the derivation that compiles C when you run =E2=80=98pull=E2=80=99 or =E2=80=98time-machin= e=E2=80=99) because potentially B is going to load modules from A. However, currently only B is present in C=E2=80=99s environment. To illustrate that, the script below creates three such channels. Right now it fails like this: --8<---------------cut here---------------start------------->8--- building /gnu/store/2pnfkl9l6lsndsgk4qg7rq4wjh2iisj0-my-channel-c.drv... |builder for `/gnu/store/2pnfkl9l6lsndsgk4qg7rq4wjh2iisj0-my-channel-c.drv'= failed to produce output path `/gnu/store/lix9sz9g2x2ixr3dsyrbnxhxfcqn41l7= -my-channel-c' build of /gnu/store/2pnfkl9l6lsndsgk4qg7rq4wjh2iisj0-my-channel-c.drv failed View build log at '/var/log/guix/drvs/2p/nfkl9l6lsndsgk4qg7rq4wjh2iisj0-my-= channel-c.drv.gz'. cannot build derivation `/gnu/store/alh2yy1258206zki24z9nzi1zwrggd4d-profil= e.drv': 1 dependencies couldn't be built guix time-machine: error: build of `/gnu/store/alh2yy1258206zki24z9nzi1zwrg= gd4d-profile.drv' failed $ zcat /var/log/guix/drvs/2p/nfkl9l6lsndsgk4qg7rq4wjh2iisj0-my-channel-c.dr= v.gz (repl-version 0 1 1) (exception misc-error (value #f) (value "no code for module ~S") (value ((m= y-channel-a))) (value #f)) --8<---------------cut here---------------end--------------->8--- Here=E2=80=99s the script: --8<---------------cut here---------------start------------->8--- #!/bin/sh set -ex mkdir a echo '(define-module (my-channel-a))' > a/my-channel-a.scm (cd a; git init; git add .; git commit -m init) mkdir b cat > b/my-channel-b.scm <<EOF (define-module (my-channel-b) #:use-module (my-channel-a)) EOF cat > b/.guix-channel <<EOF (channel (version 0) (dependencies (channel (name my-channel-a) (url "$PWD/a")))) EOF (cd b; git init; git add .; git commit -m init) mkdir c cat > c/my-channel-c.scm <<EOF (define-module (my-channel-c) #:use-module (my-channel-b)) EOF cat > c/.guix-channel <<EOF (channel (version 0) (dependencies (channel (name my-channel-b) (url "$PWD/b")))) EOF (cd c; git init; git add .; git commit -m init) cat > "channels.scm" <<EOF (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (commit "65dc2d40cb113382fb98796f1d04099f28cab355") (introduction (make-channel-introduction "9edb3f66fd807b096b48283debdcddccfea34bad" (openpgp-fingerprint "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) (channel (name 'my-channel-c) (url "$PWD/c"))) EOF exec guix time-machine -C channels.scm -- describe --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99.
Ludovic Courtès <ludovic.courtes@HIDDEN>
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#68797
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.