From unknown Mon Aug 18 11:25:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42504: guix refresh --update fails for Rust packages Resent-From: Alexandru-Sergiu Marton Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 24 Jul 2020 07:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42504 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 42504@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159557499125694 (code B ref -1); Fri, 24 Jul 2020 07:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jul 2020 07:16:31 +0000 Received: from localhost ([127.0.0.1]:46561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyrwV-0006gM-CC for submit@debbugs.gnu.org; Fri, 24 Jul 2020 03:16:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:33838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyrwQ-0006gB-KI for submit@debbugs.gnu.org; Fri, 24 Jul 2020 03:16:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyrwQ-0006lQ-6d for bug-guix@gnu.org; Fri, 24 Jul 2020 03:16:26 -0400 Received: from mout02.posteo.de ([185.67.36.66]:34457) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyrwN-0005B4-K1 for bug-guix@gnu.org; Fri, 24 Jul 2020 03:16:25 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id C03962400FD for ; Fri, 24 Jul 2020 09:16:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1595574980; bh=V4gCiBcYVkBwiTNhX90+HEArv81NYnOrHdfAMwlhsL8=; h=From:To:Subject:Date:From; b=cNBVsJ3mnjGk2YRb1i6+tPGdKj/A/YBsLILqSS9C3NOwwPmO154mFkb1yqMmBjxQB VT4jFuPgLE0Hz3GZY9RuY8dxkXnMga6bbetREqzr7AgbKUj/PlzUqBwEMkhxkmF40k 0XszFF6iuOJeWlATmIGkZprLsTY7S1dtq6hEiBwu/pbvdztZGMV0f7a4oFOkSTNOfq 4NmOrKtcuN8dSyW8mdBSndgi2bcLHfgT1V+/xlRNjSyxL0AlJVsKsJBDkySFUDd7+M i9LW2rxSj7K05BniNCW/DDFPM32+qfsPHd2FAtzVeIURcmyo56LLCQAada2gNdrhpf s5atMDXHV/iUw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BCgVD1tx0z9rxg for ; Fri, 24 Jul 2020 09:16:19 +0200 (CEST) From: Alexandru-Sergiu Marton Date: Fri, 24 Jul 2020 10:16:17 +0300 Message-ID: <87r1t11iym.fsf@posteo.ro> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=brown121407@posteo.ro; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/24 03:16:21 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) Hi, I tried to use the automatic updater for a Rust package but it had an ugly fail. Here's the backtrace: --8<---------------cut here---------------start------------->8--- [brown@121408 guix][env]$ ./pre-inst-env guix refresh --update rust-instant Backtrace: In ice-9/boot-9.scm: 1736:10 16 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In unknown file: 15 (apply-smob/0 #) In ice-9/boot-9.scm: 718:2 14 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 13 (_ #(#(#))) In guix/ui.scm: 1974:12 12 (run-guix-command _ . _) In ice-9/boot-9.scm: 1736:10 11 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) 1731:15 10 (with-exception-handler # _ #:unwind? _ #:unwind-for-type _) 1736:10 9 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In guix/store.scm: 631:22 8 (thunk) 2025:24 7 (run-with-store # # #:guile-for-= build _ #:system _ #:target _) In guix/scripts/refresh.scm: 552:16 6 (_ _) In srfi/srfi-1.scm: 634:9 5 (for-each # (#)) In guix/scripts/refresh.scm: 318:20 4 (update-package # # _ #:key-download _ #:warn? _) In guix/upstream.scm: 376:34 3 (package-update/url-fetch # _ #< package: "rust-instant" version: "0.1.6" urls: ("= https://crates.io/api/v1/crates/instant/0.1.6/download=E2=80=A6> =E2=80=A6) In unknown file: 2 (string-contains #f "z" # # #= #) In ice-9/boot-9.scm: 1669:16 1 (raise-exception _ #:continuable? _) 1669:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1669:16: In procedure raise-exception: In procedure string-contains: Wrong type argument in position 1 (expecting = string): #f --8<---------------cut here---------------end--------------->8--- It's not only this package. Trying to update rust-serde gives a very similar backtrace: --8<---------------cut here---------------start------------->8--- Backtrace: In ice-9/boot-9.scm: 1736:10 16 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In unknown file: 15 (apply-smob/0 #) In ice-9/boot-9.scm: 718:2 14 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 13 (_ #(#(#))) In guix/ui.scm: 1974:12 12 (run-guix-command _ . _) In ice-9/boot-9.scm: 1736:10 11 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) 1731:15 10 (with-exception-handler # _ #:unwind? _ #:unwind-for-type _) 1736:10 9 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In guix/store.scm: 631:22 8 (thunk) 2025:24 7 (run-with-store # # #:guile-for-= build _ #:system _ #:target _) In guix/scripts/refresh.scm: 552:16 6 (_ _) In srfi/srfi-1.scm: 634:9 5 (for-each # (#)) In guix/scripts/refresh.scm: 318:20 4 (update-package # # _ #:key-download _ #:warn? _) In guix/upstream.scm: 376:34 3 (package-update/url-fetch # _ #< package: "rust-serde" version: "1.0.114" urls: ("= https://crates.io/api/v1/crates/serde/1.0.114/download=E2=80=A6> =E2=80=A6) In unknown file: 2 (string-contains #f "z" # # #= #) In ice-9/boot-9.scm: 1669:16 1 (raise-exception _ #:continuable? _) 1669:16 0 (raise-exception _ #:continuable? _) --8<---------------cut here---------------end--------------->8--- It seems that I can update non-rust stuff though. `guix refresh --update i3-gaps` works fine. Cheers, Sergiu From unknown Mon Aug 18 11:25:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42504: guix refresh --update fails for Rust packages Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 24 Jul 2020 09:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42504 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Alexandru-Sergiu Marton Cc: 42504@debbugs.gnu.org Received: via spool by 42504-submit@debbugs.gnu.org id=B42504.15955826135225 (code B ref 42504); Fri, 24 Jul 2020 09:24:01 +0000 Received: (at 42504) by debbugs.gnu.org; 24 Jul 2020 09:23:33 +0000 Received: from localhost ([127.0.0.1]:46732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jytvR-0001MD-90 for submit@debbugs.gnu.org; Fri, 24 Jul 2020 05:23:33 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:34034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jytvP-0001M5-RB for 42504@debbugs.gnu.org; Fri, 24 Jul 2020 05:23:32 -0400 Received: from localhost (unknown [212.183.16.185]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 219013365982; Fri, 24 Jul 2020 11:23:31 +0200 (CEST) Date: Fri, 24 Jul 2020 11:23:30 +0200 From: Danny Milosavljevic Message-ID: <20200724112330.4891eb0a@scratchpost.org> In-Reply-To: <87r1t11iym.fsf@posteo.ro> References: <87r1t11iym.fsf@posteo.ro> 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_/D330t_=mAMcITdVL3j6Z8JJ"; 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 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 (-) --Sig_/D330t_=mAMcITdVL3j6Z8JJ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable '"z"' appears in guix/upstream.scm,=20 (define* (package-update/url-fetch store package source #:key key-download) "Return the version, tarball, and SOURCE, to update PACKAGE to SOURCE, an ." (match source (($ _ version urls signature-urls) (let*-values (((archive-type) (match (and=3D> (package-source package) origin-uri) ((? string? uri) (let ((type (file-extension (basename uri)))) ;; Sometimes we have URLs such as ;; "https://github.com/=E2=80=A6/tarball/v0.1", in= which case ;; we must not consider "1" as the extension. (and (or (string-contains type "z") (string=3D? type "tar")) type))) (_ "gz"))) ((url signature-url) ;; Try to find a URL that matches ARCHIVE-TYPE. (find2 (lambda (url sig-url) ;; Some URIs lack a file extension, like ;; 'https://crates.io/???/0.1/download'. In t= hat ;; case, pick the first URL. (or (not archive-type) (string-suffix? archive-type url))) urls (or signature-urls (circular-list #f))))) ;; If none of URLS matches ARCHIVE-TYPE, then URL is #f; in that cas= e, ;; pick up the first element of URLS. (let ((tarball (download-tarball store (or url (first urls)) (and (pair? signature-urls) (or signature-url (first signature-urls))) #:key-download key-download))) (values version tarball source)))))) And guix repl says: scheme@(guix-user)> ,use (guix utils) scheme@(guix-user)> (file-extension "https://crates.io/api/v1/crates/instan= t/0.1.2/download") $1 =3D #f But the case #f is not handled in the code above--which is why it doesn't w= ork. Could you test the following fix? diff --git a/guix/upstream.scm b/guix/upstream.scm index 70cbfb45e8..31bd6faea4 100644 --- a/guix/upstream.scm +++ b/guix/upstream.scm @@ -369,7 +369,7 @@ SOURCE, an ." (let*-values (((archive-type) (match (and=3D> (package-source package) origin-uri) ((? string? uri) - (let ((type (file-extension (basename uri)))) + (let ((type (or (file-extension (basename uri)) "")= )) ;; Sometimes we have URLs such as ;; "https://github.com/=E2=80=A6/tarball/v0.1", i= n which case ;; we must not consider "1" as the extension. --Sig_/D330t_=mAMcITdVL3j6Z8JJ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl8aqJIACgkQ5xo1VCww uqWJ9AgAn1VXyioJGFWDOlArjGZOQ/EVGeKzbLQcX1vLjNAZoY5dHYTdKrIfZAPP BT9kc7o6oJ+XylyjTGy3StDY/tyv8pM53BUqE7h5ggzAn0AZbZc2p9m0eIykFrED YlRIs1eoFDw9l/7rsctt0rbUCjepZ95e8EYLVmq1PkzAHlRjuoTerVwYabh5dQMg cEg/fXPLJRyIBGG6lDQ+etHabktdK1uTiWUEDzZLJSJnYnI0KGRjG/0AQqXxgCI9 MD2VQ0NMjI65qfTmrxZO1NmvQ7HoUqD+39C3NVSUIi1CM23VASjDQUrrJLQcGSxY p0+60uPqLPZW1eSgU5hRGhfh3Sx6Jw== =ncy5 -----END PGP SIGNATURE----- --Sig_/D330t_=mAMcITdVL3j6Z8JJ-- From unknown Mon Aug 18 11:25:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42504: guix refresh --update fails for Rust packages Resent-From: Alexandru-Sergiu Marton Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 24 Jul 2020 11:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42504 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Danny Milosavljevic Cc: 42504@debbugs.gnu.org Received: via spool by 42504-submit@debbugs.gnu.org id=B42504.159558894032534 (code B ref 42504); Fri, 24 Jul 2020 11:09:02 +0000 Received: (at 42504) by debbugs.gnu.org; 24 Jul 2020 11:09:00 +0000 Received: from localhost ([127.0.0.1]:46971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyvZT-0008Se-SH for submit@debbugs.gnu.org; Fri, 24 Jul 2020 07:09:00 -0400 Received: from mout02.posteo.de ([185.67.36.66]:40837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyvZQ-0008SM-2y for 42504@debbugs.gnu.org; Fri, 24 Jul 2020 07:08:58 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 92341240103 for <42504@debbugs.gnu.org>; Fri, 24 Jul 2020 13:08:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1595588929; bh=x03+a5yGTlG4ny7J5UrVia2oUweHmR8BaZrD/5qMBWQ=; h=From:To:Cc:Subject:Date:From; b=gSNljTXmEdyolILukc7+RZfKzQ/ZZfkjRjLSZCv6K2wJiqN1YXUbJ1x7qPxs3MRHD p9faAhTHuEFEDgGB7zjbxNe/eZ9xJaPfQzbxARBPIGiMeyXfxl2RWHYEh+tRWcTjy1 D6Psp7eKWm0suYqz6wreytYg66HPG4DwmxmLXcegkukJ+OBuYWjlhOs/UN+nbr78UL U1gLifhapJhlZOuepzOmaSqxRyrZ7gRudoSilvwLEJN/xUl9l2oQvZlkf6lVsrNmcX ZONFqVvEVcW08kVg3pS5mMpId+wJMzVwhEYowxst5z9QTevkWXth2VXPptypWkPx9I M51Ude3tHAroQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BCmfS6ckSz6tm6; Fri, 24 Jul 2020 13:08:48 +0200 (CEST) From: Alexandru-Sergiu Marton References: <87r1t11iym.fsf@posteo.ro> <20200724112330.4891eb0a@scratchpost.org> Date: Fri, 24 Jul 2020 14:08:45 +0300 In-Reply-To: <20200724112330.4891eb0a@scratchpost.org> (Danny Milosavljevic's message of "Fri, 24 Jul 2020 11:23:30 +0200") Message-ID: <87ft9h1876.fsf@posteo.ro> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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 (---) Danny Milosavljevic writes: > And guix repl says: > > scheme@(guix-user)> ,use (guix utils) > scheme@(guix-user)> (file-extension "https://crates.io/api/v1/crates/inst= ant/0.1.2/download") > $1 =3D #f > > But the case #f is not handled in the code above--which is why it doesn't= work. > > Could you test the following fix? > > diff --git a/guix/upstream.scm b/guix/upstream.scm > index 70cbfb45e8..31bd6faea4 100644 > --- a/guix/upstream.scm > +++ b/guix/upstream.scm > @@ -369,7 +369,7 @@ SOURCE, an ." > (let*-values (((archive-type) > (match (and=3D> (package-source package) origin-uri) > ((? string? uri) > - (let ((type (file-extension (basename uri)))) > + (let ((type (or (file-extension (basename uri)) "= "))) > ;; Sometimes we have URLs such as > ;; "https://github.com/=E2=80=A6/tarball/v0.1",= in which case > ;; we must not consider "1" as the extension. This fixes the issue, thanks! -- Sergiu From unknown Mon Aug 18 11:25:55 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Alexandru-Sergiu Marton Subject: bug#42504: closed (Re: bug#42504: guix refresh --update fails for Rust packages) Message-ID: References: <20200727133630.0e0fb997@scratchpost.org> <87r1t11iym.fsf@posteo.ro> X-Gnu-PR-Message: they-closed 42504 X-Gnu-PR-Package: guix Reply-To: 42504@debbugs.gnu.org Date: Mon, 27 Jul 2020 11:37:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1595849822-29289-1" This is a multi-part message in MIME format... ------------=_1595849822-29289-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #42504: guix refresh --update fails for Rust packages which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 42504@debbugs.gnu.org. --=20 42504: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D42504 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1595849822-29289-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 42504-done) by debbugs.gnu.org; 27 Jul 2020 11:36:35 +0000 Received: from localhost ([127.0.0.1]:54236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k01Qp-0007bg-5a for submit@debbugs.gnu.org; Mon, 27 Jul 2020 07:36:35 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:54640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k01Qn-0007bX-Hv for 42504-done@debbugs.gnu.org; Mon, 27 Jul 2020 07:36:34 -0400 Received: from localhost (80-110-127-146.cgn.dynamic.surfer.at [80.110.127.146]) by dd26836.kasserver.com (Postfix) with ESMTPSA id EC9403363594; Mon, 27 Jul 2020 13:36:31 +0200 (CEST) Date: Mon, 27 Jul 2020 13:36:30 +0200 From: Danny Milosavljevic To: Alexandru-Sergiu Marton Subject: Re: bug#42504: guix refresh --update fails for Rust packages Message-ID: <20200727133630.0e0fb997@scratchpost.org> In-Reply-To: <87ft9h1876.fsf@posteo.ro> References: <87r1t11iym.fsf@posteo.ro> <20200724112330.4891eb0a@scratchpost.org> <87ft9h1876.fsf@posteo.ro> 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_/zCPrGzrH.3B0rN_uBdY8coH"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 42504-done Cc: 42504-done@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 (-) --Sig_/zCPrGzrH.3B0rN_uBdY8coH Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, thanks for testing! Pushed to guix master as commit bc76f8b1f9a74c0f187022991b633cc1820944c7. --Sig_/zCPrGzrH.3B0rN_uBdY8coH Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl8evD4ACgkQ5xo1VCww uqURVwf9HEq8SSaoDgF2cWIkBnpt1eZmQAd4xMTraRH0tAzqnax4OkUSOhEbdEQ8 DCU/v2LGZENpwMvOexlNMNVoHc8CQrqOea3FWk6FAhZASqDt+Yvh+wgz6JKiqGmu Db70pUQZEbtNuUX5XwPxJOXJWru4e//USZ01WTolafwg9e9OQLDQDmWgkXWSAN0O PxzXUB2ZNkCOEWtx+n/9g6opE0Bc1naB2Zs4ZSmJxF6oduLeUwgoxV1luBcltf8h qOigGXHSeVC19lS6N3kIHebRkWXFQhAPxUNJQaanQMJdWWPDvW0mh3eOOONiaVfV slDM+HAZerd36Gl6nzspBP4Leg8HKA== =Okab -----END PGP SIGNATURE----- --Sig_/zCPrGzrH.3B0rN_uBdY8coH-- ------------=_1595849822-29289-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 24 Jul 2020 07:16:31 +0000 Received: from localhost ([127.0.0.1]:46561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyrwV-0006gM-CC for submit@debbugs.gnu.org; Fri, 24 Jul 2020 03:16:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:33838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyrwQ-0006gB-KI for submit@debbugs.gnu.org; Fri, 24 Jul 2020 03:16:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyrwQ-0006lQ-6d for bug-guix@gnu.org; Fri, 24 Jul 2020 03:16:26 -0400 Received: from mout02.posteo.de ([185.67.36.66]:34457) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyrwN-0005B4-K1 for bug-guix@gnu.org; Fri, 24 Jul 2020 03:16:25 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id C03962400FD for ; Fri, 24 Jul 2020 09:16:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1595574980; bh=V4gCiBcYVkBwiTNhX90+HEArv81NYnOrHdfAMwlhsL8=; h=From:To:Subject:Date:From; b=cNBVsJ3mnjGk2YRb1i6+tPGdKj/A/YBsLILqSS9C3NOwwPmO154mFkb1yqMmBjxQB VT4jFuPgLE0Hz3GZY9RuY8dxkXnMga6bbetREqzr7AgbKUj/PlzUqBwEMkhxkmF40k 0XszFF6iuOJeWlATmIGkZprLsTY7S1dtq6hEiBwu/pbvdztZGMV0f7a4oFOkSTNOfq 4NmOrKtcuN8dSyW8mdBSndgi2bcLHfgT1V+/xlRNjSyxL0AlJVsKsJBDkySFUDd7+M i9LW2rxSj7K05BniNCW/DDFPM32+qfsPHd2FAtzVeIURcmyo56LLCQAada2gNdrhpf s5atMDXHV/iUw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BCgVD1tx0z9rxg for ; Fri, 24 Jul 2020 09:16:19 +0200 (CEST) From: Alexandru-Sergiu Marton To: bug-guix@gnu.org Subject: guix refresh --update fails for Rust packages Date: Fri, 24 Jul 2020 10:16:17 +0300 Message-ID: <87r1t11iym.fsf@posteo.ro> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=brown121407@posteo.ro; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/24 03:16:21 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) Hi, I tried to use the automatic updater for a Rust package but it had an ugly fail. Here's the backtrace: --8<---------------cut here---------------start------------->8--- [brown@121408 guix][env]$ ./pre-inst-env guix refresh --update rust-instant Backtrace: In ice-9/boot-9.scm: 1736:10 16 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In unknown file: 15 (apply-smob/0 #) In ice-9/boot-9.scm: 718:2 14 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 13 (_ #(#(#))) In guix/ui.scm: 1974:12 12 (run-guix-command _ . _) In ice-9/boot-9.scm: 1736:10 11 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) 1731:15 10 (with-exception-handler # _ #:unwind? _ #:unwind-for-type _) 1736:10 9 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In guix/store.scm: 631:22 8 (thunk) 2025:24 7 (run-with-store # # #:guile-for-= build _ #:system _ #:target _) In guix/scripts/refresh.scm: 552:16 6 (_ _) In srfi/srfi-1.scm: 634:9 5 (for-each # (#)) In guix/scripts/refresh.scm: 318:20 4 (update-package # # _ #:key-download _ #:warn? _) In guix/upstream.scm: 376:34 3 (package-update/url-fetch # _ #< package: "rust-instant" version: "0.1.6" urls: ("= https://crates.io/api/v1/crates/instant/0.1.6/download=E2=80=A6> =E2=80=A6) In unknown file: 2 (string-contains #f "z" # # #= #) In ice-9/boot-9.scm: 1669:16 1 (raise-exception _ #:continuable? _) 1669:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1669:16: In procedure raise-exception: In procedure string-contains: Wrong type argument in position 1 (expecting = string): #f --8<---------------cut here---------------end--------------->8--- It's not only this package. Trying to update rust-serde gives a very similar backtrace: --8<---------------cut here---------------start------------->8--- Backtrace: In ice-9/boot-9.scm: 1736:10 16 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In unknown file: 15 (apply-smob/0 #) In ice-9/boot-9.scm: 718:2 14 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 13 (_ #(#(#))) In guix/ui.scm: 1974:12 12 (run-guix-command _ . _) In ice-9/boot-9.scm: 1736:10 11 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) 1731:15 10 (with-exception-handler # _ #:unwind? _ #:unwind-for-type _) 1736:10 9 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In guix/store.scm: 631:22 8 (thunk) 2025:24 7 (run-with-store # # #:guile-for-= build _ #:system _ #:target _) In guix/scripts/refresh.scm: 552:16 6 (_ _) In srfi/srfi-1.scm: 634:9 5 (for-each # (#)) In guix/scripts/refresh.scm: 318:20 4 (update-package # # _ #:key-download _ #:warn? _) In guix/upstream.scm: 376:34 3 (package-update/url-fetch # _ #< package: "rust-serde" version: "1.0.114" urls: ("= https://crates.io/api/v1/crates/serde/1.0.114/download=E2=80=A6> =E2=80=A6) In unknown file: 2 (string-contains #f "z" # # #= #) In ice-9/boot-9.scm: 1669:16 1 (raise-exception _ #:continuable? _) 1669:16 0 (raise-exception _ #:continuable? _) --8<---------------cut here---------------end--------------->8--- It seems that I can update non-rust stuff though. `guix refresh --update i3-gaps` works fine. Cheers, Sergiu ------------=_1595849822-29289-1--