GNU bug report logs - #44619
[PATCH] Expose some functions for guix.el

Previous Next

Package: guix;

Reported by: John Soo <jsoo1 <at> asu.edu>

Date: Fri, 13 Nov 2020 13:55:02 UTC

Severity: normal

Tags: fixed, patch

Done: Ludovic Courtès <ludo <at> gnu.org>

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 44619 in the body.
You can then email your comments to 44619 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#44619; Package guix. (Fri, 13 Nov 2020 13:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to John Soo <jsoo1 <at> asu.edu>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 13 Nov 2020 13:55:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: John Soo <jsoo1 <at> asu.edu>
To: bug-guix <at> gnu.org
Subject: [PATCH] Expose some functions for guix.el
Date: Fri, 13 Nov 2020 05:54:08 -0800
[Message part 1 (text/plain, inline)]
Hi Guix,

guix.el Has been broken for quite some time because it depends on @@ for
some modules.  After some review, I came to the conclusion that all of
the bindings it uses can be safely exposed.

In general, it uses mostly bindings from guix scripts (pack, build,
etc).  Those bindings seem reasonable to expose since they give
programmatic access to "API"s that the CLI user is most likely familiar
with.

Thanks!

John

[0001-guix-pack-Expose-some-bindings-for-third-party-use.patch (text/x-patch, attachment)]
[0002-guix-build-Expose-log-url-for-third-parties.patch (text/x-patch, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#44619; Package guix. (Fri, 13 Nov 2020 16:02:02 GMT) Full text and rfc822 format available.

Message #8 received at 44619 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: John Soo <jsoo1 <at> asu.edu>, 44619 <at> debbugs.gnu.org
Subject: Re: bug#44619: [PATCH] Expose some functions for guix.el
Date: Fri, 13 Nov 2020 16:58:38 +0100
Hi John,

Thank you for raising this.


> diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
> index 8e694edbbe..b6dfcb5f6a 100644
> --- a/guix/scripts/pack.scm
> +++ b/guix/scripts/pack.scm
> @@ -58,11 +58,14 @@
>    #:use-module (srfi srfi-37)
>    #:use-module (ice-9 match)
>    #:export (compressor?
> +            compressor-name

Why not also ’compress-extension’ and ’compress-command’?  Then
<compressor> will be completely exposed which seems good, isn’t it?


All the best,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#44619; Package guix. (Fri, 13 Nov 2020 16:12:02 GMT) Full text and rfc822 format available.

Message #11 received at 44619 <at> debbugs.gnu.org (full text, mbox):

From: John Soo <jsoo1 <at> asu.edu>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 44619 <at> debbugs.gnu.org
Subject: Re: bug#44619: [PATCH] Expose some functions for guix.el
Date: Fri, 13 Nov 2020 08:11:04 -0800
[Message part 1 (text/plain, inline)]
Hi zimoun,

zimoun <zimon.toutoune <at> gmail.com> writes:

>> diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
>> index 8e694edbbe..b6dfcb5f6a 100644
>> --- a/guix/scripts/pack.scm
>> +++ b/guix/scripts/pack.scm
>> @@ -58,11 +58,14 @@
>>    #:use-module (srfi srfi-37)
>>    #:use-module (ice-9 match)
>>    #:export (compressor?
>> +            compressor-name
>
> Why not also ’compress-extension’ and ’compress-command’?  Then
> <compressor> will be completely exposed which seems good, isn’t it?

Done, thank you!

All the best to you, too,

John

[0001-guix-pack-Expose-some-bindings-for-third-party-use.patch (text/x-patch, attachment)]
[0002-guix-build-Expose-log-url-for-third-parties.patch (text/x-patch, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#44619; Package guix. (Fri, 13 Nov 2020 17:14:02 GMT) Full text and rfc822 format available.

Message #14 received at 44619 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: John Soo <jsoo1 <at> asu.edu>
Cc: 44619 <at> debbugs.gnu.org, zimoun <zimon.toutoune <at> gmail.com>
Subject: Re: bug#44619: [PATCH] Expose some functions for guix.el
Date: Fri, 13 Nov 2020 18:13:33 +0100
Hi John,

John Soo <jsoo1 <at> asu.edu> skribis:

> From 7f718484fe952b674c2cdaa70315d49df3c8aa57 Mon Sep 17 00:00:00 2001
> From: John Soo <jsoo1 <at> asu.edu>
> Date: Thu, 12 Nov 2020 21:47:36 -0800
> Subject: [PATCH 1/2] guix pack: Expose some bindings for third-party use.
>
> * guix/scripts/pack.scm (compressor-name, compressor-extension,
> compressor-command, %compressors, %formats):
> Expose them.

[...]

> From 036dc16855c9a3f3022598c700f5e8233022aee1 Mon Sep 17 00:00:00 2001
> From: John Soo <jsoo1 <at> asu.edu>
> Date: Thu, 12 Nov 2020 21:54:45 -0800
> Subject: [PATCH 2/2] guix build: Expose log-url for third parties.
>
> * guix/scripts/build.scm (log-url): Expose it.

Applied both to ‘version-1.2.0’, which we’ll eventually merge back to
‘master’.

In general, code outside the repo should not use ‘@@’ at all to refer to
Guix internals; we should ensure this is the case for Emacs-Guix.

Actually, even code within Guix should avoid it.  :-)

Thanks!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#44619; Package guix. (Fri, 13 Nov 2020 17:18:01 GMT) Full text and rfc822 format available.

Message #17 received at 44619 <at> debbugs.gnu.org (full text, mbox):

From: John Soo <jsoo1 <at> asu.edu>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 44619 <at> debbugs.gnu.org, zimoun <zimon.toutoune <at> gmail.com>
Subject: Re: bug#44619: [PATCH] Expose some functions for guix.el
Date: Fri, 13 Nov 2020 09:17:22 -0800
Ludovic Courtès <ludo <at> gnu.org> writes:

> In general, code outside the repo should not use ‘@@’ at all to refer to
> Guix internals; we should ensure this is the case for Emacs-Guix.
>
> Actually, even code within Guix should avoid it.  :-)

Indeed. I submitted some patches to emacs-guix to remedy this:

https://gitlab.com/emacs-guix/emacs-guix/-/merge_requests/8 

Thanks!

- John




Added tag(s) fixed. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 13 Nov 2020 17:20:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 44619 <at> debbugs.gnu.org and John Soo <jsoo1 <at> asu.edu> Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 13 Nov 2020 17:20:02 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. (Sat, 12 Dec 2020 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 193 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.