mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 13:03:31 -04:00
gui-wm/river: add 9999
Signed-off-by: Violet Purcell <vimproved@inventati.org> Part-of: https://github.com/gentoo/guru/pull/421
This commit is contained in:
14
gui-wm/river/files/river-9999-fix-scdoc-path.patch
Normal file
14
gui-wm/river/files/river-9999-fix-scdoc-path.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- a/build.zig
|
||||
+++ b/build.zig
|
||||
@@ -252,8 +252,9 @@
|
||||
inline for (.{"river"}) |page| {
|
||||
// Workaround for https://github.com/ziglang/zig/issues/16369
|
||||
// Even passing a buffer to std.Build.Step.Run appears to be racy and occasionally deadlocks.
|
||||
- const scdoc = b.addSystemCommand(&.{ "/bin/sh", "-c", "scdoc < doc/" ++ page ++ ".1.scd" });
|
||||
+ // Fix: Ensure scdoc runs in the correct source directory to find .scd files
|
||||
+ const scdoc = b.addSystemCommand(&.{ "/bin/sh", "-c", b.fmt("cd {s} && scdoc < doc/{s}.1.scd", .{ b.build_root.path orelse ".", page }) });
|
||||
// This makes the caching work for the Workaround, and the extra argument is ignored by /bin/sh.
|
||||
scdoc.addFileArg(b.path("doc/" ++ page ++ ".1.scd"));
|
||||
|
||||
const stdout = scdoc.captureStdOut();
|
||||
b.getInstallStep().dependOn(&b.addInstallFile(stdout, "share/man/man1/" ++ page ++ ".1").step);
|
||||
Reference in New Issue
Block a user