From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 08 15:19:49 2020 Received: (at submit) by debbugs.gnu.org; 8 Nov 2020 20:19:49 +0000 Received: from localhost ([127.0.0.1]:33119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbrAC-0002bI-PE for submit@debbugs.gnu.org; Sun, 08 Nov 2020 15:19:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:55762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbrAA-0002bA-Rr for submit@debbugs.gnu.org; Sun, 08 Nov 2020 15:19:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbrAA-000355-Km for bug-guix@gnu.org; Sun, 08 Nov 2020 15:19:46 -0500 Received: from vsmx012.vodafonemail.xion.oxcs.net ([153.92.174.90]:12399) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbrA7-0005Zt-9v for bug-guix@gnu.org; Sun, 08 Nov 2020 15:19:45 -0500 Received: from vsmx004.vodafonemail.xion.oxcs.net (unknown [192.168.75.198]) by mta-8-out.mta.xion.oxcs.net (Postfix) with ESMTP id 9D54BF354DA for ; Sun, 8 Nov 2020 20:19:39 +0000 (UTC) Received: from macbook-pro.kuh-wiese.my-router.de (unknown [88.70.113.160]) by mta-8-out.mta.xion.oxcs.net (Postfix) with ESMTPA id 7A94219AE1E for ; Sun, 8 Nov 2020 20:19:37 +0000 (UTC) From: Stefan Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Derivation of computed-file has no outputs Message-Id: <045B8C31-3947-4EA6-8B49-5A3B48F18908@vodafonemail.de> Date: Sun, 8 Nov 2020 21:19:36 +0100 To: bug-guix@gnu.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-VADE-STATUS: LEGIT Received-SPF: pass client-ip=153.92.174.90; envelope-from=stefan-guix@vodafonemail.de; helo=vsmx012.vodafonemail.xion.oxcs.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/08 14:31:13 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, PDS_BTC_ID=0.482, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: submit 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.9 (-) Hi! I try to use a computed-file as an input to a bootloader profile hook = function. Using guix system I get this error message: guix system: error: reference to invalid output 'out' of derivation = '/gnu/store/946szbrwn3ja74yjnibbhjisjflvsk73-test.txt.drv' This is the simple definition of the computed-file: (computed-file "test.txt" (with-imported-modules '((guix utils)) = #~(%current-system))) And this is the content of the generated derivation of it: = Derive([],[("/gnu/store/0hcx4wgpgf1nn4gl3lhnd055vj2y28cj-guile-3.0.2.drv",= ["out"]),("/gnu/store/2ss1lzy0x0wwayy5n5mvzmsv77dnni39-module-import-compi= led.drv",["out"])],["/gnu/store/9lw2pp0hjcjgmq5hx7w6aq92699r6pim-module-im= port","/gnu/store/plgbvrkkq1ghvph24kf0bdgb4w8glgqb-test.txt-builder"],"aar= ch64-linux","/gnu/store/x3gq648qnfnla7nppyfjvj62s2i8y7rl-guile-3.0.2/bin/g= uile",["--no-auto-compile","-L","/gnu/store/9lw2pp0hjcjgmq5hx7w6aq92699r6p= im-module-import","-C","/gnu/store/3v6bh2hn62i4qp674d1hqg4ca7hpys3a-module= -import-compiled","/gnu/store/plgbvrkkq1ghvph24kf0bdgb4w8glgqb-test.txt-bu= ilder"],[("preferLocalBuild","1")]) I think the problem is visible already with this call: scheme@(guile-user)> (derivation-path->output-paths = "/gnu/store/946szbrwn3ja74yjnibbhjisjflvsk73-test.txt.drv") $5 =3D () Bye Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 08 15:45:09 2020 Received: (at 44525) by debbugs.gnu.org; 8 Nov 2020 20:45:09 +0000 Received: from localhost ([127.0.0.1]:33157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbrYj-0003E3-DJ for submit@debbugs.gnu.org; Sun, 08 Nov 2020 15:45:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbrYf-0003DC-Ad for 44525@debbugs.gnu.org; Sun, 08 Nov 2020 15:45:08 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56108) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbrYY-00009u-JH; Sun, 08 Nov 2020 15:44:58 -0500 Received: from host-37-191-236-253.lynet.no ([37.191.236.253]:45434 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kbrYW-000499-2Q; Sun, 08 Nov 2020 15:44:56 -0500 From: Marius Bakke To: Stefan , 44525@debbugs.gnu.org Subject: Re: bug#44525: Derivation of computed-file has no outputs In-Reply-To: <045B8C31-3947-4EA6-8B49-5A3B48F18908@vodafonemail.de> References: <045B8C31-3947-4EA6-8B49-5A3B48F18908@vodafonemail.de> Date: Sun, 08 Nov 2020 21:44:51 +0100 Message-ID: <87o8k7fuik.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44525 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: -3.3 (---) --=-=-= Content-Type: text/plain Stefan writes: > Hi! > > I try to use a computed-file as an input to a bootloader profile hook function. Using guix system I get this error message: > > guix system: error: reference to invalid output 'out' of derivation '/gnu/store/946szbrwn3ja74yjnibbhjisjflvsk73-test.txt.drv' > > This is the simple definition of the computed-file: > > (computed-file "test.txt" (with-imported-modules '((guix utils)) #~(%current-system))) That's expected: this derivation does not produce any outputs. Assuming you intended to write (%current-system) to test.txt, you can do something along these lines: (computed-file "test.txt" #~(call-with-output-file #$output (lambda (port) (format port #$(%current-system))))) So I think this is not-a-bug. WDYT? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFDBAEBCgAtFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl+oWMQPHG1hcml1c0Bn bnUub3JnAAoJEKKgbfKjOlT6bVsH/2RfMEtTiaTjfVL2wAMjKnqUMvL7Xr3qVPwn q65YmfqvlLVLXATjPS0RzzXwxlSw7uWPWLvRPqXCJFvbYd9FMJMtwMH188t+TzZn IRUgwLwuGOteDt2A0pmmDFm5Kt26Tzv3MsmwaNhlM7mZlx9j8n0djySHRuIW6Awm 6IQO8q1F5ZFXSblYKlS79M+GoNbZQ1oy1On8JYiSMPRK8NHqwlUjXGe6HZkg053V eG4yhyRLw0pjYe1rkIo8FEutg+BRyCP4M1U3/FC9zsubnNz30gfcFGrfJvPZi19W HwkO2+R9mR7AEK/tRRXOYW3nbvqy2DKo4PE9flXou5s8nKhlcJg= =5qYe -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 08 18:38:56 2020 Received: (at 44525) by debbugs.gnu.org; 8 Nov 2020 23:38:56 +0000 Received: from localhost ([127.0.0.1]:33185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbuGu-0007Cx-FN for submit@debbugs.gnu.org; Sun, 08 Nov 2020 18:38:56 -0500 Received: from vsmx012.vodafonemail.xion.oxcs.net ([153.92.174.90]:18760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbuGq-0007Ch-02 for 44525@debbugs.gnu.org; Sun, 08 Nov 2020 18:38:54 -0500 Received: from vsmx004.vodafonemail.xion.oxcs.net (unknown [192.168.75.198]) by mta-8-out.mta.xion.oxcs.net (Postfix) with ESMTP id 63D42F35380; Sun, 8 Nov 2020 23:38:46 +0000 (UTC) Received: from macbook-pro.kuh-wiese.my-router.de (unknown [88.70.113.160]) by mta-8-out.mta.xion.oxcs.net (Postfix) with ESMTPA id E29D319ADEA; Sun, 8 Nov 2020 23:38:41 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: bug#44525: Derivation of computed-file has no outputs From: Stefan In-Reply-To: <87o8k7fuik.fsf@gnu.org> Date: Mon, 9 Nov 2020 00:38:40 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <045B8C31-3947-4EA6-8B49-5A3B48F18908@vodafonemail.de> <87o8k7fuik.fsf@gnu.org> To: Marius Bakke X-Mailer: Apple Mail (2.3124) X-VADE-STATUS: LEGIT X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44525 Cc: 44525@debbugs.gnu.org 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.7 (-) Hi Marius! > Assuming you intended to write (%current-system) to test.txt, you can = do > something along these lines: >=20 > (computed-file "test.txt" > #~(call-with-output-file #$output > (lambda (port) > (format port #$(%current-system))))) Thanks for this solution. > That's expected: this derivation does not produce any outputs. > So I think this is not-a-bug. WDYT? I think I got a bit distracted by the functionality of plain-file and = the similar wording of the documentation of computed-file. Thanks, I=E2=80=99ll close this issue. Bye Stefan= From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 08 18:46:03 2020 Received: (at 44525-done) by debbugs.gnu.org; 8 Nov 2020 23:46:03 +0000 Received: from localhost ([127.0.0.1]:33189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbuNn-0007NX-BL for submit@debbugs.gnu.org; Sun, 08 Nov 2020 18:46:03 -0500 Received: from mx009.vodafonemail.xion.oxcs.net ([153.92.174.39]:25075) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbuNj-0007Mn-NB for 44525-done@debbugs.gnu.org; Sun, 08 Nov 2020 18:46:01 -0500 Received: from vsmx002.vodafonemail.xion.oxcs.net (unknown [192.168.75.192]) by mta-6-out.mta.xion.oxcs.net (Postfix) with ESMTP id 8130A604456 for <44525-done@debbugs.gnu.org>; Sun, 8 Nov 2020 23:45:53 +0000 (UTC) Received: from macbook-pro.kuh-wiese.my-router.de (unknown [88.70.113.160]) by mta-6-out.mta.xion.oxcs.net (Postfix) with ESMTPA id 55CEC60445D for <44525-done@debbugs.gnu.org>; Sun, 8 Nov 2020 23:45:51 +0000 (UTC) From: Stefan Content-Type: text/plain Content-Transfer-Encoding: 7bit Subject: Message-Id: Date: Mon, 9 Nov 2020 00:45:50 +0100 To: 44525-done@debbugs.gnu.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-VADE-STATUS: LEGIT X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [153.92.174.39 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [153.92.174.39 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 2.3 EMPTY_MESSAGE Message appears to have no textual parts and no Subject: text 2.0 BLANK_SUBJECT Subject is present but empty -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: 44525-done 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 (+) From unknown Sun Aug 17 22:01:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 07 Dec 2020 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator