From unknown Fri Aug 15 20:22:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#25635 <25635@debbugs.gnu.org> To: bug#25635 <25635@debbugs.gnu.org> Subject: Status: 'guix refresh' does not work for packages with multiple URIs (python-cram is one example) Reply-To: bug#25635 <25635@debbugs.gnu.org> Date: Sat, 16 Aug 2025 03:22:53 +0000 retitle 25635 'guix refresh' does not work for packages with multiple URIs = (python-cram is one example) reassign 25635 guix submitter 25635 Sergei Trofimovich severity 25635 normal tag 25635 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 06 11:35:23 2017 Received: (at submit) by debbugs.gnu.org; 6 Feb 2017 16:35:23 +0000 Received: from localhost ([127.0.0.1]:57991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1camGB-0008Vx-6r for submit@debbugs.gnu.org; Mon, 06 Feb 2017 11:35:23 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cafWP-0005AV-4s for submit@debbugs.gnu.org; Mon, 06 Feb 2017 04:23:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cafWI-000744-MO for submit@debbugs.gnu.org; Mon, 06 Feb 2017 04:23:35 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58870) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cafWI-00073y-Ix for submit@debbugs.gnu.org; Mon, 06 Feb 2017 04:23:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cafWH-0007eM-61 for bug-guix@gnu.org; Mon, 06 Feb 2017 04:23:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cafWC-00072B-6Z for bug-guix@gnu.org; Mon, 06 Feb 2017 04:23:33 -0500 Received: from smtp13.mail.ru ([94.100.181.94]:53577) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cafWB-00071P-R7 for bug-guix@gnu.org; Mon, 06 Feb 2017 04:23:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date; bh=ZpWuXXAUDJGjTIpEYhN4zeBVSMx1SlTdV3mgCJhC3wQ=; b=Y9uth7VhHvlUzLo8InBteOrdeDvBZbjb7Q/uxjwhTleyOnl7Jf+bcdFajBUzRrwz0sluvb7jjafoGQYN7a1vx9pHxyXoj79LZzCx+N+hJQHDZL6FZoPfuBMZlpbK9kl+ZSTgs2D8u+3sgyZrF3lX08nCBjHeOYir4piDFeMVBmM=; Received: from host86-155-194-87.range86-155.btcentralplus.com ([86.155.194.87]:32818 helo=sf) by smtp13.mail.ru with esmtpa (envelope-from ) id 1cafSo-0000eO-8C for bug-guix@gnu.org; Mon, 06 Feb 2017 12:19:58 +0300 Date: Mon, 6 Feb 2017 09:19:56 +0000 From: Sergei Trofimovich To: bug-guix@gnu.org Subject: 'guix refresh' does not work for packages with multiple URIs (python-cram is one example) Message-ID: <20170206090220.5d01b14e@sf> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/k.W/ixCAd7pwIgz5ZNsNwyt"; protocol="application/pgp-signature" X-E1FCDC63: 6EE452D55EC392CC74F876D251C9FF54 X-E1FCDC64: E492B39C85DD0532C60F216B7681CF4443FC33CB8C4F6EB66E79EF41167F69DA X-Mailru-Sender: E88416E66AC30BB722D265769DBCCA9D6DB69B3A48A1CD807C50CFDE8A78F2914E520835EB9B01A7660823B2EEFD31DC X-Mras: OK Authentication-Results: smtp13.mail.ru; auth=pass smtp.auth=slyfox@inbox.ru smtp.mailfrom=slyfox@inbox.ru X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 06 Feb 2017 11:35:21 -0500 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: -4.0 (----) --Sig_/k.W/ixCAd7pwIgz5ZNsNwyt Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable [had to corrupt URIs to get past spam filter] Noticed by accident when ran 'guix refresh' (global refreh). Full quick reproducer is [1]. The trigger seems to be '(uri (list' nesting: gnu/packages/python.scm: (define-public python-cram (package (name "python-cram") (version "0.7") (home-page "https://...") (source (origin (method url-fetch) (uri (list (string-append home-page "cram-" version ".tar.gz") (pypi-uri "cram" version))) (sha256 (base32 "0bvz6fwdi55rkrz3f50zsy35gvvwhlppki2yml5bj5ffy9d499vx")))) A few issues here: - in [1] it does not tell which package it is. - in full 'guix refresh' run the first error aborts whole process. would be nice to have a mode which proceeds even in face of errors [1]: ~/dev/git/guix $ ./pre-inst-env guix refresh python-cram ;;; note: source file /home/slyfox/dev/git/guix/guix/import/pypi.scm ;;; newer than compiled /home/slyfox/dev/git/guix/guix/import/pypi.go Backtrace: In ice-9/boot-9.scm: 66: 19 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 18 [eval # #] In ice-9/boot-9.scm: 2404: 17 [save-module-excursion #] 4056: 16 [#] 1727: 15 [%start-stack load-stack ...] 1732: 14 [#] In unknown file: ?: 13 [primitive-load "/home/slyfox/dev/git/guix/scripts/guix"] In guix/ui.scm: 1228: 12 [run-guix-command refresh "python-cram"] In ice-9/boot-9.scm: 160: 11 [catch srfi-34 # ...] 160: 10 [catch system-error ...] In guix/scripts/refresh.scm: 442: 9 [#] 462: 8 [#] In srfi/srfi-1.scm: 616: 7 [for-each # ...] In guix/scripts/refresh.scm: 288: 6 [check-for-package-update # # # ...] In ice-9/boot-9.scm: 160: 5 [catch srfi-34 # ...] In ice-9/eval.scm: 411: 4 [eval # #] 387: 3 [eval # #] 387: 2 [eval # #] In guix/utils.scm: 569: 1 [file-sans-extension #] In unknown file: ?: 0 [string-rindex # #\. # ...] ERROR: In procedure string-rindex: ERROR: In procedure string-index-right: Wrong type argument in position 1 (= expecting string): ("https://..." "https://...") --=20 Sergei --Sig_/k.W/ixCAd7pwIgz5ZNsNwyt Content-Type: application/pgp-signature Content-Description: Цифровая подпись OpenPGP -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAliYP7wACgkQcaHudmEf86o37gCfTeq3P9TdzZJTlMC6nJoesoOK wyYAnRyw0D3wt5GYeRiGfXsXQZT+0wV4 =KPdb -----END PGP SIGNATURE----- --Sig_/k.W/ixCAd7pwIgz5ZNsNwyt-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 08 10:18:34 2017 Received: (at 25635) by debbugs.gnu.org; 8 Feb 2017 15:18:34 +0000 Received: from localhost ([127.0.0.1]:60418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbU0w-0005Y6-7a for submit@debbugs.gnu.org; Wed, 08 Feb 2017 10:18:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbU0u-0005Xq-MM for 25635@debbugs.gnu.org; Wed, 08 Feb 2017 10:18:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbU0m-000595-C7 for 25635@debbugs.gnu.org; Wed, 08 Feb 2017 10:18:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbU0m-00058q-9e; Wed, 08 Feb 2017 10:18:24 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:45744 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cbU0l-0005Rt-Li; Wed, 08 Feb 2017 10:18:24 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Sergei Trofimovich Subject: Re: bug#25635: 'guix refresh' does not work for packages with multiple URIs (python-cram is one example) References: <20170206090220.5d01b14e@sf> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 20 =?utf-8?Q?Pluvi=C3=B4se?= an 225 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Wed, 08 Feb 2017 16:18:20 +0100 In-Reply-To: <20170206090220.5d01b14e@sf> (Sergei Trofimovich's message of "Mon, 6 Feb 2017 09:19:56 +0000") Message-ID: <87vaskogn7.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25635 Cc: 25635@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: -5.0 (-----) Hi Sergei, Sergei Trofimovich skribis: > [1]: ~/dev/git/guix $ ./pre-inst-env guix refresh python-cram > ;;; note: source file /home/slyfox/dev/git/guix/guix/import/pypi.scm > ;;; newer than compiled /home/slyfox/dev/git/guix/guix/import/pypi.= go > Backtrace: > In ice-9/boot-9.scm: > 66: 19 [call-with-prompt prompt0 ...] > In ice-9/eval.scm: > 432: 18 [eval # #] > In ice-9/boot-9.scm: > 2404: 17 [save-module-excursion #] > 4056: 16 [#] > 1727: 15 [%start-stack load-stack ...] > 1732: 14 [#] > In unknown file: > ?: 13 [primitive-load "/home/slyfox/dev/git/guix/scripts/guix"] > In guix/ui.scm: > 1228: 12 [run-guix-command refresh "python-cram"] > In ice-9/boot-9.scm: > 160: 11 [catch srfi-34 # ...] > 160: 10 [catch system-error ...] > In guix/scripts/refresh.scm: > 442: 9 [#] > 462: 8 [#] > In srfi/srfi-1.scm: > 616: 7 [for-each # ...] > In guix/scripts/refresh.scm: > 288: 6 [check-for-package-update # # # ...] > In ice-9/boot-9.scm: > 160: 5 [catch srfi-34 # .= ..] > In ice-9/eval.scm: > 411: 4 [eval # #] > 387: 3 [eval # #] > 387: 2 [eval # #] > In guix/utils.scm: > 569: 1 [file-sans-extension #] > In unknown file: > ?: 0 [string-rindex # #\. # ...] > > ERROR: In procedure string-rindex: > ERROR: In procedure string-index-right: Wrong type argument in position 1= (expecting string): ("https://..." "https://...") Fixed in 4eaac4b722b180b433b75127a30b871aaf9f0913, thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 08 10:18:51 2017 Received: (at control) by debbugs.gnu.org; 8 Feb 2017 15:18:51 +0000 Received: from localhost ([127.0.0.1]:60421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbU1C-0005Ya-G6 for submit@debbugs.gnu.org; Wed, 08 Feb 2017 10:18:51 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbU1B-0005YO-HK for control@debbugs.gnu.org; Wed, 08 Feb 2017 10:18:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbU12-0005Rk-LB for control@debbugs.gnu.org; Wed, 08 Feb 2017 10:18:44 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbU12-0005Rg-Iw for control@debbugs.gnu.org; Wed, 08 Feb 2017 10:18:40 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:45748 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cbU11-0006Cf-Ur for control@debbugs.gnu.org; Wed, 08 Feb 2017 10:18:40 -0500 Date: Wed, 08 Feb 2017 16:18:38 +0100 Message-Id: <87tw84ogmp.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #25635 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control 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: -5.0 (-----) tags 25635 fixed close 25635 From unknown Fri Aug 15 20:22:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 09 Mar 2017 12: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