From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8MPOJzn5U2SMgAEASxT56A (envelope-from ) for ; Thu, 04 May 2023 20:28:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4K3gJzn5U2R9oQAAauVa8A (envelope-from ) for ; Thu, 04 May 2023 20:28:09 +0200 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 4E4568714 for ; Thu, 4 May 2023 20:28:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pudgU-0003uK-CY; Thu, 04 May 2023 14:28:06 -0400 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 ) id 1pudgQ-0003lV-I3 for bug-guix@gnu.org; Thu, 04 May 2023 14:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pudgP-0004XI-SJ for bug-guix@gnu.org; Thu, 04 May 2023 14:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pudgP-0004oG-NF for bug-guix@gnu.org; Thu, 04 May 2023 14:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47949: Failed to produce output path for guix-package-cache Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 May 2023 18:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47949 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: Vagrant Cascadian , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 47949@debbugs.gnu.org, Roel Janssen Received: via spool by 47949-submit@debbugs.gnu.org id=B47949.168322483218411 (code B ref 47949); Thu, 04 May 2023 18:28:01 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683224889; a=rsa-sha256; cv=none; b=rmCCL3hjlwjf/10moHK7Q99KmrwXATv9SbC7U+eRcdE7UKLTOZAwuneOLwpm9L3wwpnmPt YGWdyEUMcIKqO5Ssi/tWBzsK3nvyfVIYFaeCxmNcrGahLtaHEbwCDACcIh32n7xJRMDMkQ gFjrWFc77dKnSqxoXaxiPvmhKN/KWOeaStrhGvxigm2i2IPeDZzY+MTxfCUlULYPHbtkq/ xPXHrPEVrIzhIXNHfeqoR0SFVHdWQGsG+EAZnO7SaC5zTnOm3vF9lILRVfRr4rLXGku7J9 Xn06XOv1DHgfCRMhdlpShNNVCD4/NmrPqLB83dcYG2/2rg9pHXdVupkCQgzmmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=ITc5eTAT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683224889; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=68G4mSxVRFB0aICnJyPI6K/ERX7GpGOgZiPkm7Nk1f4=; b=kFdNJIom9CDCDoXs9SHWrh6Br22sllPsGEVgXIaoSKioDhwds58VMWy3GyqGlcJvZ0oK4q f5eU/BF7L+ZNgo1Uhys+h4+bYYpOWy9+g/LyvmhNh/nLvnAXGFDRkCml4PM6EXL1myi+J2 v3QcT6njajl0y5xiBe7m8TvVS6nJZ00odMn1OFNX7WpFFTY69g/sUPD6J/mUS/JzxSbYkE qDwFt9tvjf8qlNgEiiBkRsNSZgdP7Xxgv7TSPPhj64vTpcU0eMPFUTnpq/OXlRc3/sdKSd WI7YKxP7ElRFL6Mj3Mi2/WqjN4pDk0d3l3qMqEu3H7hWaqYVwwZukDNi6mXDyA== X-Migadu-Spam-Score: 1.19 X-Spam-Score: 1.19 X-Migadu-Queue-Id: 4E4568714 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=ITc5eTAT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-TUID: mP6iYCQ2K2Cp 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