From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Trofimovich Subject: bug#25635: 'guix refresh' does not work for packages with multiple URIs (python-cram is one example) Date: Mon, 6 Feb 2017 09:19:56 +0000 Message-ID: <20170206090220.5d01b14e@sf> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/k.W/ixCAd7pwIgz5ZNsNwyt"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1camGu-0004Ig-Rq for bug-guix@gnu.org; Mon, 06 Feb 2017 11:36:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1camGq-0006V5-LV for bug-guix@gnu.org; Mon, 06 Feb 2017 11:36:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59794) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1camGq-0006V0-It for bug-guix@gnu.org; Mon, 06 Feb 2017 11:36:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1camGp-00005Z-9K for bug-guix@gnu.org; Mon, 06 Feb 2017 11:36:04 -0500 Sender: "Debbugs-submit" Resent-Message-ID: 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 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 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 25635@debbugs.gnu.org --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--