From 0f05aec5635d7b32f4c810f89c09e686d4a9d85c Mon Sep 17 00:00:00 2001 From: John Gabriele Date: Tue, 9 Mar 2021 14:39:09 -0500 Subject: [PATCH 1/3] Update os.c Doc typo --- src/core/os.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/os.c b/src/core/os.c index 2ebb09c0..64cc1b34 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -2085,7 +2085,7 @@ static const JanetReg os_cfuns[] = { #ifndef JANET_NO_PROCESSES { "os/execute", os_execute, - JDOC("(os/execute args &opts flags env)\n\n" + JDOC("(os/execute args &opt flags env)\n\n" "Execute a program on the system and pass it string arguments. `flags` " "is a keyword that modifies how the program will execute.\n\n" "* :e - enables passing an environment to the program. Without :e, the " @@ -2105,7 +2105,7 @@ static const JanetReg os_cfuns[] = { }, { "os/spawn", os_spawn, - JDOC("(os/spawn args &opts flags env)\n\n" + JDOC("(os/spawn args &opt flags env)\n\n" "Execute a program on the system and return a handle to the process. Otherwise, the " "same arguments as os/execute. Does not wait for the process.") }, From 546437d799f4cbc1dd86a015eac3b9ab405130c6 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Wed, 10 Mar 2021 07:57:53 +0100 Subject: [PATCH 2/3] meson.build: defaults to c99 for "build.c_std" Since Meson 0.51, there are special build options for "native:true" builds, prefixed with "build.". This change breaks cross builds because `janet-boot/src_core_asm.c` is no longer built with `-std=c99`: FAILED: janet-boot.p/src_core_asm.c.o /usr/bin/gcc -Ijanet-boot.p -I. -I.. -I../src/include -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -pthread -DJANET_BOOTSTRAP -MD -MQ janet-boot.p/src_core_asm.c.o -MF janet-boot.p/src_core_asm.c.o.d -o janet-boot.p/src_core_asm.c.o -c ../src/core/asm.c ../src/core/asm.c: In function 'janet_disasm_bytecode': ../src/core/asm.c:866:5: error: 'for' loop initial declarations are only allowed in C99 mode for (int32_t i = 0; i < def->bytecode_length; i++) { ^ Fixes: - http://autobuild.buildroot.net/results/355e0992338a8d132050517f83a3884606b00529 Signed-off-by: Fabrice Fontaine --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 1b326111..d3a2d399 100644 --- a/meson.build +++ b/meson.build @@ -19,7 +19,7 @@ # IN THE SOFTWARE. project('janet', 'c', - default_options : ['c_std=c99', 'b_lundef=false', 'default_library=both'], + default_options : ['c_std=c99', 'build.c_std=c99', 'b_lundef=false', 'default_library=both'], version : '1.15.3') # Global settings From 84f0ab5356eb54d64cf0aadd1acef1acc1a770f4 Mon Sep 17 00:00:00 2001 From: Michael Camilleri Date: Wed, 10 Mar 2021 17:11:12 +0900 Subject: [PATCH 3/3] Fix argument passing to os/realpath in jpm --- jpm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jpm b/jpm index 320393e7..31090499 100755 --- a/jpm +++ b/jpm @@ -44,7 +44,7 @@ (defn- try-real [path] "If os/realpath fails just use normal path." - (try (os/realpath) ([_] path))) + (try (os/realpath path) ([_] path))) (defn- install-paths [] {:headerpath (try-real (string exe-dir "/../include/janet"))