GNU bug report logs -
#32017
import: elpa: Check if 'fetch-elpa-package' rest argument is null.
Previous Next
Reported by: Oleg Pykhalov <go.wigust <at> gmail.com>
Date: Sat, 30 Jun 2018 07:56:01 UTC
Severity: normal
Done: Oleg Pykhalov <go.wigust <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32017 in the body.
You can then email your comments to 32017 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#32017
; Package
guix-patches
.
(Sat, 30 Jun 2018 07:56:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Oleg Pykhalov <go.wigust <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 30 Jun 2018 07:56:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello Guix,
This patch fixes the following error:
--8<---------------cut here---------------start------------->8---
$ guix import elpa -a melpa proc-net
Backtrace:
6 (primitive-load "/home/natsu/.config/guix/current/bin/guix")
In guix/ui.scm:
1570:12 5 (run-guix-command _ . _)
In guix/scripts/import.scm:
114:11 4 (guix-import . _)
In guix/scripts/import/elpa.scm:
108:23 3 (guix-import-elpa . _)
In guix/import/elpa.scm:
247:2 2 (elpa->guix-package _ _)
190:47 1 (fetch-elpa-package _ _)
In unknown file:
0 (car ())
ERROR: In procedure car:
In procedure car: Wrong type (expecting pair): ()
--8<---------------cut here---------------end--------------->8---
[0001-import-elpa-Check-if-fetch-elpa-package-rest-argumen.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
Thanks,
Oleg.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#32017
; Package
guix-patches
.
(Mon, 02 Jul 2018 15:44:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 32017 <at> debbugs.gnu.org (full text, mbox):
Hi Oleg,
Oleg Pykhalov <go.wigust <at> gmail.com> skribis:
> From 5b06ab52ada54fc4c42c87400a7b635843cf1542 Mon Sep 17 00:00:00 2001
> From: Oleg Pykhalov <go.wigust <at> gmail.com>
> Date: Sat, 30 Jun 2018 10:51:45 +0300
> Subject: [PATCH] import: elpa: Check if 'fetch-elpa-package' rest argument is
> null.
>
> * guix/import/elpa.scm (fetch-elpa-package): Check if 'rest' is null.
> ---
> guix/import/elpa.scm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/guix/import/elpa.scm b/guix/import/elpa.scm
> index 65e0be45a..869e70ee2 100644
> --- a/guix/import/elpa.scm
> +++ b/guix/import/elpa.scm
> @@ -187,7 +187,7 @@ include VERSION."
> (url (package-source-url kind name ver repo)))
> (make-elpa-package name ver
> (ensure-list reqs) synopsis kind
> - (package-home-page (first rest))
> + (package-home-page (if (null? rest) #f (first rest)))
> (fetch-package-description kind name repo)
As per our coding style guidelines (info "(guix) Data Types and Pattern
Matching"), it would be best to write:
(match rest
(() #f)
((one) one))
Otherwise LGTM, thanks!
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#32017
; Package
guix-patches
.
(Tue, 03 Jul 2018 04:24:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 32017 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello Ludovic,
Thank you for review and improvements.
ludo <at> gnu.org (Ludovic Courtès) writes:
> Oleg Pykhalov <go.wigust <at> gmail.com> skribis:
>
>> From 5b06ab52ada54fc4c42c87400a7b635843cf1542 Mon Sep 17 00:00:00 2001
>> From: Oleg Pykhalov <go.wigust <at> gmail.com>
>> Date: Sat, 30 Jun 2018 10:51:45 +0300
>> Subject: [PATCH] import: elpa: Check if 'fetch-elpa-package' rest argument is
>> null.
>>
>> * guix/import/elpa.scm (fetch-elpa-package): Check if 'rest' is null.
>> ---
>> guix/import/elpa.scm | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/guix/import/elpa.scm b/guix/import/elpa.scm
>> index 65e0be45a..869e70ee2 100644
>> --- a/guix/import/elpa.scm
>> +++ b/guix/import/elpa.scm
>> @@ -187,7 +187,7 @@ include VERSION."
>> (url (package-source-url kind name ver repo)))
>> (make-elpa-package name ver
>> (ensure-list reqs) synopsis kind
>> - (package-home-page (first rest))
>> + (package-home-page (if (null? rest) #f (first rest)))
>> (fetch-package-description kind name repo)
>
> As per our coding style guidelines (info "(guix) Data Types and Pattern
> Matching"), it would be best to write:
>
> (match rest
> (() #f)
> ((one) one))
>
> Otherwise LGTM, thanks!
OK, pushed as ae6fa00af02399e2ffadccc81bd7718cc7c26f10
Oleg.
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Oleg Pykhalov <go.wigust <at> gmail.com>
:
You have taken responsibility.
(Tue, 03 Jul 2018 04:24:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Oleg Pykhalov <go.wigust <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 03 Jul 2018 04:24:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 31 Jul 2018 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 43 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.