GNU bug report logs -
#39156
[PATCH] gnu: nim: Fix substitution in stdlib_osproc.c
Previous Next
Reported by: Jakub Kądziołka <kuba <at> kadziolka.net>
Date: Thu, 16 Jan 2020 22:15:01 UTC
Severity: normal
Tags: patch
Done: Tobias Geerinckx-Rice <me <at> tobias.gr>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
* gnu/packages/nim.scm (nim)[arguments](patch-more-shebangs): Patch the
string length too.
---
gnu/packages/nim.scm | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/nim.scm b/gnu/packages/nim.scm
index 5694eae63b..22dac0b58a 100644
--- a/gnu/packages/nim.scm
+++ b/gnu/packages/nim.scm
@@ -50,10 +50,12 @@
#t)))
(add-after 'patch-source-shebangs 'patch-more-shebangs
(lambda _
- (substitute* (append '("tests/stdlib/tosprocterminate.nim"
- "lib/pure/osproc.nim")
- (find-files "c_code" "stdlib_osproc.c"))
- (("/bin/sh") (which "sh")))
+ (let ((sh (which "sh")))
+ (substitute* '("tests/stdlib/tosprocterminate.nim"
+ "lib/pure/osproc.nim")
+ (("/bin/sh") sh))
+ (substitute* (find-files "c_code" "stdlib_osproc.c")
+ (("\"/bin/sh\", 7") (format "~s, ~s" sh (string-length sh)))))
#t))
(replace 'build
(lambda _
--
2.24.1
This bug report was last modified 5 years and 122 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.