GNU bug report logs - #57722
[PATCH] gnu: ipfs: Install bash completion.

Previous Next

Package: guix-patches;

Reported by: Michael Rohleder <mike <at> rohleder.de>

Date: Sat, 10 Sep 2022 21:49:01 UTC

Severity: normal

Tags: patch

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Maxime Devos <maximedevos <at> telenet.be>
To: Michael Rohleder <mike <at> rohleder.de>, 57722 <at> debbugs.gnu.org
Subject: [bug#57722] [PATCH] gnu: ipfs: Install bash completion.
Date: Mon, 12 Sep 2022 13:21:00 +0200
[Message part 1 (text/plain, inline)]

On 11-09-2022 13:47, Maxime Devos wrote:
> 
> and in the build phase, do two separate cases: when compiling natively, 
> use the ipfs from #$output as you're doing, when cross-compiling, use 
> the ipfs from $PATH:
> 
>    (with-output-to-file (string-append completiondir "/ipfs")
>      (invoke #$(if (%current-target-system)
>                    "ipfs"
>                    #~(string-append #$output "/bin/ipfs"))
>              "commands" "completion" "bash"))
> 

Oops that incorrect, with-output-to-file is not a macro but a procedure 
accepting a thunk, try

(with-output-to-file [...]
  (lambda ()
    (invoke ...)))

instead.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

This bug report was last modified 2 years and 249 days ago.

Previous Next


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