GNU bug report logs -
#62062
[PATCH] guix: Strip #:use-module lists.
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Wed, 8 Mar 2023 23:27:02 UTC
Severity: normal
Tags: patch
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 62062 <at> debbugs.gnu.org (full text, mbox):
Hi Simon,
Simon Tournier <zimon.toutoune <at> gmail.com> skribis:
> On Thu, 09 Mar 2023 at 00:26, Ludovic Courtès <ludo <at> gnu.org> wrote:
>> This was obtained by setting up this environment:
>>
>> guix shell -D guix --with-input=guile <at> 3.0.9=guile-next \
>> --with-commit=guile-next=e2ed33ef0445c867fe56c247054aa67e834861f2
>> -- make -j5
>>
>> then adding 'unused-module' to (@@ (guix build compiler) %warnings),
>> building, and checking all the "unused module" warnings and removing
>> those that were definitely unused.
>
> Out of curiosity, well, I have not understood how you proceeded. :-)
> Could you explain a bit more what you meant by:
>
> then adding 'unused-module' to (@@ (guix build compiler) %warnings),
>
> Adding where?
To the ‘%warnings’ variable in (guix build compile).
> Do you mean this ’unused-module’ is now part of the guile-next?
It’s in Guile ‘main’ yes.
> Well, Guile e2ed33ef0445c867fe56c247054aa67e834861f2 is also about
> removing unused modules in Guile itself.
Right; see the preceding commit. :-)
> Last minor comment, is it expected that there is nothing under
> ’gnu/packages’?
This is left as an exercise to the reader. :-)
That is, one can do the same with gnu/packages/*.scm. It can be quite
tedious though due to “false positives” (not exactly false positives,
but cases where the compiler cannot tell for sure whether a module
really is unused).
Ludo’.
This bug report was last modified 1 year and 357 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.