From ea3cbbd89c92c107b719e121e2675d22a75585f7 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 28 Apr 2025 14:27:49 -0700 Subject: Use our own pax for extracting archives This reduces dependencies and variability in pax implementations. --- ninja.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ninja.lua') diff --git a/ninja.lua b/ninja.lua index 7b6ed3eb..ca6822b3 100644 --- a/ninja.lua +++ b/ninja.lua @@ -392,12 +392,16 @@ end function fetch(method) local script + local deps = {'|', '$dir/ver', script} if method == 'local' then script = '$dir/fetch.sh' else script = '$basedir/scripts/fetch-'..method..'.sh' + if method == 'curl' then + table.insert(deps, '$builddir/pkg/pax/host/pax') + end end - build('fetch', '$dir/fetch', {'|', '$dir/ver', script}, {script=script}) + build('fetch', '$dir/fetch', deps, {script=script}) if basedir ~= '.' then build('phony', '$gendir/fetch', '$dir/fetch') end -- cgit v1.2.3