GNU bug report logs -
#29299
[PATCH] build-system/go: Don't let Go executables refer to the Go compiler.
Previous Next
Reported by: Leo Famulari <leo <at> famulari.name>
Date: Tue, 14 Nov 2017 17:02:02 UTC
Severity: normal
Tags: patch
Done: Leo Famulari <leo <at> famulari.name>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 29299 <at> debbugs.gnu.org (full text, mbox):
Hello,
Leo Famulari <leo <at> famulari.name> skribis:
> This is a naive adaptation of ((guix build utils)
> remove-store-references).
>
> It takes ~55 seconds to remove the references from Syncthing's
> executables (96 MiB) on an SSD. Any ideas about how to speed it up?
>
> * guix/build/go-build-system.scm (remove-store-reference, remove-go-references):
> New variables.
> (%standard-phases): Add 'remove-go-references' phase.
> * guix/build/go.scm (go-build): Add allow-go-reference? key.
[...]
> +(define* (remove-store-reference file file-name
> + #:optional (store (%store-directory)))
> + "Remove from FILE occurrences of FILE-NAME in STORE; return #t when FILE-NAME
> +is encountered in FILE, #f otherwise."
Maybe leave a note about the optimization opportunity.
> +(define* (remove-go-references #:key allow-go-reference?
> + inputs outputs #:allow-other-keys)
> + "Remove any references to the Go compiler from the compiled Go executable
> +files in OUTPUTS."
… and here a comment as to why we’re doing this, possibly linking to
previous discussions.
Otherwise LGTM, thank you!
Ludo’.
This bug report was last modified 7 years and 282 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.