1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/mepo/0003-zig-0.13-std.ChildProcess-std.process.Child.patch
3 # Copyright (C) 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 From 65113031c6b0ce63e46f8fba43df268a32a1bb65 Mon Sep 17 00:00:00 2001
15 From: "lauren n. liberda" <lauren@selfisekai.rocks>
16 Date: Sat, 8 Jun 2024 02:40:54 +0200
17 Subject: [PATCH] zig 0.13: std.ChildProcess -> std.process.Child
20 src/api/shellpipe_async.zig | 2 +-
21 src/api/shellpipe_sync.zig | 2 +-
22 2 files changed, 2 insertions(+), 2 deletions(-)
24 diff --git a/src/api/shellpipe_async.zig b/src/api/shellpipe_async.zig
25 index 9ebcfbf..e0f722e 100644
26 --- a/src/api/shellpipe_async.zig
27 +++ b/src/api/shellpipe_async.zig
28 @@ -60,7 +60,7 @@ fn async_shellpipe_run_catch_errors(mepo: *Mepo, unique_handle_id: i8, cmd: []co
29 const max_output_bytes: usize = 50 * 1024;
30 var arena = std.heap.ArenaAllocator.init(mepo.allocator);
32 - var child = std.ChildProcess.init(argv[0..], arena.allocator());
33 + var child = std.process.Child.init(argv[0..], arena.allocator());
34 child.stdin_behavior = .Ignore;
35 child.stdout_behavior = .Pipe;
36 const env = try get_env_vars(mepo, mepo.allocator);
37 diff --git a/src/api/shellpipe_sync.zig b/src/api/shellpipe_sync.zig
38 index 133b8c7..d0f6186 100644
39 --- a/src/api/shellpipe_sync.zig
40 +++ b/src/api/shellpipe_sync.zig
41 @@ -32,7 +32,7 @@ fn shellpipe_sync(mepo: *Mepo, cmd: []const u8) !void {
43 const env_vars = try get_env_vars(mepo, arena.allocator());
44 const args = [_][]const u8{ "sh", "-c", cmd };
45 - const process_result = try std.ChildProcess.run(.{
46 + const process_result = try std.process.Child.run(.{
47 .allocator = arena.allocator(),