[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#48729] [PATCH v2 05/47] gnu: Add go-github-com-keybase-go-ps.
From: |
Maxime Devos |
Subject: |
[bug#48729] [PATCH v2 05/47] gnu: Add go-github-com-keybase-go-ps. |
Date: |
Sat, 05 Jun 2021 16:42:15 +0200 |
User-agent: |
Evolution 3.34.2 |
Raghav Gururajan via Guix-patches via schreef op do 03-06-2021 om 05:57 [-0400]:
> + (modify-phases %standard-phases
> + (add-after 'unpack 'fix-tests
> + (lambda* (#:key inputs #:allow-other-keys)
> + (substitute* (find-files "." ".*test\\.go")
> + (("/bin/sleep")
> + (string-append (assoc-ref inputs "coreutils")
> + "/bin/sleep")))
When cross-compiling, coreutils is not in 'inputs', but in 'native-inputs',
right?
So this would lead to a build error when cross-compiling.
(assoc-ref inputs "coreutils") would return #f, thus you'd get an exception
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure string-append: Wrong type (expecting string): #f
I would make this (untested):
(sring-append (assoc-ref (or native-inputs inputs) "coreutils") "/bin/sleep")
Greetings,
Maxime.
signature.asc
Description: This is a digitally signed message part
- [bug#48729] [PATCH v2 01/47] gnu: Add go-github-com-rakyll-statik., Raghav Gururajan, 2021/06/03
- [bug#48729] [PATCH v2 02/47] gnu: Add go-github-com-dchest-siphash., Raghav Gururajan, 2021/06/03
- [bug#48729] [PATCH v2 03/47] gnu: Add go-github-com-emersion-go-autostart., Raghav Gururajan, 2021/06/03
- [bug#48729] [PATCH v2 04/47] gnu: Add go-github-com-apparentlymart-go-openvpn-mgmt., Raghav Gururajan, 2021/06/03
- [bug#48729] [PATCH v2 06/47] gnu: Add go-github-com-sevlyar-go-daemon., Raghav Gururajan, 2021/06/03
- [bug#48729] [PATCH v2 05/47] gnu: Add go-github-com-keybase-go-ps., Raghav Gururajan, 2021/06/03
- [bug#48729] [PATCH v2 05/47] gnu: Add go-github-com-keybase-go-ps.,
Maxime Devos <=
[bug#48729] [PATCH v2 07/47] gnu: Add go-torproject-org-pluggable-transports-goptlib., Raghav Gururajan, 2021/06/03
[bug#48729] [PATCH v2 08/47] gnu: Add go-github-com-willscott-goturn., Raghav Gururajan, 2021/06/03
[bug#48729] [PATCH v2 10/47] gnu: Add go-github-com-operatorfoundation-shapeshifter-ipc., Raghav Gururajan, 2021/06/03
[bug#48729] [PATCH v2 13/47] gnu: Add go-github-com-deckarep-golang-set., Raghav Gururajan, 2021/06/03
[bug#48729] [PATCH v2 12/47] gnu: Add go-github-com-blanu-dust., Raghav Gururajan, 2021/06/03
[bug#48729] [PATCH v2 14/47] gnu: Add go-github-com-operatorfoundation-monolith-go., Raghav Gururajan, 2021/06/03
[bug#48729] [PATCH v2 17/47] gnu: Add go-github-com-aead-chacha20., Raghav Gururajan, 2021/06/03