From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4PMREOMzK18pSwAA0tVLHw (envelope-from ) for ; Wed, 05 Aug 2020 22:34:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aJPpC+MzK182NQAA1q6Kng (envelope-from ) for ; Wed, 05 Aug 2020 22:34:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7B450940630 for ; Wed, 5 Aug 2020 22:34:10 +0000 (UTC) Received: from localhost ([::1]:39276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k3Rz7-00079t-GO for larch@yhetil.org; Wed, 05 Aug 2020 18:34:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k3Rz0-00079k-Qy for bug-guix@gnu.org; Wed, 05 Aug 2020 18:34:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k3Rz0-0000vO-FV for bug-guix@gnu.org; Wed, 05 Aug 2020 18:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k3Rz0-0004MY-CH for bug-guix@gnu.org; Wed, 05 Aug 2020 18:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42543: lint failure for packages on load path specified with -L Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 05 Aug 2020 22:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42543 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 42543-submit@debbugs.gnu.org id=B42543.159666679816706 (code B ref 42543); Wed, 05 Aug 2020 22:34:02 +0000 Received: (at 42543) by debbugs.gnu.org; 5 Aug 2020 22:33:18 +0000 Received: from localhost ([127.0.0.1]:52395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3RyI-0004LN-8m for submit@debbugs.gnu.org; Wed, 05 Aug 2020 18:33:18 -0400 Received: from mail-qk1-f170.google.com ([209.85.222.170]:32956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3RyF-0004L4-N9 for 42543@debbugs.gnu.org; Wed, 05 Aug 2020 18:33:16 -0400 Received: by mail-qk1-f170.google.com with SMTP id l23so43311305qkk.0 for <42543@debbugs.gnu.org>; Wed, 05 Aug 2020 15:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+TZ4iAe0kkzbtmrc9gw/O70spWE/CqAiUGEgXstNWrA=; b=BBsg57Tx5BvZDqD/ZxEuqEFBkLPBVSzqbAktz0PQ06k5k9rZd5PtgZguXgFbxMVB89 JdpsFgfDsQqjOOF5Nzc9O5O5wJ+GaGGSnntsoSjXKKVB0tZiV7B270wsXnZup9rLnAV9 vRDTtkbdLcZDi1/nr9ZZdjR8qXE7OcpkWTJL79YOmRqoZ6MDFsGUrvl5d5qbVDBpjwxK 5x8ii4LBCXKjD1MvM9Q4TU3tpnzpoAtoPboZ+FZ6uIcNGM3BHxzyzpPnljLoTXMzwc6x ZShgVgSpoNXrHdMUr5j171ke/9l09aFTfaO1uMSFSaZwAzYb2xsNRDoaQxsRLWUnX2fi vz6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+TZ4iAe0kkzbtmrc9gw/O70spWE/CqAiUGEgXstNWrA=; b=Y5+FlQGW56qVXwz4SrGssFkw3wVv/UJRd5etPVSkb9HzI98BcTE+DwcUloTSlNVbxQ stvMfUo2YLBPctLiuWpoM4d06+N2rjJ90Yyfwwdq7oELSlo3aIqgBclX+BPTyBvJaBIx A1VUepbd3Tt9BJP9YiStO8aq/SKUQN/+6I/GB5LPgXVwKuPkuImRKugdrwbX+2mwXMYk 3ofwb21fJCv9g/dGNjxQE5uJ/NzkMTUBmAk7qwDqky6wQEcrjObhZnhDE+TI9J/ScBbo PcCfQfCQqS6UOqdz30gM6aWfDD0lHjEpUv7KOow5mWAvTg6gM+4s//bQPPWg6aYTumxD PqmA== X-Gm-Message-State: AOAM532RP2nWw9qA8DPOTbUSsrYyTBbeQ3Byi7fAV2U37RcKIlfK3iZs qh6OL6qBFWoG3WJxWMH2CJn9f5Hc+jJMym4kIsQ= X-Google-Smtp-Source: ABdhPJxGtR/L0q2UO0D4Fu4C0V4FRN0EXv1dAPC8/4yHgrrF1Grl0/KIcP+T2mSU/WF8tf9K12rxRi/H5BqRtnc5nI8= X-Received: by 2002:a37:8ac2:: with SMTP id m185mr5146880qkd.201.1596666790015; Wed, 05 Aug 2020 15:33:10 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6000:1187:0:0:0:0 with HTTP; Wed, 5 Aug 2020 15:33:05 -0700 (PDT) In-Reply-To: <87d044on1k.fsf@gnu.org> References: <87d044on1k.fsf@gnu.org> From: zimoun Date: Thu, 6 Aug 2020 00:33:05 +0200 Message-ID: Content-Type: multipart/alternative; boundary="000000000000d7f79905ac28f4d6" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "42543@debbugs.gnu.org" <42543@debbugs.gnu.org> Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=BBsg57Tx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: 4s0CAI2f+R1W --000000000000d7f79905ac28f4d6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ludo, I confirm the bug and please consider the fix sent in this thread: http://issues.guix.gnu.org/42543#2 Well, it tweaks using 'canonicalize-path' which is maybe not the right thing. Let me know. Cheers, simon On Wednesday, 5 August 2020, Ludovic Court=C3=A8s wrote: > Hi, > > Jack Hill skribis: > > > jackhill@alperton ~$ guix lint -L lint-test my-hello > > Backtrace:y-hello@2.10 [formatting]... > > 8 (primitive-load "/home/jackhill/.config/guix/current/bi=E2= =80=A6") > > In guix/ui.scm: > > 1974:12 7 (run-guix-command _ . _) > > In ice-9/boot-9.scm: > > 1736:10 6 (with-exception-handler _ _ #:unwind? _ # _) > > In guix/store.scm: > > 631:22 5 (thunk) > > In srfi/srfi-1.scm: > > 634:9 4 (for-each # =E2=80=A6) > > In guix/scripts/lint.scm: > > 60:4 3 (run-checkers _ _ #:store _) > > In srfi/srfi-1.scm: > > 634:9 2 (for-each # =E2=80=A6) > > 241:2 1 (for-each _ _) > > In ice-9/boot-9.scm: > > 1669:16 0 (raise-exception _ #:continuable? _) > > > > ice-9/boot-9.scm:1669:16: In procedure raise-exception: > > In procedure for-each: Wrong type argument: #f > > I can=E2=80=99t reproduce this problem: > > --8<---------------cut here---------------start------------->8--- > $ cat /tmp/t/my-hello.scm > (define-module (my-hello) > #:use-module (guix build-system gnu) > #:use-module (guix download) > #:use-module (guix licenses) > #:use-module (guix packages)) > > (define-public my-hello > (package > (name "my-hello") > (version "2.10") > (source (origin > (method url-fetch) > (uri (string-append "mirror://gnu/hello/hello-" version > ".tar.gz")) > (sha256 > (base32 > "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i")))= ) > (build-system gnu-build-system) > (synopsis "Hello, GNU world: An example GNU package") > (description > "GNU Hello prints the message \"Hello, world!\" and then exits. It > serves as an example of standard GNU coding practices. As such, it > supports > command-line arguments, multiple languages, and so on.") > (home-page "https://www.gnu.org/software/hello/") > (license gpl3+))) > $ guix lint -L /tmp/t my-hello > $ echo $? > 0 > $ guix show -L /tmp/t my-hello > name: my-hello > version: 2.10 > outputs: out > systems: x86_64-linux i686-linux > dependencies: > location: /tmp/t/my-hello.scm:8:2 > homepage: https://www.gnu.org/software/hello/ > license: GPL 3+ > synopsis: Saluton, mondo GNU: ekzemplo de pako GNU > description: GNU Hello montras la mesa=C4=9Don "Hello, world!" kaj fini= =C4=9Das. =C4=9Ci > funkcias kiel ekzemplo de norma > + kodumada tradicio de GNU. Tiel, =C4=9Di subtenas komand-liniajn argume= ntojn, > plurajn lingvojn, kaj tiel plu. > > $ guix describe > Generacio 152 Aug 04 2020 17:34:23 (nuna) > guix abe3c5e > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: abe3c5ed7d04985c987e6c81aeb1284354ea0c77 > --8<---------------cut here---------------end--------------->8--- > > Do you still have this problem? > > (Besides, =E2=80=98canonicalize-path=E2=80=99 should be used sparsely: it= =E2=80=99s quite > expensive and sometimes confusing for users. With the proposed patches, > =E2=80=9C-L /does/not/exist=E2=80=9D would now lead to an error.) > > Thanks, > Ludo=E2=80=99. > > > > --000000000000d7f79905ac28f4d6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ludo,

I confirm the bug and please consider the fix s= ent in this thread:


<= /div>
Well, it tweaks using 'canonicalize-path' which is maybe = not the right thing. Let me know.

Cheers,
simon


On Wednesday, 5 August 2020, Ludovic C= ourt=C3=A8s <ludo@gnu.= org> wrote:
Hi,

Jack Hill <jac= khill@jackhill.us> skribis:

> jackhill@alperton ~$ guix lint -L lint-test my-hello
> Backtrace:y-hello@2.10 [formatting]...
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 8 (primitive-load "/home= /jackhill/.config/guix/current/bi=E2=80=A6")
> In guix/ui.scm:
>=C2=A0 =C2=A01974:12=C2=A0 7 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
>=C2=A0 =C2=A01736:10=C2=A0 6 (with-exception-handler _ _ #:unwind? _ # = _)
> In guix/store.scm:
>=C2=A0 =C2=A0 631:22=C2=A0 5 (thunk)
> In srfi/srfi-1.scm:
>=C2=A0 =C2=A0 =C2=A0634:9=C2=A0 4 (for-each #<procedure 7f40c0484020= at guix/scripts/lin=E2=80=A6> =E2=80=A6)
> In guix/scripts/lint.scm:
>=C2=A0 =C2=A0 =C2=A0 60:4=C2=A0 3 (run-checkers _ _ #:store _)
> In srfi/srfi-1.scm:
>=C2=A0 =C2=A0 =C2=A0634:9=C2=A0 2 (for-each #<procedure 7f40b2ab53f0= at guix/scripts/lin=E2=80=A6> =E2=80=A6)
>=C2=A0 =C2=A0 =C2=A0241:2=C2=A0 1 (for-each _ _)
> In ice-9/boot-9.scm:
>=C2=A0 =C2=A01669:16=C2=A0 0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> In procedure for-each: Wrong type argument: #f

I can=E2=80=99t reproduce this problem:

--8<---------------cut here---------------start------------->8--= -
$ cat /tmp/t/my-hello.scm
(define-module (my-hello)
=C2=A0 #:use-module (guix build-system gnu)
=C2=A0 #:use-module (guix download)
=C2=A0 #:use-module (guix licenses)
=C2=A0 #:use-module (guix packages))

(define-public my-hello
=C2=A0 (package
=C2=A0 =C2=A0 (name "my-hello")
=C2=A0 =C2=A0 (version "2.10")
=C2=A0 =C2=A0 (source (origin
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (method url-fetch)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (uri (string-append "= mirror://gnu/hello/hello-" version
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ".tar.gz"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (sha256
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(base32
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "0ssi1wpaf7pla= swqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i"))))
=C2=A0 =C2=A0 (build-system gnu-build-system)
=C2=A0 =C2=A0 (synopsis "Hello, GNU world: An example GNU package"= ;)
=C2=A0 =C2=A0 (description
=C2=A0 =C2=A0 =C2=A0"GNU Hello prints the message \"Hello, world!= \" and then exits.=C2=A0 It
serves as an example of standard GNU coding practices.=C2=A0 As such, it su= pports
command-line arguments, multiple languages, and so on.")
=C2=A0 =C2=A0 (home-page "https://www.gnu.org/software/hello/") =C2=A0 =C2=A0 (license gpl3+)))
$ guix lint -L /tmp/t my-hello
$ echo $?
0
$ guix show -L /tmp/t my-hello
name: my-hello
version: 2.10
outputs: out
systems: x86_64-linux i686-linux
dependencies:
location: /tmp/t/my-hello.scm:8:2
homepage: https://www.gnu.org/software/hello/
license: GPL 3+
synopsis: Saluton, mondo GNU: ekzemplo de pako GNU=C2=A0
description: GNU Hello montras la mesa=C4=9Don "Hello, world!" ka= j fini=C4=9Das.=C2=A0 =C4=9Ci funkcias kiel ekzemplo de norma
+ kodumada tradicio de GNU.=C2=A0 Tiel, =C4=9Di subtenas komand-liniajn arg= umentojn, plurajn lingvojn, kaj tiel plu.

$ guix describe
Generacio 152=C2=A0 =C2=A0Aug 04 2020 17:34:23=C2=A0 =C2=A0 (nuna)
=C2=A0 guix abe3c5e
=C2=A0 =C2=A0 repository URL: https://git.savannah.gnu.org/git/guix.git
=C2=A0 =C2=A0 branch: master
=C2=A0 =C2=A0 commit: abe3c5ed7d04985c987e6c81aeb1284354ea0c77
--8<---------------cut here---------------end--------------->8--= -

Do you still have this problem?

(Besides, =E2=80=98canonicalize-path=E2=80=99 should be used sparsely: it= =E2=80=99s quite
expensive and sometimes confusing for users.=C2=A0 With the proposed patche= s,
=E2=80=9C-L /does/not/exist=E2=80=9D would now lead to an error.)

Thanks,
Ludo=E2=80=99.



--000000000000d7f79905ac28f4d6--