X-Loop: help-debbugs@HIDDEN Subject: bug#68797: Channel dependencies should be propagated Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludovic.courtes@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Mon, 29 Jan 2024 15:02:02 +0000 Resent-Message-ID: <handler.68797.B.17065404974332 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 68797 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 68797 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guix@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.17065404974332 (code B ref -1); Mon, 29 Jan 2024 15:02:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jan 2024 15:01:37 +0000 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludovic.courtes@HIDDEN> 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,?= 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-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.
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludovic.courtes@HIDDEN> Subject: bug#68797: Acknowledgement (Channel dependencies should be propagated) Message-ID: <handler.68797.B.17065404974332.ack <at> debbugs.gnu.org> References: <878r48p4jp.fsf@HIDDEN> X-Gnu-PR-Message: ack 68797 X-Gnu-PR-Package: guix Reply-To: 68797 <at> debbugs.gnu.org Date: Mon, 29 Jan 2024 15:02:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 68797 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 68797: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68797 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 30 Jan 2024 17:17:57 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 30 12:17:57 2024 Received: from localhost ([127.0.0.1]:36615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rUrkD-0005Cn-7W for submit <at> debbugs.gnu.org; Tue, 30 Jan 2024 12:17:57 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:16210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1rUrkA-0005CM-UO for control <at> debbugs.gnu.org; Tue, 30 Jan 2024 12:17:55 -0500 Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludo@HIDDEN; dmarc=fail (p=none dis=none) d=gnu.org X-IronPort-AV: E=Sophos;i="6.05,230,1701126000"; d="scan'208";a="149464879" Received: from unknown (HELO ribbon) ([193.50.110.61]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2024 18:17:39 +0100 Date: Tue, 30 Jan 2024 18:17:38 +0100 Message-Id: <87eddykafh.fsf@HIDDEN> To: control <at> debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN> Subject: control message for bug #68797 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: control 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: -2.3 (--) severity 68797 important quit
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.