From debbugs-submit-bounces@debbugs.gnu.org Thu May 04 14:27:12 2023 Received: (at 47949) by debbugs.gnu.org; 4 May 2023 18:27:12 +0000 Received: from localhost ([127.0.0.1]:52057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pudfb-0004mt-9v for submit@debbugs.gnu.org; Thu, 04 May 2023 14:27:11 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:40291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pudfU-0004lp-N9 for 47949@debbugs.gnu.org; Thu, 04 May 2023 14:27:08 -0400 Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-3f174c4b404so1287545e9.1 for <47949@debbugs.gnu.org>; Thu, 04 May 2023 11:27:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683224819; x=1685816819; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=68G4mSxVRFB0aICnJyPI6K/ERX7GpGOgZiPkm7Nk1f4=; b=ITc5eTAT0B7nqpHuRZ3aWzF6X5/WJDWvf5x/ZzXk7SUjdxOLAcKNX6uXO6mpZDO3V5 RrRbYxDDpT5BcKYRmioJPNl8xYSXZzktiBWAg0/xPNOjTAScq9L3Yr6hTw0C9eEj0xwH 1KKrQxJrEQjP6QN7wa+3256Zv4+Gpe8FnoTZ5dNv4rIN2tPsl9FHS0e/MQpwj0aAGllq j+se4JG3knunH3wHOOMEEEabiVu6odrOmxBSJ3OuBIJAFSB8OSHbKbPk623kIg2KHoem ddZzk8MEPYZKsiMhgfvi4bFuo/GvdrsOE/6/SD2HPpiaTsma+QrjXCTfqiFCiGqO5gZq 4gEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683224819; x=1685816819; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=68G4mSxVRFB0aICnJyPI6K/ERX7GpGOgZiPkm7Nk1f4=; b=jOgygGrHTVTOp+kcgLQKzC84Yjs9jmRrUUqLAQx2YEqqbq7wMmWJQ7yzTI1KDeCupk lWgratFD5KQYLp2e5kCFgEWf/qHu5Y/nyKwFnxOdxcJTy0GrLhFcLG4WYsksX7s5nOKH UpEk1/zv1rl2mLV87Kfcg6+JdjdklIwanRkFV9VUf8ogyhB24zcsKJ6W4TaIJqG7Nzlz 1y1DIXSSY9BsBC9MAKfXJo+Gvt2dRuttvYY7H13L0IMl4W13D1ZSbgu2CAN61kcdV14N 75dEV12YqlVKTDkYJo5Ngb6epf+cRXHOkWsoUzdEMD2W+IE323kclGRLXv6GRcahlD2J +kcA== X-Gm-Message-State: AC+VfDw5dHqrIn+Xc492slUeqBMkf8LOjCnb2HAiLhVcxPaOUSYZpb0Z rjtHmUj9V9Tx4xzQ9iImHa0= X-Google-Smtp-Source: ACHHUZ6w91WQISrg/7jC7b2hwmWUI5HFb/hHkKME1ZIszP4qEZMpEcvH2h02w10jZgUXtogxofMO1A== X-Received: by 2002:a05:600c:538d:b0:3f1:7332:40d9 with SMTP id hg13-20020a05600c538d00b003f1733240d9mr7636641wmb.0.1683224818852; Thu, 04 May 2023 11:26:58 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id u24-20020a7bc058000000b003f173987ec2sm5622951wmc.22.2023.05.04.11.26.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 11:26:58 -0700 (PDT) From: Simon Tournier To: Maxim Cournoyer Subject: Re: bug#47949: Failed to produce output path for guix-package-cache In-Reply-To: <87y1m45kbr.fsf@gmail.com> References: <86b58d34-b9ae-b4bb-f64c-9250e2c109cd@gnu.org> <87h7jqozsv.fsf@gnu.org> <26aef3de604e17d9199edff5f4b6eff170df8a1c.camel@gnu.org> <87zgxhmslv.fsf@gnu.org> <87fsfbznrk.fsf@contorta> <86fsfb0zvj.fsf@gmail.com> <87eduule00.fsf@contorta> <86o7tybbmq.fsf@gmail.com> <878rl2kw0l.fsf@contorta> <87zgdfd7ee.fsf@contorta> <87iljxhb5a.fsf@gmail.com> <87sfj1ci97.fsf@contorta> <861qqke84q.fsf@gmail.com> <87edujevii.fsf@contorta> <875y9gar95.fsf@gmail.com> <86wn1pz7nm.fsf@gmail.com> <87y1m45kbr.fsf@gmail.com> Date: Thu, 04 May 2023 20:05:09 +0200 Message-ID: <875y987z1m.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 47949 Cc: Vagrant Cascadian , Ludovic =?utf-8?Q?Court=C3=A8s?= , 47949@debbugs.gnu.org, Roel Janssen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Maxim, On jeu., 04 mai 2023 at 08:53, Maxim Cournoyer = wrote: > [0] https://gitlab.com/Apteryks/sfl-guix-channel From a Guile point of view, where the symbol =E2=80=99python-pycrypto=E2=80= =99 [1,2] is it defined? And it=E2=80=99s defined nowhere. I would suggest to bind the symbol =E2=80=99python-pycrypto=E2=80=99 to a p= ackage from an inferior. Hum, but that=E2=80=99s not working as expected=E2=80=A6 Applying this patch: --8<---------------cut here---------------start------------->8--- diff --git a/sfl/packages/sflvault.scm b/sfl/packages/sflvault.scm index 74a975f..eb04a5b 100644 --- a/sfl/packages/sflvault.scm +++ b/sfl/packages/sflvault.scm @@ -8,7 +8,28 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) - #:use-module (guix build-system python)) + #:use-module (guix build-system python) + + #:use-module (guix inferior) + #:use-module (guix channels) + #:use-module (srfi srfi-1)) + +(define channels + ;; This is the old revision from which we want to + ;; extract guile-json. + (list (channel + (name 'guix) + (url "https://git.savannah.gnu.org/git/guix.git") + (commit + "9ed65e6af77893b658a7159b091b5002892c2f95")))) + +(define inferior + ;; An inferior representing the above revision. + (inferior-for-channels channels)) + +(define python-pycrypto + (first (lookup-inferior-packages inferior "python-pycrypto"))) + =20 ;;; python-keyring > 1.6.1 API has changed, which breaks 'sflvault ;;; wallet' (see: --8<---------------cut here---------------end--------------->8--- then that works: --8<---------------cut here---------------start------------->8--- $ guix show -L sfl-guix-channel python-sflvault-common name: python-sflvault-common version: 0.9.2-2.120617c outputs: + out: everything systems: x86_64-linux i686-linux dependencies: python-wheel@0.40.0 location: sfl-guix-channel/sfl/packages/sflvault.scm:84:2 homepage: https://www.sflvault.org license: GPL 3+ synopsis: Network credentials store and authentication manager library=20=20 description: This package is a Python library that contains code common to = the + SFLvault server and its clients. $ guix time-machine --commit=3D9ed65e6af77893b658a7159b091b5002892c2f95 \ -- build python-pycrypto --no-grafts --check -K -q /gnu/store/3kbr3lnwajc16a7w2jq3knxsphlrqkrz-python-pycrypto-2.6.1 $ guix time-machine --commit=3D9ed65e6af77893b658a7159b091b5002892c2f95 \ -- build python-pycrypto --check -K -q /gnu/store/yrpcsjjb3b5wr2jahp5rbr8vbbg1n3yg-python-pycrypto-2.6.1 $ guix build -L sfl-guix-channel -e '(@@ (sfl packages sflvault) python-pyc= rypto)' /gnu/store/yrpcsjjb3b5wr2jahp5rbr8vbbg1n3yg-python-pycrypto-2.6.1 --8<---------------cut here---------------end--------------->8--- However, then this, guix build -L sfl-guix-channel python-sflvault-common fails with: --8<---------------cut here---------------start------------->8--- starting phase `sanity-check' validating 'SFLvault-common' /gnu/store/r3kfygxwzpnsia687bf0d1xsval5cid7-py= thon-sflvault-common-0.9.2-2.120617c/lib/python3.10/site-packages ...checking requirements: ERROR: SFLvault-common=3D=3D0.9.2 DistributionNot= Found(Requirement.parse('pycrypto'), {'SFLvault-common'}) error: in phase 'sanity-check': uncaught exception: %exception #<&invoke-error program: "python" arguments: ("/gnu/store/iqsjkp= 55pcx5bfcp2jm9yj5rlx9a0whd-sanity-check.py" "/gnu/store/r3kfygxwzpnsia687bf= 0d1xsval5cid7-python-sflvault-common-0.9.2-2.120617c/lib/python3.10/site-pa= ckages") exit-status: 1 term-signal: #f stop-signal: #f>=20 phase `sanity-check' failed after 0.1 seconds command "python" "/gnu/store/iqsjkp55pcx5bfcp2jm9yj5rlx9a0whd-sanity-check.= py" "/gnu/store/r3kfygxwzpnsia687bf0d1xsval5cid7-python-sflvault-common-0.9= .2-2.120617c/lib/python3.10/site-packages" failed with status 1 builder for `/gnu/store/6i075y53h83rasrw898n6qnsn673hnll-python-sflvault-co= mmon-0.9.2-2.120617c.drv' failed with exit code 1 build of /gnu/store/6i075y53h83rasrw898n6qnsn673hnll-python-sflvault-common= -0.9.2-2.120617c.drv failed View build log at '/var/log/guix/drvs/6i/075y53h83rasrw898n6qnsn673hnll-pyt= hon-sflvault-common-0.9.2-2.120617c.drv.gz'. guix build: error: build of `/gnu/store/6i075y53h83rasrw898n6qnsn673hnll-py= thon-sflvault-common-0.9.2-2.120617c.drv' failed --8<---------------cut here---------------end--------------->8--- Bah I do not know. Somehow, it would be the strategy I would try to follow. Last, I get an error: --8<---------------cut here---------------start------------->8--- $ cat channels.scm (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (branch "master") (commit "fa685c87eaa9888a4278f39bb2b815673589dced")) (channel (name 'sfl) (url "file:///tmp/sfl-guix-channel") (branch "master") (commit "11bbb36e28ee80ce17785f09b33ed20af18d4832" ;"bc6b32b116d3e62b5f41cb73df63a6024f1324ba" ))) =20=20=20=20=20=20=20=20=20 $ guix time-machine -C /tmp/channels.scm -- help [...] building /gnu/store/56ilhij5y51xg5znaspwk2zl731bq8za-sfl.drv... |builder for `/gnu/store/56ilhij5y51xg5znaspwk2zl731bq8za-sfl.drv' failed t= o produce output path `/gnu/store/nlpvr38p83jwrwcsj1czwhi8r2jpa2ic-sfl' build of /gnu/store/56ilhij5y51xg5znaspwk2zl731bq8za-sfl.drv failed View build log at '/var/log/guix/drvs/56/ilhij5y51xg5znaspwk2zl731bq8za-sfl= .drv.gz'. cannot build derivation `/gnu/store/spikfdg9lhxy98z33dqiv6clmjm2kwv6-profil= e.drv': 1 dependencies couldn't be built guix time-machine: error: build of `/gnu/store/spikfdg9lhxy98z33dqiv6clmjm2= kwv6-profile.drv' failed --8<---------------cut here---------------end--------------->8--- which reads, --8<---------------cut here---------------start------------->8--- (repl-version 0 1 1) (exception %exception (non-self-quoting 140737182622144 "#<&store-connectio= n-error file: \"/var/guix/daemon-socket/socket\" errno: 2>")) --8<---------------cut here---------------end--------------->8--- Hum?! Cheers, simon 1: https://gitlab.com/Apteryks/sfl-guix-channel/-/blob/master/sfl/packages/= sflvault.scm#L75 2: https://gitlab.com/Apteryks/sfl-guix-channel/-/blob/master/sfl/packages/= sflvault.scm#L99 PS: Please note that the example from the manual [#] fails with Guix fa685c8: --8<---------------cut here---------------start------------->8--- $ cat manifest.scm (use-modules (guix inferior) (guix channels) (srfi srfi-1)) ;for 'first' (define channels ;; This is the old revision from which we want to ;; extract guile-json. (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (commit "65956ad3526ba09e1f7a40722c96c6ef7c0936fe")))) (define inferior ;; An inferior representing the above revision. (inferior-for-channels channels)) ;; Now create a manifest with the current "guile" package ;; and the old "guile-json" package. (packages->manifest (list (first (lookup-inferior-packages inferior "guile-json")) (specification->package "guile"))) $ guix build -m manifest.scm Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... The following derivations will be built: /gnu/store/01d4kdfqx0hq2lj0ir9yk7fl3kmpanyh-compute-guix-derivation.drv /gnu/store/1dgn5q7q8gm5y9dssaws2bbcdvwznvj9-module-import-compiled.drv /gnu/store/xxrxdi543lcfmw43svp8nxpbp3d3d4rd-module-import-compiled.drv building path(s) `/gnu/store/hrvp38jfh5gvdhd2rh4v2rxk39vvgzi9-module-import= -compiled' [ 1/78] Loading './gnu/packages/bootstrap.scm'... Backtrace: In ice-9/boot-9.scm: 2887:24 19 (_) 222:17 18 (map1 (((guix config)) ((srfi srfi-1)) ((srfi #)) (#) ?)) 2800:17 17 (resolve-interface (guix config) #:select _ #:hide _ # _ ?) In ice-9/threads.scm: 390:8 16 (_ _) In ice-9/boot-9.scm: 2726:13 15 (_) In ice-9/threads.scm: 390:8 14 (_ _) In ice-9/boot-9.scm: 2994:20 13 (_) 2312:4 12 (save-module-excursion #) 3014:26 11 (_) In unknown file: 10 (primitive-load-path "guix/config" #) In ice-9/eval.scm: 721:20 9 (primitive-eval (begin (define-module (guix #) # (?)) #)) In ice-9/psyntax.scm: 1235:36 8 (expand-top-sequence ((begin (define-module (# ?) ?) ?)) ?) 1182:24 7 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?) 1182:24 6 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?) 1182:24 5 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?) 285:10 4 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) ?) In ice-9/eval.scm: 626:19 3 (_ #) 182:19 2 (proc #) 142:16 1 (compile-top-call _ (7 . repository) ((10 (13 . #) #) ?)) In unknown file: 0 (%resolve-variable (7 . repository) #) ERROR: In procedure %resolve-variable: Unbound variable: repository builder for `/gnu/store/1dgn5q7q8gm5y9dssaws2bbcdvwznvj9-module-import-comp= iled.drv' failed with exit code 1 cannot build derivation `/gnu/store/01d4kdfqx0hq2lj0ir9yk7fl3kmpanyh-comput= e-guix-derivation.drv': 1 dependencies couldn't be built guix build: error: exception thrown: #<&store-protocol-error message: "buil= d of `/gnu/store/01d4kdfqx0hq2lj0ir9yk7fl3kmpanyh-compute-guix-derivation.d= rv' failed" status: 100> --8<---------------cut here---------------end--------------->8--- #: https://guix.gnu.org/manual/devel/en/guix.html#Inferiors