head 1.2; access; symbols pkgsrc-2026Q2:1.1.0.22 pkgsrc-2026Q2-base:1.1 pkgsrc-2026Q1:1.1.0.20 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.18 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.16 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.14 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.12 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.10 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.8 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.6 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.4 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.2 pkgsrc-2023Q4-base:1.1; locks; strict; comment @ * @; 1.2 date 2026.07.13.09.55.02; author wiz; state dead; branches; next 1.1; commitid I1wNWWmeZbrHCtNG; 1.1 date 2023.11.16.09.39.48; author nia; state Exp; branches; next ; commitid jBihZ1Nc1PKzIOME; desc @@ 1.2 log @samurai: update to 1.3. New features Add graph subtool. Add -l, build scheduling based on load-average (disabled by default). Print exit status of failed commands. Forward interrupting signals SIGTERM, SIGINT, SIGHUP, and SIGQUIT to child processess. Minor compatibility fixes Allow stray indented, but otherwise empty lines. Add micro version number to --version output. Handle escaped newlines in depfiles. Bug fixes Fix NULL dereference during dry run with phony edges (#66). Fix NULL dereference when rule has empty rspfile, rspfile_content, or command (#67, #68). Fix division by 0 when manifest contains only a single phony edge (#69). Fix mtime propogation of phony edges with non-phony inputs, whose output doesn't exist. Internal cleanups Simplify path list and evalstring data structures. Reduce use of POSIX APIs. Remove list subtool, since it was redundant with the manual. Use stricter warning flags. @ text @$NetBSD: patch-util.c,v 1.1 2023/11/16 09:39:48 nia Exp $ Fix overlapping definition with libc. --- util.c.orig 2020-12-17 01:31:33.000000000 +0000 +++ util.c @@@@ -58,7 +58,7 @@@@ xmalloc(size_t n) } static void * -reallocarray(void *p, size_t n, size_t m) +samurai_reallocarray(void *p, size_t n, size_t m) { if (m && n > SIZE_MAX / m) { errno = ENOMEM; @@@@ -70,7 +70,7 @@@@ reallocarray(void *p, size_t n, size_t m void * xreallocarray(void *p, size_t n, size_t m) { - p = reallocarray(p, n, m); + p = samurai_reallocarray(p, n, m); if (!p) fatal("reallocarray:"); @ 1.1 log @samurai: Fix overlapping definition with libc. @ text @d1 1 a1 1 $NetBSD$ @