From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id DQG2Ejslgl/cfAAA0tVLHw (envelope-from ) for ; Sat, 10 Oct 2020 21:18:51 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oPIYDjslgl+WFAAAbx9fmQ (envelope-from ) for ; Sat, 10 Oct 2020 21:18:51 +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 aspmx2.migadu.com (Postfix) with ESMTPS id C5A5C6804CF for ; Sat, 10 Oct 2020 21:16:15 +0000 (UTC) Received: from localhost ([::1]:38346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRMCu-0001yl-Q7 for larch@yhetil.org; Sat, 10 Oct 2020 17:15:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRMCk-0001xN-QN for bug-guix@gnu.org; Sat, 10 Oct 2020 17:15:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kRMCk-0002VS-EH for bug-guix@gnu.org; Sat, 10 Oct 2020 17:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kRMCk-0005GG-9T for bug-guix@gnu.org; Sat, 10 Oct 2020 17:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43893: [PATCH] maint: update-guix-package: Ensure sources are clean. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 10 Oct 2020 21:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43893 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 43893-submit@debbugs.gnu.org id=B43893.160236446520163 (code B ref 43893); Sat, 10 Oct 2020 21:15:02 +0000 Received: (at 43893) by debbugs.gnu.org; 10 Oct 2020 21:14:25 +0000 Received: from localhost ([127.0.0.1]:38774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRMC8-0005F9-OT for submit@debbugs.gnu.org; Sat, 10 Oct 2020 17:14:25 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:41976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRMC5-0005Ew-Dp for 43893@debbugs.gnu.org; Sat, 10 Oct 2020 17:14:23 -0400 Received: from localhost (80-110-126-103.cgn.dynamic.surfer.at [80.110.126.103]) by dd26836.kasserver.com (Postfix) with ESMTPSA id AED3033612A7; Sat, 10 Oct 2020 23:14:19 +0200 (CEST) Date: Sat, 10 Oct 2020 23:14:16 +0200 From: Danny Milosavljevic Message-ID: <20201010231416.6322dea1@scratchpost.org> In-Reply-To: <871ri5j13g.fsf@gnu.org> References: <87eem7qcxc.fsf@gmail.com> <20201010050852.19975-1-maxim.cournoyer@gmail.com> <871ri5j13g.fsf@gnu.org> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/aPtWACLK8wDl8CqI/7E=.Qt"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxim Cournoyer , 43893@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx2.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx2.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.39 X-TUID: l4kAUYOeN/0W --Sig_/aPtWACLK8wDl8CqI/7E=.Qt Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, On Sat, 10 Oct 2020 22:08:19 +0200 Ludovic Court=C3=A8s wrote: > Maxim Cournoyer skribis: >=20 > > #FIXME: This doesn't work (recursion?) > > ./pre-inst-env guix build guix --with-git-url=3Dguix=3Dfile://$PWD =20 >=20 > Works for me, please open a separate bug report. :-) Doesn't work for me on x86_64, using a checkout of guix at commit 93d3cfec3= 2bbbe1dfbe0be686b371973545b35b8. $ guix environment --pure guix --ad-hoc git guile-readline guile-json nano = guile-zlib guile-lzlib bash -- ./pre-inst-env guix build guix --with-git-ur= l=3Dguix=3Dfile://$PWD I get: [...] updating checkout of 'file:///home/dannym/src/guix-master/guix'... retrieved commit 93d3cfec32bbbe1dfbe0be686b371973545b35b8 [...] test-name: channel-instances->manifest location: /tmp/guix-build-guix-1.1.0-30.5918cb5.drv-0/source/tests/channels= .scm:233 source: + (test-assert + "channel-instances->manifest" + (let* ((spec (lambda deps + `(channel + (version 0) + (dependencies + ,@(map (lambda (dep) + `(channel + (name ,dep) + (url "http://example.org"))) + deps))))) + (guix (make-instance #:name 'guix)) + (instance0 (make-instance #:name 'a)) + (instance1 + (make-instance #:name 'b #:spec (spec 'a))) + (instance2 + (make-instance #:name 'c #:spec (spec 'b))) + (instance3 + (make-instance #:name 'd #:spec (spec 'c 'a)))) + (%graft? #f) + (let ((source (channel-instance-checkout guix))) + (mkdir (string-append source "/build-aux")) + (call-with-output-file + (string-append + source + "/build-aux/build-self.scm") + (lambda (port) + (write '(begin + (use-modules (guix) (gnu packages bootstrap)) + (lambda _ (package->derivation %bootstrap-guile))) + port)))) + (with-store + store + (let () + (define manifest + (run-with-store + store + (channel-instances->manifest + (list guix + instance0 + instance1 + instance2 + instance3)))) + (define entries (manifest-entries manifest)) + (define (depends? drv in out) + (let ((set (list->set + (requisites + store + (list (derivation-file-name drv))))) + (in (map derivation-file-name in)) + (out (map derivation-file-name out))) + (and (every (cut set-contains? set <>) in) + (not (any (cut set-contains? set <>) out))))) + (define (lookup name) + (run-with-store + store + (lower-object + (manifest-entry-item + (manifest-lookup + manifest + (manifest-pattern (name name))))))) + (let ((drv-guix (lookup "guix")) + (drv0 (lookup "a")) + (drv1 (lookup "b")) + (drv2 (lookup "c")) + (drv3 (lookup "d"))) + (and (depends? + drv-guix + '() + (list drv0 drv1 drv2 drv3)) + (depends? drv0 (list) (list drv1 drv2 drv3)) + (depends? drv1 (list drv0) (list drv2 drv3)) + (depends? drv2 (list drv1) (list drv3)) + (depends? drv3 (list drv2 drv0) (list)))))))) actual-value: #f actual-error: + (wrong-type-arg + "struct-vtable" + "Wrong type argument in position 1 (expecting struct): ~S" + (#f) + (#f)) result: FAIL [...] command "make" "check" failed with status 2 builder for `/gnu/store/csagsyh01rq7ilqkcpaa2d7vp1bn41w3-guix-1.1.0-30.5918= cb5.drv' failed with exit code 1 build of /gnu/store/csagsyh01rq7ilqkcpaa2d7vp1bn41w3-guix-1.1.0-30.5918cb5.= drv failed View build log at '/var/log/guix/drvs/cs/agsyh01rq7ilqkcpaa2d7vp1bn41w3-gui= x-1.1.0-30.5918cb5.drv.bz2'. guix build: error: build of `/gnu/store/csagsyh01rq7ilqkcpaa2d7vp1bn41w3-gu= ix-1.1.0-30.5918cb5.drv' failed I didn't even RUN update-guix-package or apply this patch--and the above st= ill fails. This is reproducible every time--both on my laptop and on a x86_64 build ho= st. So I'm confused how there's a substitute for the package "guix" available. = How was it built? O_o. --Sig_/aPtWACLK8wDl8CqI/7E=.Qt Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl+CJCgACgkQ5xo1VCww uqUvGgf9EY0PMR+deakwHrEkZprVMt2c5E2/robHJBxFn+FtYBCEw/SfUrkee/Nr Tbr9jx1bZpsuP/mqZYgJ+ZJD51A067VM6gnGVs/02nsJmB8QgunyXDDL7BAjHN4C eF/fglRcrhRF34/t6BA1ARdq2O2re+l09vuKiHgxXEcvkNacw9uMD5QkKrPJ7gaV fLk0PI+34JjTd0FM+zz5nmrkDf9VW60qwS7kffP0hSyISJxBRNNGWny+xk9VGZYD QjMctH9o+Y9jAKchyz+ex5mTrktdhSuYGQsio3UUHkdIy9SCu5cWdJyJiD6L2FHb 2wN2V8hUnl4coL4RKDqEarQ0gnoOgQ== =fgYz -----END PGP SIGNATURE----- --Sig_/aPtWACLK8wDl8CqI/7E=.Qt--