From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 24 03:16:31 2020 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 24 05:23:33 2020 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 To: Alexandru-Sergiu Marton Subject: Re: bug#42504: guix refresh --update fails for Rust packages 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-Debbugs-Envelope-To: 42504 Cc: 42504@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_/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 debbugs-submit-bounces@debbugs.gnu.org Fri Jul 24 07:09:00 2020 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 To: Danny Milosavljevic Subject: Re: bug#42504: guix refresh --update fails for Rust packages 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-Debbugs-Envelope-To: 42504 Cc: 42504@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: -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 debbugs-submit-bounces@debbugs.gnu.org Mon Jul 27 07:36:35 2020 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-- From unknown Mon Aug 18 06:57:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 25 Aug 2020 11:24:04 +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