GNU bug report logs -
#63793
[PATCH] gnu: sbsigntools: Update to 0.9.5.
Previous Next
Reported by: kiasoc5 <kiasoc5 <at> disroot.org>
Date: Mon, 29 May 2023 21:55:02 UTC
Severity: normal
Tags: patch
Merged with 63635
Done: Josselin Poiret <dev <at> jpoiret.xyz>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hi kiasoc5,
kiasoc5 <kiasoc5 <at> disroot.org> writes:
> What is the difference between this
>
>> - (lambda _
>> - (substitute* "lib/ccan.git/tools/create-ccan-tree"
>> - (("#!/bin/bash")
>> - (string-append "#!"
>> - #$(this-package-native-input "bash")
>> - "/bin/bash")))))
>
> and this?
>
>> + (lambda* (#:key inputs native-inputs #:allow-other-keys)
>> + (substitute* "lib/ccan.git/tools/create-ccan-tree"
>> + (("#!/bin/bash")
>> + (string-append "#!"
>> + (search-input-file (or native-inputs inputs)
>> + "/bin/bash"))))))
>
> I meant to search for bash as a native input but I guess they are different.
In general, the first method doesn't compose well with package
transformations that replace inputs, since it will still refer to the
original bash input. The bottom one will always search for a /bin/bash
binary among all the inputs, so will pick up a new one if the input is
replaced. Also, in general, inside phases, if you're building natively,
native-inputs is always #f and inputs also contains the native inputs,
hence the need for that (or ...) form.
HTH,
--
Josselin Poiret
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 1 year and 350 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.