From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uLWoAsYRVWRWewAASxT56A (envelope-from ) for ; Fri, 05 May 2023 16:25:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WHT6AcYRVWQFhAEAG6o9tA (envelope-from ) for ; Fri, 05 May 2023 16:25:10 +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 8DB8C84AC for ; Fri, 5 May 2023 16:25:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puwMr-0007cZ-Jk; Fri, 05 May 2023 10:25:05 -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 1puwMp-0007cQ-5y for bug-guix@gnu.org; Fri, 05 May 2023 10:25:03 -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 1puwMo-0004Gm-T5 for bug-guix@gnu.org; Fri, 05 May 2023 10:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puwMo-0008C9-Ew for bug-guix@gnu.org; Fri, 05 May 2023 10:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47949: Failed to produce output path for guix-package-cache Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 05 May 2023 14:25:02 +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: Simon Tournier 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.168329665131436 (code B ref 47949); Fri, 05 May 2023 14:25:02 +0000 Received: (at 47949) by debbugs.gnu.org; 5 May 2023 14:24:11 +0000 Received: from localhost ([127.0.0.1]:57210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puwLy-0008Ax-FK for submit@debbugs.gnu.org; Fri, 05 May 2023 10:24:10 -0400 Received: from mail-ua1-f54.google.com ([209.85.222.54]:48582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puwLt-0008AQ-G3 for 47949@debbugs.gnu.org; Fri, 05 May 2023 10:24:08 -0400 Received: by mail-ua1-f54.google.com with SMTP id a1e0cc1a2514c-77d0fcbce6bso573118241.1 for <47949@debbugs.gnu.org>; Fri, 05 May 2023 07:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683296640; x=1685888640; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=3YjNk/0/o1oronazB9V+sgCRlsrJ5QjnU6dRfc9gsgE=; b=i/CG4kYJnRaarOui/eKClzmaE6r92AsEiJZeeKmABtsFFeTgryIJe1t1EXEViNCuS2 yP5/giI18zwhmdvaKwbzjhirwV1oFiv/FFsnlNDPfV29O4Vyp8wmzhiLff3UzbYQRLSG gbjpIiCfZfQcYZyx3FWN3SyME5pruqqEjErfg3jHOxRmAuX3hAXbZiJAFMzbO5aPuty4 X5UoI4pK4GDpv0u2up9DTRWPjUWmbpWpy68aGNIG87gCXOFGPlYH2KsRCIntUJU1noYi b3WvfN5X2/agWVJx0DoccLkchCfe2zOUqLsoci88dS9ArCyCV0sEuizUh6qwGhyzDbDF 3dWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683296640; x=1685888640; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3YjNk/0/o1oronazB9V+sgCRlsrJ5QjnU6dRfc9gsgE=; b=k1eTTxD2mCU2OnZySrHaTS2iL4G6lmi/w+LCIqk40sfJ9Xa5d6tOHiP7igV7XJhgau iPA7SuwcIUomqd4eVCRsyjUI8d7nKgb2c83CvXc90juBM/NMkKrLm1cZnJiyga/wf0+9 IvfXYL3N17gfw/Yp2p8MLWzbtN1KwxrB1gMdWXhlwCb7ObCGWHpsWBzARa1EdAxMBNiu I4sljhnd+Bv9ug9Ka23asJQ97JdTArPxvdgHooXTyYw8sHUJJe5rNtdLVcCrhKT4/G8f yZ/rSelLo0xrSs24ddF/2eoIBRdMCWXGoBcsoFb2I0ckVKAxBugWWvBiByCxTwCo+2ni 615g== X-Gm-Message-State: AC+VfDy/KCWjkCgpoA/uWfoafBHpZ+H78qLfoPb7Nu8k0bk/cRcMg4/D XFUJi5gzCxskP51uEXaeCAY= X-Google-Smtp-Source: ACHHUZ4gsUoDNIO6PGsMcjHHn6YVny5j4OgE+9QYET2xx5KjELFes3NCONl/LMYhWqQQuclNfZ6akQ== X-Received: by 2002:a67:f948:0:b0:42e:2611:c9c8 with SMTP id u8-20020a67f948000000b0042e2611c9c8mr553847vsq.30.1683296639645; Fri, 05 May 2023 07:23:59 -0700 (PDT) Received: from hurd (dsl-205-236-230-162.b2b2c.ca. [205.236.230.162]) by smtp.gmail.com with ESMTPSA id g1-20020a37e201000000b0074e2da97de4sm621228qki.33.2023.05.05.07.23.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 07:23:59 -0700 (PDT) From: Maxim Cournoyer 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> <875y987z1m.fsf@gmail.com> Date: Fri, 05 May 2023 10:23:58 -0400 In-Reply-To: <875y987z1m.fsf@gmail.com> (Simon Tournier's message of "Thu, 04 May 2023 20:05:09 +0200") Message-ID: <87r0ru501t.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683296709; a=rsa-sha256; cv=none; b=A0roxTrVETDwAZ0qEqw65dyZAPIzOZfp4aK3RiLAw6Gje2m089BcjByQHGQnf7Eo10JnCz 6zoXzW7tG37+G3mJMUdMbgeOg4pIjlaPICM8nFMxheOX+0VUMWIhHOOI7NKIm8ueV7yqW5 IpGaQmmMgOFOQ0kmLMAwkITPR66+Oy6SCo7RjvLDaPiYFmDq72E+i2vdw2pbhcjgrCrcwm quGpbq//Hm4CTdPCy6WKWl4bRGXG/e8RqR6SYb6HsDHiB3n+pzuD0fkVltIXHUNkfh8aOY aU9aWuWHGeuAGRvrsEW3XmJLkt/TWRppzIOb3mTfeOORgKn/MUHSBORGreihsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="i/CG4kYJ"; 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=1683296709; 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=3YjNk/0/o1oronazB9V+sgCRlsrJ5QjnU6dRfc9gsgE=; b=hRg2g8AypOG+R+YcP5tOwcrURnHnEgINUFLG5rLgWnpDIkjNItSmr3EOpw8IiRdINnYMYU VVFqXFL5LUMQFTnLEDZ5mI+2pwfVW/E2iCxQIdnE7SrDVNJ7w06QO6sEGtY7rUprTzkTlL C8GpuHMKOHqDLHMZCMtb1/46PgmLS30dumnppSiKHIW+sU7mYAL7RjzUp9CXbun+E2hiLw ZyE0k/OW05wwWx441BNoMGpg0nD1Xgvt6isO4xNCsbJ608g/bkYks/hSRyKB7PM8Gk11CW Nr8SUiZaU8oP3RlQcntIkElPpLTrcE568xXrQxP0VdQVkNCvvbfj1o5lXPbvDw== X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="i/CG4kYJ"; 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-Spam: Yes X-Migadu-Spam-Score: 8.80 X-Spam-Score: 8.80 X-Migadu-Queue-Id: 8DB8C84AC X-TUID: AToQ8HmdIXWL Hi Simon, Simon Tournier writes: > 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= package from > an inferior. Hum, but that=E2=80=99s not working as expected=E2=80=A6 > > Applying this patch: > > 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=20 > ;;; python-keyring > 1.6.1 API has changed, which breaks 'sflvault > ;;; wallet' (see: > > > then that works: > > $ 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 t= o 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-p= ycrypto)' > /gnu/store/yrpcsjjb3b5wr2jahp5rbr8vbbg1n3yg-python-pycrypto-2.6.1 > > > > However, then this, > > guix build -L sfl-guix-channel python-sflvault-common > > fails with: > > starting phase `sanity-check' > validating 'SFLvault-common' /gnu/store/r3kfygxwzpnsia687bf0d1xsval5cid7-= python-sflvault-common-0.9.2-2.120617c/lib/python3.10/site-packages > ...checking requirements: ERROR: SFLvault-common=3D=3D0.9.2 DistributionN= otFound(Requirement.parse('pycrypto'), {'SFLvault-common'}) > error: in phase 'sanity-check': uncaught exception: > %exception #<&invoke-error program: "python" arguments: ("/gnu/store/iqsj= kp55pcx5bfcp2jm9yj5rlx9a0whd-sanity-check.py" "/gnu/store/r3kfygxwzpnsia687= bf0d1xsval5cid7-python-sflvault-common-0.9.2-2.120617c/lib/python3.10/site-= packages") exit-status: 1 term-signal: #f stop-signal: #f>=20 > phase `sanity-check' failed after 0.1 seconds > command "python" "/gnu/store/iqsjkp55pcx5bfcp2jm9yj5rlx9a0whd-sanity-chec= k.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-= common-0.9.2-2.120617c.drv' failed with exit code 1 > build of /gnu/store/6i075y53h83rasrw898n6qnsn673hnll-python-sflvault-comm= on-0.9.2-2.120617c.drv failed > View build log at '/var/log/guix/drvs/6i/075y53h83rasrw898n6qnsn673hnll-p= ython-sflvault-common-0.9.2-2.120617c.drv.gz'. > guix build: error: build of `/gnu/store/6i075y53h83rasrw898n6qnsn673hnll-= python-sflvault-common-0.9.2-2.120617c.drv' failed > > > Bah I do not know. Somehow, it would be the strategy I would try to foll= ow. Hm. Interesting to try to use the inferior in the package definition. I was using a Guix inferior encapsulating the whole 'sflvault-client' package's world view in a manifest, but this does not change the behavior of Guix pull, which validates that all package exists at this earlier time, at least for its package cache derivation. > Last, I get an error: > > $ 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=20 > $ guix time-machine -C /tmp/channels.scm -- help > [...] > > building /gnu/store/56ilhij5y51xg5znaspwk2zl731bq8za-sfl.drv... > |builder for `/gnu/store/56ilhij5y51xg5znaspwk2zl731bq8za-sfl.drv' failed= to 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-s= fl.drv.gz'. > cannot build derivation `/gnu/store/spikfdg9lhxy98z33dqiv6clmjm2kwv6-prof= ile.drv': 1 dependencies couldn't be built > guix time-machine: error: build of `/gnu/store/spikfdg9lhxy98z33dqiv6clmj= m2kwv6-profile.drv' failed > > > which reads, > > (repl-version 0 1 1) > (exception %exception (non-self-quoting 140737182622144 "#<&store-connect= ion-error file: \"/var/guix/daemon-socket/socket\" errno: 2>")) > > > Hum?! I guess the use of an inferior in package code is not a very well supported use case (or invalid?). Thanks for experimenting and sharing the results! I'll continue the investigation/discussion in #63276, an issue I created for this very purpose. --=20 Thanks, Maxim