aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2026-04-26 19:30:17 +0000
committerEd Maste <emaste@FreeBSD.org>2026-04-30 16:27:55 +0000
commit0b759788833e00906b80e0edb0e172115d4240cb (patch)
tree54e77b08957758cd4227438f0c55e36138b77dec
parentaafcea441a3a8ef85f4ad01dddba79f11fcd2dbd (diff)
makeman.lua: Downgrade `make showconfig` error to warning
The sh-based makeman silently ignored errors from `make showconfig`. Ignore errors also from makeman.lua (but emit a warning). We may want to revisit this in the future, but want makeman.lua to behave identically for now. PR: 294822 Reviewed by: kevans Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D56663 (cherry picked from commit ea27ec183d0ff26e1273202841a02041b6d93955)
-rw-r--r--tools/build/options/makeman.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/build/options/makeman.lua b/tools/build/options/makeman.lua
index af641ff6d638..a7b577d76efb 100644
--- a/tools/build/options/makeman.lua
+++ b/tools/build/options/makeman.lua
@@ -192,7 +192,10 @@ local function run_make(args)
local _, exit_type, exit_code = assert(sys_wait.wait(pid))
assert(exit_type == "exited", "make exited with wrong status")
- assert(exit_code == 0, "make exited unsuccessfully")
+ if exit_code ~= 0 then
+ io.stderr:write("Warning: make exited unsuccessfully\n" ..
+ "cmd: make " .. table.concat(args, " ") .. "\n")
+ end
return output
end