GNU bug report logs -
#55903
[PATCHSET] Adding aerc
Previous Next
Reported by: "(" <paren <at> disroot.org>
Date: Sat, 11 Jun 2022 09:07:01 UTC
Severity: normal
Tags: patch
Done: Raghav Gururajan <rg <at> raghavgururajan.name>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
( via Guix-patches via schreef op ma 13-06-2022 om 07:56 [+0100]:
> +(define (gnu-triplet->go-architecture target)
> + (letrec-syntax
> + ((matches (syntax-rules (=>)
> + ((_ (target-prefix => architecture) rest ...)
> + (if (string-prefix? target-prefix target)
> + architecture
> + (matches rest ...)))
> + ((_) (error "unsupported target" target)))))
> + (matches ("x86_64" => "amd64")
> + ("i686" => "386")
> + ("aarch64" => "arm64")
> + ("arm" => "arm")
> + ("powerpc64le" => "ppc64le")
> + ("powerpc" => "ppc")
> + ("mips64el" => "mips64le")
> + ("riscv64" => "riscv64"))))
This looks like 'go-target' in (guix build-system go)?
(Haven't looked at the rest of the revised patches)
> + (with-output-to-file file
> + (lambda () (display text))))))))))
You can avoid global state here by using call-with-output-file.
Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 2 years and 199 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.