Commit Graph

306427 Commits

Author SHA1 Message Date
gutteridge 791da06dc8 installboot.8: reflect current evbmips support 2024-06-01 20:19:41 +00:00
rillig 9979fcb6e2 make: fix memory leak in realpath cache 2024-06-01 20:19:40 +00:00
rillig 518dc17b32 tests/make: test more modifiers and special variables 2024-06-01 18:44:05 +00:00
sjg aee3d42c8f Run check-expect.lua in .CURDIR 2024-06-01 15:54:40 +00:00
thorpej 85e843ca83 Don't include both <lwp.h> and <compat/include/lwp.h>. 2024-06-01 13:33:46 +00:00
rillig b9ffd9f0c2 make: replace strncpy with snprintf
There's no point copying a MAXPATHLEN buffer in its entirety when only
the initial string part is ever used.
2024-06-01 12:27:31 +00:00
rillig 37273b4570 make: fix variable lifetime when initializing MAKE and .MAKE
The pathbuf buffer is aliased by abspath, which later escapes the block
where the buffer is declared.
2024-06-01 12:17:41 +00:00
rillig bef27c5733 tests/make: test invalid character in a late .for variable name
This covers the cleanup code that frees the earlier variable names when
a late variable name is invalid.
2024-06-01 11:24:11 +00:00
rillig eae7578437 tests/make: cover purging the realpath cache
In purge_relative_cached_realpaths, the hash table containing the cache
is modified while being iterated, which needs extra care, so add a test
that covers this code in at least a single simple scenario.
2024-06-01 11:06:17 +00:00
martin 74b93bff11 Fix typo in previous 2024-06-01 10:17:12 +00:00
rillig 241c9849b3 make: require return value of HashIter_Next to be used
This would have prevented an endless loop in
purge_relative_cached_realpaths.
2024-06-01 10:10:50 +00:00
rillig cdbdfe2384 tests/make: require all expected messages to be listed in the .mk files 2024-06-01 10:06:23 +00:00
tsutsui 4f42adff2a Don't try to set non-POSIX struct stat members on tools builds.
Fixes PR/58278 (src/tools/gzip build failed on Cygwin).
2024-06-01 09:45:36 +00:00
sjg 7aee84d4aa make: ensure loop termination in purge_relative_cached_realpaths
You cannot ignore the return from HashIter_Next
2024-06-01 07:37:19 +00:00
sjg cdcc95b114 make: add .export-all
An explicit syntax for exporting all global variables is much safer
than allowing .export with no argument to do the same.

Add .export-all and have .export with no argument throw a warning saying
to use .export-all

Reviewed by: rillig
2024-06-01 06:26:36 +00:00
rillig f8e0665918 make: remove unused VARE_EVAL_KEEP_DOLLAR 2024-06-01 05:08:48 +00:00
tsutsui 8b057ce4a3 Note about import of mkhybrid as a tool. 2024-05-31 21:07:40 +00:00
tsutsui 00acf8c80e Note about current status. 2024-05-31 21:04:22 +00:00
tsutsui fbc71c25d4 Use tools/mkhybrid as MKISOFS for mac68k and future macppc. 2024-05-31 20:58:52 +00:00
tsutsui 1fe42822fe Drop -data-change-warn from MKISOFS_FLAGS.
It's available only on cdrtools-3.x and later.
2024-05-31 20:57:32 +00:00
tsutsui 25b14f946f Build mac68k and macppc iso images using tools/mkhybrid. 2024-05-31 20:54:33 +00:00
tsutsui 09b5dada8b Build mkhybrid as a build tool. 2024-05-31 20:52:58 +00:00
tsutsui fdd5a63245 Pull malloc related fixes from cdrtools-2.01.
This seems to fix SIGSEGV during free(3) in write.c:write_one_file().
2024-05-31 20:50:48 +00:00
tsutsui df2645b420 Tweak OPTION_* definitions to reduce diffs from mkisofs-1.13. 2024-05-31 20:49:44 +00:00
tsutsui 61957e4641 Pull -graft-points option from mkisofs-1.13 and cdrtools-2.01.
Also remove #ifdef APPLE_HYB for NON-HFS changes to reduce diffs.
2024-05-31 20:48:22 +00:00
tsutsui b1bd5b8fae Pull options -hide-joliet-trans-tbl and -hide-rr-moved from mkisofs-1.13. 2024-05-31 20:46:19 +00:00
tsutsui 61549db5f1 Appease more warnings and remove unused getopt functions. 2024-05-31 20:44:36 +00:00
tsutsui d8b35192d7 Use HAVE_CONFIG_H to include <stdlib.h> and <string.h> in getopt sources. 2024-05-31 20:41:50 +00:00
tsutsui b3743583f0 Check <stdlib.h> and <flock.h> in configure and regen config.h. 2024-05-31 20:40:06 +00:00
tsutsui 76c5065a9f Tweak and regen configure using autoconf-2.13 to use pkgsrc tools. 2024-05-31 20:37:55 +00:00
tsutsui ab20b516c9 Always use local getopt.h as cdrtools-2.01 did. 2024-05-31 20:36:24 +00:00
tsutsui d663fb0928 Remove ancient rlimit hacks for NetBSD disabled in cdrtools-2.01. 2024-05-31 20:34:18 +00:00
tsutsui a56b9f7088 Don't redefine SYSTEM_ID_DEFAULT if it's specified in CPPFLAGS. 2024-05-31 20:33:12 +00:00
tsutsui 5597b179bd Remove duplicated SYSTEM_ID_DEFAULT definitions. 2024-05-31 20:32:03 +00:00
tsutsui a11dc48b63 Appease discard-const warnings. 2024-05-31 20:31:05 +00:00
tsutsui 3acbd1aa78 Suppress implicit declaration warnings. 2024-05-31 20:29:24 +00:00
tsutsui 6a13daf634 Update mkhybrid Makefile for NetBSD's tools builds. 2024-05-31 20:27:19 +00:00
tsutsui 7804f23efd Make newer BSD Licensed libfile sources build as tools. 2024-05-31 20:25:41 +00:00
tsutsui 785d5ade45 Pull changes from mkisofs-1.12.1 to avoid statvfs(2). 2024-05-31 20:23:33 +00:00
rillig 29b142dfe2 make: merge functions that parse modifier parts
This commit subtly changes the behavior for the :gmtime and :localtime
modifiers, but only in irrelevant cases since the time value must be an
integer, and neither '\' nor ':' nor '$' may occur in these values.
2024-05-31 20:21:34 +00:00
tsutsui fd4241d590 Remove dependencies on non-existent exclude.h. 2024-05-31 20:21:06 +00:00
tsutsui 75490c835a Import BSD licensed libfile for mkhybrid builds from cdrtools-3.01.
- unnecessary files for tools build are not imported
- file.c is renamed to lfile.c to avoid conflict with libhfs_iso
- RCSId strings are trimmed
2024-05-31 19:52:25 +00:00
tsutsui ddaa4e7dfc Import mkhybrid from OpenBSD 7.3 to create ISO9660/HFS hybrid ISO images.
- files in libfile except proto.h prepared by OpenBSD are not imported
  due to non-standard license
  (newer BSD Licensed versions will be imported later)
- unnecessary files for tools build are not imported
- RCSId strings are trimmed to avoid unintended substitutions

Proposed on tech-toolchain@:
 https://mail-index.netbsd.org/tech-toolchain/2024/05/25/msg004355.html
2024-05-31 19:49:02 +00:00
skrll 942f913628 Add more ABI register defines - should have been committed with previous
change.
2024-05-31 13:11:41 +00:00
rillig 0fbf3fce65 tests/make: replace or document .error in tests
The text 'Missing argument for ".error"' in an .exp file may be a hint
for an accidentally broken test, so eliminate them as far as possible.
2024-05-31 07:13:12 +00:00
rillig 72b6692e9f make: simplify expression in iteration over hash tables 2024-05-31 07:11:12 +00:00
rillig 2864ddb2e9 make: clean up API for iterating over hash tables 2024-05-31 05:50:11 +00:00
riastradh 9017c2c0e2 nd_timer: Update la_numheld when we clear la_hold (a.k.a. ln_hold).
Followup for PR kern/58297 fix.  Patch by mlelstv@.

PR kern/58301
2024-05-30 23:00:39 +00:00
rillig 880d6717fe make: don't log anything when freeing memory 2024-05-30 21:50:34 +00:00
skrll 95bbc8c712 Annotate the RISC-V signal trampoline with CFI attributes. 2024-05-30 15:56:43 +00:00