12016-03-07 Simon J. Gerraty <sjg@bad.crufty.net> 2 3 * Makefile (MAKE_VERSION): 20160307 4 Merge with NetBSD make, pick up 5 o var.c: fix :ts\nnn to be octal by default. 6 o meta.c: meta_finish() to cleanup memory. 7 82016-02-26 Simon J. Gerraty <sjg@bad.crufty.net> 9 10 * Makefile (MAKE_VERSION): 20160226 11 Merge with NetBSD make, pick up 12 o meta.c: allow meta file for makeDepend if makefiles want it. 13 142016-02-19 Simon J. Gerraty <sjg@bad.crufty.net> 15 16 * var.c: default .MAKE.SAVE_DOLLARS to FALSE 17 for backwards compatability. 18 19 * Makefile (MAKE_VERSION): 20160220 20 Merge with NetBSD make, pick up 21 o var.c: add knob to control handling of '$$' in := 22 232016-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 24 25 * Makefile (MAKE_VERSION): 20160218 26 Merge with NetBSD make, pick up 27 o var.c: add .export-literal allows us to fix sys.clean-env.mk 28 post the changes to Var_Subst. 29 Var_Subst now takes flags, and does not consume '$$' in := 30 312016-02-17 Simon J. Gerraty <sjg@bad.crufty.net> 32 33 * Makefile (MAKE_VERSION): 20160217 34 Merge with NetBSD make, pick up 35 o var.c: preserve '$$' in := 36 o parse.c: add .dinclude for handling included 37 makefile like .depend 38 392015-12-20 Simon J. Gerraty <sjg@bad.crufty.net> 40 41 * Makefile (MAKE_VERSION): 20151220 42 Merge with NetBSD make, pick up 43 o suff.c: re-initialize suffNull when clearing suffixes. 44 452015-12-01 Simon J. Gerraty <sjg@bad.crufty.net> 46 47 * Makefile (MAKE_VERSION): 20151201 48 Merge with NetBSD make, pick up 49 o cond.c: CondCvtArg: avoid access beyond end of empty buffer. 50 o meta.c: meta_oodate: use lstat(2) for checking link target 51 in case it is a symlink. 52 o var.c: avoid calling brk_string and Var_Export1 with empty 53 strings. 54 552015-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 56 57 * Makefile (MAKE_VERSION): 20151126 58 Merge with NetBSD make, pick up 59 o parse.c: ParseTrackInput don't access beyond 60 end of old value. 61 622015-10-22 Simon J. Gerraty <sjg@bad.crufty.net> 63 64 * Makefile (MAKE_VERSION): 20151022 65 66 * Add support for BSD/OS which lacks inttypes.h 67 and really needs sys/param.h for sys/sysctl.h 68 also 'type' is not a shell builtin. 69 70 * var.c: eliminate uint32_t and need for inttypes.h 71 72 * main.c: PrintOnError flush stdout before run .ERROR 73 74 * parse.c: cope with _SC_PAGESIZE not being defined. 75 76 772015-10-20 Simon J. Gerraty <sjg@bad.crufty.net> 78 79 * Makefile (MAKE_VERSION): 20151020 80 Merge with NetBSD make, pick up 81 o var.c: fix uninitialized var 82 832015-10-12 Simon J. Gerraty <sjg@bad.crufty.net> 84 85 * var.c: the conditional expressions used with ':?' can be 86 expensive, if already discarding do not evaluate or expand 87 anything. 88 892015-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 90 91 * Makefile (MAKE_VERSION): 20151010 92 Merge with NetBSD make, pick up 93 o Add Boolean wantit flag to Var_Subst and Var_Parse 94 when FALSE we know we are discarding the result and can 95 skip operations like Cmd_Exec. 96 972015-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 98 99 * Makefile (MAKE_VERSION): 20151009 100 Merge with NetBSD make, pick up 101 o var.c: don't check for NULL before free() 102 o meta.c: meta_oodate, do not hard code ignore of makeDependfile 103 1042015-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 105 106 * Makefile (MAKE_VERSION): 20150910 107 Merge with NetBSD make, pick up 108 o main.c: with -w print Enter/Leaving messages for objdir too 109 if necessary. 110 o centralize shell metachar handling 111 112 * FILES: add metachar.[ch] 113 1142015-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 115 116 * Makefile (MAKE_VERSION): 20150606 117 Merge with NetBSD make, pick up 118 o make.1: document .OBJDIR target 119 1202015-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 121 122 * Makefile (MAKE_VERSION): 20150505 123 Merge with NetBSD make, pick up 124 o cond.c: be strict about lhs of comparison when evaluating .if 125 but less so when called from variable expansion. 126 o unit-tests/cond2.mk: test various error conditions 127 1282015-05-04 Simon J. Gerraty <sjg@bad.crufty.net> 129 130 * machine.sh (MACHINE): Add Bitrig 131 patch from joerg@netbsd.org 132 1332015-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 134 135 * Makefile (MAKE_VERSION): 20150418 136 Merge with NetBSD make, pick up 137 o job.c: use memmove() rather than memcpy() 138 139 * unit-tests/varshell.mk: SunOS cannot handle the TERMINATED_BY_SIGNAL 140 case, so skip it. 141 1422015-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 143 144 * Makefile (MAKE_VERSION): 20150411 145 bump version - only mk/ changes. 146 1472015-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 148 149 * Makefile (MAKE_VERSION): 20150410 150 Merge with NetBSD make, pick up 151 o document different handling of '-' in jobs mode vs compat 152 o fix jobs mode so that '-' only applies to whole job 153 when shell lacks hasErrCtl 154 o meta.c: use separate vars to track lcwd and latestdir (read) 155 per process 156 1572015-04-01 Simon J. Gerraty <sjg@bad.crufty.net> 158 159 * Makefile (MAKE_VERSION): 20150401 160 Merge with NetBSD make, pick up 161 o meta.c: close meta file in child 162 163 * Makefile: use BINDIR.bmake if set. 164 Same for MANDIR and SHAREDIR 165 Handy for testing release candidates 166 in various environments. 167 1682015-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 169 170 * move initialization of savederr to block where it is used 171 to avoid spurious warning from gcc5 172 1732014-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 174 175 * Makefile (MAKE_VERSION): 20141111 176 just a cooler number 177 1782014-11-05 Simon J. Gerraty <sjg@bad.crufty.net> 179 180 * Makefile (MAKE_VERSION): 20141105 181 Merge with NetBSD make, pick up 182 o revert major overhaul of suffix handling 183 and POSIX compliance - too much breakage 184 and impossible to make backwards compatible. 185 o we still have the new unit test structure which is ok. 186 o meta.c ensure "-- filemon" is at start of line. 187 1882014-09-17 Simon J. Gerraty <sjg@bad.crufty.net> 189 190 * configure.in: test that result of getconf PATH_MAX is numeric 191 and discard if not. Apparently needed for Hurd. 192 1932014-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 194 195 * Makefile (MAKE_VERSION): 20140830 196 Merge with NetBSD make, pick up 197 o major overhaul of suffix handling 198 o improved POSIX compliance 199 o overhauled unit-tests 200 2012014-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 202 203 * Makefile (MAKE_VERSION): 20140620 204 Merge with NetBSD make, pick up 205 o var.c return varNoError rather than var_Error for ::= modifiers. 206 2072014-05-22 Simon J. Gerraty <sjg@bad.crufty.net> 208 209 * Makefile (MAKE_VERSION): 20140522 210 Merge with NetBSD make, pick up 211 o var.c detect some parse errors. 212 2132014-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 214 215 * Fix spelling errors - patch from Pedro Giffuni 216 2172014-02-14 Simon J. Gerraty <sjg@bad.crufty.net> 218 219 * Makefile (MAKE_VERSION): 20140214 220 Merge with NetBSD make, pick up 221 o .INCLUDEFROM* 222 o use Var_Value to get MAKEOBJDIR[PREFIX] 223 o reduced realloc'ign in brk_string. 224 * configure.in: add a check for compiler supporting __func__ 225 2262014-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 227 228 * boot-strap: ignore mksrc=none 229 2302014-01-02 Simon J. Gerraty <sjg@bad.crufty.net> 231 232 * Makefile (DEFAULT_SYS_PATH?): use just ${prefix}/share/mk 233 2342014-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 235 236 * Makefile (MAKE_VERSION): 20140101 237 * configure.in: set bmake_path_max to min(_SC_PATH_MAX,1024) 238 * Makefile.config: defined BMAKE_PATH_MAX to bmake_path_max 239 * make.h: use BMAKE_PATH_MAX if MAXPATHLEN not defined (needed for 240 Hurd) 241 * configure.in: Add AC_PREREQ and check for 242 sysctl; patch from Andrew Shadura andrewsh at debian.org 243 2442013-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 245 246 * Makefile (MAKE_VERSION): 20131010 247 * lose the const from arg to systcl to avoid problems on older BSDs. 248 2492013-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 250 251 * Makefile (MAKE_VERSION): 20131001 252 Merge with NetBSD make, pick up 253 o main.c: for NATIVE build sysctl to get MACHINE_ARCH from 254 hw.machine_arch if necessary. 255 o meta.c: meta_oodate - need to look at src of Link and target 256 of Move as well. 257 * main.c: check that CTL_HW and HW_MACHINE_ARCH exist. 258 provide __arraycount() if needed. 259 2602013-09-04 Simon J. Gerraty <sjg@bad.crufty.net> 261 262 * Makefile (MAKE_VERSION): 20130904 263 Merge with NetBSD make, pick up 264 o Add VAR_INTERNAL context, so that internal setting of 265 MAKEFILE does not override value set by makefiles. 266 2672013-09-02 Simon J. Gerraty <sjg@bad.crufty.net> 268 269 * Makefile (MAKE_VERSION): 20130902 270 Merge with NetBSD make, pick up 271 o CompatRunCommand: only apply shellErrFlag when errCheck is true 272 2732013-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 274 275 * Makefile (MAKE_VERSION): 20130828 276 Merge with NetBSD make, pick up 277 o Fix VAR :sh = syntax from Will Andrews at freebsd.org 278 o Call Job_SetPrefix() from Job_Init() so makefiles have 279 opportunity to set .MAKE.JOB.PREFIX 280 2812013-07-30 Simon J. Gerraty <sjg@bad.crufty.net> 282 283 * Makefile (MAKE_VERSION): 20130730 284 Merge with NetBSD make, pick up 285 o Allow suppression of --- job -- tokens by setting 286 .MAKE.JOB.PREFIX empty. 287 2882013-07-16 Simon J. Gerraty <sjg@bad.crufty.net> 289 290 * Makefile (MAKE_VERSION): 20130716 291 Merge with NetBSD make, pick up 292 o number of gmake compatibility tweaks 293 -w for gmake style entering/leaving messages 294 if .MAKE.LEVEL > 0 indicate it in progname "make[1]" etc. 295 handle MAKEFLAGS containing only letters. 296 o when overriding a GLOBAL variable on the command line, 297 delete it from GLOBAL context so -V doesn't show the wrong 298 value. 299 3002013-07-06 Simon J. Gerraty <sjg@bad.crufty.net> 301 302 * configure.in: We don't need MAKE_LEVEL_SAFE anymore. 303 304 * Makefile (MAKE_VERSION): 20130706 305 Merge with NetBSD make, pick up 306 o Shell_Init(): export shellErrFlag if commandShell hasErrCtl is 307 true so that CompatRunCommand() can use it, to ensure 308 consistent behavior with jobs mode. 309 o use MAKE_LEVEL_ENV to define the variable to propagate 310 .MAKE.LEVEL - currently set to MAKELEVEL (same as gmake). 311 o meta.c: use .MAKE.META.IGNORE_PATHS to allow customization of 312 paths to ignore. 313 3142013-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 315 316 * Makefile (MAKE_VERSION): 20130604 317 Merge with NetBSD make, pick up 318 o job.c: JobCreatePipe: do fcntl() after any tweaking of fd's 319 to avoid leaking descriptors. 320 3212013-05-28 Simon J. Gerraty <sjg@bad.crufty.net> 322 323 * Makefile (MAKE_VERSION): 20130528 324 Merge with NetBSD make, pick up 325 o var.c: cleanup some left-overs in VarHash() 326 3272013-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 328 329 * Makefile (MAKE_VERSION): 20130520 330 generate manifest from component FILES rather than have to 331 update FILES when mk/FILES changes. 332 3332013-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 334 335 * Makefile (MAKE_VERSION): 20130518 336 Merge with NetBSD make, pick up 337 o suff.c: don't skip all processsing for .PHONY targets 338 else wildcard srcs do not get expanded. 339 o var.c: expand name of variable to delete if necessary. 340 3412013-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 342 343 * Makefile (MAKE_VERSION): 20130330 344 Merge with NetBSD make, pick up 345 o meta.c: refine the handling of .OODATE in commands. 346 Rather than suppress command comparison for the entire script 347 as though .NOMETA_CMP had been used, only suppress it for the 348 one command line. 349 This allows something like ${.OODATE:M.NOMETA_CMP} to be used to 350 suppress comparison of a command without otherwise affecting it. 351 o make.1: document that 352 3532013-03-22 Simon J. Gerraty <sjg@bad.crufty.net> 354 355 * Makefile (MAKE_VERSION): 20130321 356 yes, not quite right but its a cooler number. 357 Merge with NetBSD make, pick up 358 o parse.c: fix ParseGmakeExport to be portable 359 and add a unit-test. 360 * meta.c: call meta_init() before makefiles are read and if built 361 with filemon support set .MAKE.PATH_FILEMON to _PATH_FILEMON 362 this let's makefiles test for support. 363 Call meta_mode_init() to process .MAKE.MODE. 364 3652013-03-13 Simon J. Gerraty <sjg@bad.crufty.net> 366 367 * Makefile (MAKE_VERSION): 20130305 368 Merge with NetBSD make, pick up 369 o run .STALE: target when a dependency from .depend is missing. 370 o job.c: add Job_RunTarget() for the above and .BEGIN 371 3722013-03-03 Simon J. Gerraty <sjg@bad.crufty.net> 373 374 * Makefile (MAKE_VERSION): 20130303 375 Merge with NetBSD make, pick up 376 o main.c: set .MAKE.OS to utsname.sysname 377 o job.c: more checks for read and poll errors 378 o var.c: lose VarChangeCase() saves 4% time 379 3802013-03-02 Simon J. Gerraty <sjg@bad.crufty.net> 381 382 * boot-strap: remove MAKEOBJDIRPREFIX from environment since we 383 want to use MAKEOBJDIR 384 3852013-01-27 Simon J. Gerraty <sjg@bad.crufty.net> 386 387 * Merge with NetBSD make, pick up 388 o make.1: more info on how shell commands are handled. 389 o job.c,main.c: detect write errors to job pipes. 390 3912013-01-25 Simon J. Gerraty <sjg@bad.crufty.net> 392 393 * Makefile (MAKE_VERSION): 20130123 394 Merge with NetBSD make, pick up 395 o meta.c: if script uses .OODATE and meta_oodate() decides 396 rebuild is needed, .OODATE will be empty - set it to .ALLSRC. 397 o var.c: in debug output indicate which variabale modifiers 398 apply to. 399 o remove Check_Cwd logic the makefiles have been fixed. 400 4012012-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 402 403 * makefile.in: add a simple makefile for folk who insist on 404 ./configure; make; make install 405 it just runs boot-strap 406 * include mk/* to accommodate the above 407 * boot-strap: re-work to accommodate the above 408 mksrc defaults to $Mydir/mk 409 allow op={configure,build,install,clean,all} 410 add options to facilitate install 411 * Makefile.config.in: just the bits set by configure 412 * Makefile: bump version to 20121212 413 abandon Makefile.in (NetBSD Makefile) 414 leverage mk/* instead 415 * configure.in: ensure srcdir is absolute 416 4172012-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 418 419 * Makefile.in (MAKE_VERSION): 20121111 420 fix generation of bmake.cat1 421 4222012-11-09 Simon J. Gerraty <sjg@bad.crufty.net> 423 424 * Makefile.in (MAKE_VERSION): 20121109 425 Merge with NetBSD make, pick up 426 o make.c: MakeBuildChild: return 0 so search continues if a 427 .ORDER dependency is detected. 428 o unit-tests/order: test the above 429 4302012-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 431 432 * Makefile.in (MAKE_VERSION): 20121102 433 Merge with NetBSD make, pick up 434 o cond.c: allow cond_state[] to grow. 435 In meta mode with a very large tree, we can hit the limit 436 while processing dirdeps. 437 4382012-10-25 Simon J. Gerraty <sjg@bad.crufty.net> 439 440 * Makefile.in: we need to use ${srcdir} not ${.CURDIR} 441 4422012-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 443 444 * Makefile.in (MAKE_VERSION): 20121010 445 o protect syntax that only bmake parses correctly. 446 o remove auto setting of FORCE_MACHINE, use configure's 447 --with-force-machine=whatever if that is desired. 448 4492012-10-08 Simon J. Gerraty <sjg@bad.crufty.net> 450 451 * Makefile.in: do not lose history from make.1 when generating bmake.1 452 4532012-10-07 Simon J. Gerraty <sjg@bad.crufty.net> 454 455 * Makefile.in (MAKE_VERSION): 20121007 456 Merge with NetBSD make, pick up 457 o compat.c: ignore empty commands - same as jobs mode. 458 o make.1: document meta chars that cause use of shell 459 4602012-09-11 Simon J. Gerraty <sjg@bad.crufty.net> 461 462 * Makefile.in (MAKE_VERSION): bump version to 20120911 463 * bsd.after-import.mk: include Makefile.inc early and allow it to 464 override PROG 465 4662012-08-31 Simon J. Gerraty <sjg@bad.crufty.net> 467 468 * Makefile.in (MAKE_VERSION): bump version to 20120831 469 Merge with NetBSD make, pick up 470 o cast sizeof() to int for comparison 471 o minor make.1 tweak 472 4732012-08-30 Simon J. Gerraty <sjg@bad.crufty.net> 474 475 * Makefile.in (MAKE_VERSION): bump version to 20120830 476 Merge with NetBSD make, pick up 477 o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V 478 o debug flag -dV causes -V to show raw value regardless. 479 4802012-07-05 Simon J. Gerraty <sjg@bad.crufty.net> 481 482 * bsd.after-import.mk (after-import): ensure unit-tests/Makefile 483 gets SRCTOP set. 484 4852012-07-04 Simon J. Gerraty <sjg@bad.crufty.net> 486 487 * Makefile.in (MAKE_VERSION): bump version to 20120704 488 Merge with NetBSD make, pick up 489 o Job_ParseShell should call Shell_Init if it has been 490 previously called. 491 * Makefile.in: set USE_META based on configure result. 492 also .PARSEDIR is safer indicator of bmake. 493 4942012-06-26 Simon J. Gerraty <sjg@bad.crufty.net> 495 496 * Makefile.in: bump version to 20120626 497 ensure CPPFLAGS is in CFLAGS 498 * meta.c: avoid nested externs 499 * bsd.after-import.mk: avoid ${.CURDIR}/Makefile as target 500 5012012-06-20 Simon J. Gerraty <sjg@bad.crufty.net> 502 503 * Makefile.in (MAKE_VERSION): bump version to 20120620 504 Merge with NetBSD make, pick up 505 o make_malloc.c: avoid including make_malloc.h again 506 507 * Makefile.in: avoid bmake only syntax or protect with 508 .if defined(.MAKE.LEVEL) 509 * bsd.after-import.mk: replace .-include with .sinclude 510 ensure? SRCTOP gets a value 511 * configure.in: look for filemon.h in /usr/include/dev/filemon first. 512 5132012-06-19 Simon J. Gerraty <sjg@bad.crufty.net> 514 515 * Makefile.in (MAKE_VERSION): bump version to 20120612 516 Merge with NetBSD make, pick up 517 o use MAKE_ATTR_* rather than those defined by cdefs.h or compiler 518 for greater portability. 519 o unit-tests/forloop: check that .for works as expected wrt 520 number of times and with "quoted strings". 521 5222012-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 523 524 * Makefile.in (MAKE_VERSION): bump version to 20120606 525 Merge with NetBSD make, pick up 526 o compat.c: use kill(2) rather than raise(3). 527 * configure.in: look for sys/dev/filemon 528 * bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile 529 and pass BOOTSTRAP_XTRAS to boot-strap. 530 5312012-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 532 533 * Makefile.in (MAKE_VERSION): bump version to 20120604 534 Merge with NetBSD make, pick up 535 o util.c and var.c share same var for tracking if environ 536 has been reallocated. 537 o util.c provide getenv with setenv. 538 * Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL 539 when the shell actively strips .MAKE.* from the environment. 540 We still refer to the variable always as .MAKE.LEVEL 541 * util.c fix bug in findenv() was finding prefix of name. 542 * compat.c: re-raising SIGINT etc after running .INTERRUPT 543 results in more reliable termination of all activity on many 544 platforms. 545 5462012-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 547 548 * Makefile.in (MAKE_VERSION): bump version to 20120602 549 Merge with NetBSD make, pick up 550 o for.c: handle quoted items in .for list 551 5522012-05-30 Simon J. Gerraty <sjg@bad.crufty.net> 553 554 * Makefile.in (MAKE_VERSION): bump version to 20120530 555 Merge with NetBSD make, pick up 556 o compat.c: ignore empty command. 557 5582012-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 559 560 * Makefile.in (MAKE_VERSION): bump version to 20120524 561 * FILES: add bsd.after-import.mk: 562 A simple means of integrating bmake into a BSD build system. 563 5642012-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 565 566 * Makefile.in (MAKE_VERSION): bump version to 20120520 567 Merge with NetBSD make, pick up 568 o increased limit for nested conditionals. 569 5702012-05-18 Simon J. Gerraty <sjg@bad.crufty.net> 571 572 * Makefile.in (MAKE_VERSION): bump version to 20120518 573 Merge with NetBSD make, pick up 574 o use _exit(2) in signal hanlder 575 o Don't use the [dir] cache when building nodes that might have 576 changed since the last exec. 577 o Avoid nested extern declaration warnings. 578 5792012-04-27 Simon J. Gerraty <sjg@bad.crufty.net> 580 581 * meta.c (fgetLine): avoid %z - not portable. 582 * parse.c: Since we moved include of sys/mman.h 583 and def's of MAP_COPY etc. we got dups from a merge. 584 5852012-04-24 Simon J. Gerraty <sjg@bad.crufty.net> 586 587 * Makefile.in (MAKE_VERSION): bump version to 20120420 588 Merge with NetBSD make, pick up 589 o restore duplicate supression in .MAKE.MAKEFILES 590 runtime saving can be significant. 591 o Var_Subst() uses Buf_DestroyCompact() to reduce memory 592 consumption up to 20%. 593 5942012-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 595 596 * Makefile.in (MAKE_VERSION): bump version to 20120420 597 Merge with NetBSD make, pick up 598 o remove duplicate supression in .MAKE.MAKEFILES 599 o improved dir cache behavior 600 o gmake'ish export command 601 6022012-03-25 Simon J. Gerraty <sjg@bad.crufty.net> 603 604 * Makefile.in (MAKE_VERSION): bump version to 20120325 605 Merge with NetBSD make, pick up 606 o fix parsing of :[#] in conditionals. 607 6082012-02-10 Simon J. Gerraty <sjg@bad.crufty.net> 609 610 * Makefile.in: replace use of .Nx in bmake.1 with NetBSD 611 since some systems cannot cope with .Nx <version> 612 6132011-11-14 Simon J. Gerraty <sjg@bad.crufty.net> 614 615 * Makefile.in (MAKE_VERSION): bump version to 20111111 616 Merge with NetBSD make, pick up 617 o debug output for .PARSEDIR and .PARSEFILE 618 6192011-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 620 621 * Makefile.in (MAKE_VERSION): bump version to 20111010 622 6232011-10-09 Simon J. Gerraty <sjg@bad.crufty.net> 624 625 * boot-strap: check for an expected file in the dirs we look for. 626 * make-bootstrap.sh: pass on LDSTATIC 627 6282011-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 629 630 * Makefile.in (MAKE_VERSION): bump version to 20111001 631 Merge with NetBSD make, pick up 632 o ensure .PREFIX is set for .PHONY 633 and .TARGET set for .PHONY run via .END 634 o __dead used consistently 635 6362011-09-10 Simon J. Gerraty <sjg@bad.crufty.net> 637 638 * Makefile.in (MAKE_VERSION): 20110909 is a better number ;-) 639 6402011-09-05 Simon J. Gerraty <sjg@bad.crufty.net> 641 642 * Makefile.in (MAKE_VERSION): bump version to 20110905 643 Merge with NetBSD make, pick up 644 o meta_oodate: ignore makeDependfile 645 6462011-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 647 648 * Makefile.in (MAKE_VERSION): bump version to 20110828 649 Merge with NetBSD make, pick up 650 o silent=yes in .MAKE.MODE causes meta mode to mark targets 651 as SILENT if a .meta file is created 652 6532011-08-18 Simon J. Gerraty <sjg@bad.crufty.net> 654 655 * Makefile.in (MAKE_VERSION): bump version to 20110818 656 Merge with NetBSD make, pick up 657 o in meta mode, if target flagged .META a missing .meta file 658 means target is out-of-date 659 o fixes for gcc 4.5 warnings 660 o simplify job printing code 661 6622011-08-09 Simon J. Gerraty <sjg@bad.crufty.net> 663 664 * Makefile.in (MAKE_VERSION): bump version to 20110808 665 Merge with NetBSD make, pick up 666 o do not touch OP_SPECIAL targets when doing make -t 667 6682011-06-22 Simon J. Gerraty <sjg@bad.crufty.net> 669 670 * Makefile.in (MAKE_VERSION): bump version to 20110622 671 Merge with NetBSD make, pick up 672 o meta_oodate detect corrupted .meta file and declare oodate. 673 * configure.in: add check for setsid 674 6752011-06-07 Simon J. Gerraty <sjg@bad.crufty.net> 676 677 * Merge with NetBSD make, pick up 678 o unit-tests/modts now works on MirBSD 679 6802011-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 681 682 * Makefile.in (MAKE_VERSION): bump version to 20110606 683 Merge with NetBSD make, pick up 684 o ApplyModifiers: when we parse a variable which is not 685 the entire modifier string, or not followed by ':', do not 686 consider it as containing modifiers. 687 o loadfile: ensure newline at end of mapped file. 688 6892011-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 690 691 * Makefile.in (MAKE_VERSION): bump version to 20110505 692 Merge with NetBSD make, pick up 693 o .MAKE.META.BAILIWICK - list of prefixes which define the scope 694 of make's control. In meta mode, any generated file within 695 said bailiwick, which is found to be missing, causes current 696 target to be out-of-date. 697 6982011-04-11 Simon J. Gerraty <sjg@bad.crufty.net> 699 700 * Makefile.in (MAKE_VERSION): bump version to 20110411 701 Merge with NetBSD make, pick up 702 o when long modifiers fail to match, check sysV style. 703 - add a test case 704 7052011-04-10 Simon J. Gerraty <sjg@bad.crufty.net> 706 707 * Makefile.in (MAKE_VERSION): bump version to 20110410 708 Merge with NetBSD make, pick up 709 o :hash - cheap 32bit hash of value 710 o :localtime, :gmtime - use value as format string for strftime. 711 7122011-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 713 714 * Makefile.in (MAKE_VERSION): bump version to 20110330 715 mostly because its a cooler version. 716 Merge with NetBSD make, pick up 717 o NetBSD tags for meta.[ch] 718 o job.c call meta_job_finish() after meta_job_error(). 719 o meta_job_error() should call meta_job_finish() to ensure 720 .meta file is closed, and safe to copy - if .ERROR target wants. 721 meta_job_finish() is safe to call repeatedly. 722 7232011-03-29 Simon J. Gerraty <sjg@bad.crufty.net> 724 725 * unit-tests/modts: use printf if it is a builtin, 726 to save us from MirBSD 727 728 * Makefile.in (MAKE_VERSION): bump version to 20110329 729 Merge with NetBSD make, pick up 730 o fix for use after free() in CondDoExists(). 731 o meta_oodate() report extra commands and return earlier. 732 7332011-03-27 Simon J. Gerraty <sjg@bad.crufty.net> 734 735 * Makefile.in (MAKE_VERSION): bump version to 20110327 736 Merge with NetBSD make, pick up 737 o meta.c, if .MAKE.MODE contains curdirOk=yes 738 allow creating .meta files in .CURDIR 739 * boot-strap (TOOL_DIFF): aparently at least on linux distro 740 formats the output of 'type' differently - so eat any "()" 741 7422011-03-06 Simon J. Gerraty <sjg@bad.crufty.net> 743 744 * Makefile.in (MAKE_VERSION): bump version to 20110306 745 Merge with NetBSD make, pick up 746 o meta.c, only do getcwd() once 747 7482011-03-05 Simon J. Gerraty <sjg@bad.crufty.net> 749 750 * Makefile.in (MAKE_VERSION): bump version to 20110305 751 Merge with NetBSD make, pick up 752 o correct sysV substitution handling of empty lhs and variable 753 o correct exists() check for dir with trailing / 754 o correct handling of modifiers for non-existant variables 755 during evaluation of conditionals. 756 o ensure MAP_FILE is defined. 757 o meta.c use curdir[] now exported by main.c 758 7592011-02-25 Simon J. Gerraty <sjg@bad.crufty.net> 760 761 * Makefile.in (MAKE_VERSION): bump version to 20110225 762 Merge with NetBSD make, pick up 763 o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after 764 makefiles have been read. 765 o fix example of :? modifier in man page. 766 7672011-02-13 Simon J. Gerraty <sjg@bad.crufty.net> 768 769 * Makefile.in (MAKE_VERSION): bump version to 20110214 770 Merge with NetBSD make, pick up 771 o meta.c handle realpath() failing when generating meta file 772 name. 773 774 * sigcompat.c: convert to ansi so we can use higher warning levels. 775 776 7772011-02-07 Simon J. Gerraty <sjg@bad.crufty.net> 778 779 * Makefile.in (MAKE_VERSION): bump version to 20110207 780 Merge with NetBSD make, pick up 781 o fix for bug in meta mode. 782 7832011-01-03 Simon J. Gerraty <sjg@bad.crufty.net> 784 785 * parse.c: SunOS 5.8 at least does not have MAP_FILE 786 7872011-01-01 Simon J. Gerraty <sjg@bad.crufty.net> 788 789 * Makefile.in (MAKE_VERSION): bump version to 20110101 790 Merge with NetBSD make, pick up 791 o use mmap(2) if available, for reading makefiles 792 7932010-12-15 Simon J. Gerraty <sjg@bad.crufty.net> 794 795 * Makefile.in (MAKE_VERSION): bump version to 20101215 796 Merge with NetBSD make, pick up 797 o ensure meta_job_error() does not report a previous .meta file 798 as being culprit. 799 8002010-12-10 Simon J. Gerraty <sjg@bad.crufty.net> 801 802 * Makefile.in (MAKE_VERSION): bump version to 20101210 803 Merge with NetBSD make, pick up 804 o meta_oodate: track cwd per process, and only consider target 805 out-of-date if missing file is outside make's CWD. 806 Ignore files in /tmp/ etc. 807 o to ensure unit-tests results match, need to control LC_ALL 808 as well as LANG. 809 o fix for parsing bug in var.c 810 8112010-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 812 813 * Makefile.in (MAKE_VERSION): bump version to 20101126 814 Merge with NetBSD make, pick up 815 o if stale dependency is an IMPSRC, search via .PATH 816 o meta_oodate: if a referenced file is missing, target is 817 out-of-date. 818 o meta_oodate: if a target uses .OODATE in its commands, 819 it (.OODATE) needs to be recomputed. 820 o keep a pointer to youngest child node, rather than just its 821 mtime. 822 8232010-11-02 Simon J. Gerraty <sjg@bad.crufty.net> 824 825 * Makefile.in (MAKE_VERSION): bump version to 20101101 826 8272010-10-16 Simon J. Gerraty <sjg@bad.crufty.net> 828 829 * machine.sh: like os.sh, 830 allow for uname -p producing useless drivel 831 8322010-09-13 Simon J. Gerraty <sjg@bad.crufty.net> 833 834 * boot-strap: document configure knobs for meta and filemon. 835 836 * Makefile.in (MAKE_VERSION): bump version to 20100911 837 Merge with NetBSD make, pick up 838 o meta.c - meta mode 839 840 * make-bootstrap.sh.in: handle meta.c 841 * configure.in: add knobs for use_meta and filemon_h 842 also, look for dirname, str[e]sep and strlcpy 843 * util.c: add simple err[x] and warn[x] 844 8452010-08-08 Simon J. Gerraty <sjg@bad.crufty.net> 846 847 * boot-strap (TOOL_DIFF): set this to ensure tests use 848 the same version of diff that configure tested 849 850 * Makefile.in (MAKE_VERSION): bump version to 20100808 851 Merge with NetBSD make, pick up 852 o in jobs mode, when we discover we cannot make something, 853 call PrintOnError before exit. 854 8552010-08-06 Simon J. Gerraty <sjg@bad.crufty.net> 856 857 * Makefile.in (MAKE_VERSION): bump version to 20100806 858 Merge with NetBSD make, pick up 859 o formatting fixes for ignored errors 860 o ensure jobs are cleaned up regardless of where wait() was called. 861 8622010-06-28 Simon J. Gerraty <sjg@bad.crufty.net> 863 864 * Makefile.in (MAKE_VERSION): bump version to 20100618 865 * os.sh (MACHINE_ARCH): watch out for drivel from uname -p 866 8672010-06-16 Simon J. Gerraty <sjg@bad.crufty.net> 868 869 * Makefile.in (MAKE_VERSION): bump version to 20100616 870 Merge with NetBSD make, pick up 871 o man page update 872 o call PrintOnError from JobFinish when we detect an error we 873 are not ignoring. 874 8752010-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 876 877 * Makefile.in (MAKE_VERSION): bump version to 20100606 878 Merge with NetBSD make, pick up 879 o man page update 880 8812010-06-05 Simon J. Gerraty <sjg@bad.crufty.net> 882 883 * Makefile.in (MAKE_VERSION): bump version to 20100605 884 Merge with NetBSD make, pick up 885 o use bmake_signal() which is a wrapper around sigaction() 886 in place of signal() 887 o add .export-env to allow exporting variables to environment 888 without tracking (so no re-export when the internal value is 889 changed). 890 8912010-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 892 893 * Makefile.in (MAKE_VERSION): bump version to 20100524 894 Merge with NetBSD make, pick up 895 o fix for .info et al being greedy. 896 8972010-05-23 Simon J. Gerraty <sjg@bad.crufty.net> 898 899 * Makefile.in (MAKE_VERSION): bump version to 20100520 900 Merge with NetBSD make, pick up 901 o back to using realpath on argv[0] 902 but only if contains '/' and does not start with '/'. 903 9042010-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 905 906 * boot-strap: use absolute path for bmake when running tests. 907 908 * Makefile.in (MAKE_VERSION): bump version to 20100510 909 Merge with NetBSD make, pick up 910 o revert use of realpath on argv[0] 911 too many corner cases. 912 o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target. 913 9142010-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 915 916 * Makefile.in (MAKE_VERSION): bump version to 20100505 917 Merge with NetBSD make, pick up 918 o fix for missed SIGCHLD when compiled with SunPRO 919 actually for bmake, defining FORCE_POSIX_SIGNALS would have 920 done the job. 921 9222010-04-30 Simon J. Gerraty <sjg@bad.crufty.net> 923 924 * Makefile.in (MAKE_VERSION): bump version to 20100430 925 Merge with NetBSD make, pick up 926 o fflush stdout before writing to stdout 927 9282010-04-23 Simon J. Gerraty <sjg@bad.crufty.net> 929 930 * Makefile.in (MAKE_VERSION): bump version to 20100423 931 Merge with NetBSD make, pick up 932 o updated unit tests for Haiku (this time for sure). 933 * boot-strap: based on patch from joerg 934 honor --with-default-sys-path better. 935 * boot-strap: remove mention of --with-prefix-sys-path 936 9372010-04-22 Simon J. Gerraty <sjg@bad.crufty.net> 938 939 * Makefile.in (MAKE_VERSION): bump version to 20100422 940 * Merge with NetBSD make, pick up 941 o fix for vfork() on Darwin. 942 o fix for bogus $TMPDIR. 943 o set .MAKE.MODE=compat for -B 944 o set .MAKE.JOBS=max_jobs for -j max_jobs 945 o allow unit-tests to run without any *.mk 946 o unit-tests/modmisc be more conservative in dirs presumed to exist. 947 * boot-strap: ignore /usr/share/mk except on NetBSD. 948 * unit-tests/Makefile.in: set LANG=C when running unit-tests to 949 ensure sort(1) behaves as expected. 950 9512010-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 952 953 * boot-strap: add FindHereOrAbove so we can use -m .../mk 954 9552010-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 956 957 * Makefile.in (MAKE_VERSION): bump version to 20100420 958 * Merge with NetBSD make, pick up 959 o fix for variable realpath() behavior. 960 we have to stat(2) the result to be sure. 961 o fix for .export (all) when nested vars use :sh 962 9632010-04-14 Simon J. Gerraty <sjg@bad.crufty.net> 964 965 * Makefile.in (MAKE_VERSION): bump version to 20100414 966 * Merge with NetBSD make, pick up 967 o use realpath to resolve argv[0] (for .MAKE) if needed. 968 o add realpath from libc. 969 o add :tA to resolve variable via realpath(3) if possible. 970 9712010-04-08 Simon J. Gerraty <sjg@bad.crufty.net> 972 973 * Makefile.in (MAKE_VERSION): bump version to 20100408 974 * Merge with NetBSD make, pick up 975 o unit tests for .ERROR, .error 976 o fix for .ERROR to ensure it cannot be default target. 977 9782010-04-06 Simon J. Gerraty <sjg@bad.crufty.net> 979 980 * Makefile.in (MAKE_VERSION): bump version to 20100406 981 * Merge with NetBSD make, pick up 982 o fix for compat mode "Error code" going to debug_file. 983 o fix for .ALLSRC being populated twice. 984 o support for .info, .warning and .error directives 985 o .MAKE.MODE to control make's operational mode 986 o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile 987 name(s). 988 o .MAKE.DEPENDFILE to control the name of the depend file 989 o .ERROR target - run on failure. 990 9912010-03-18 Simon J. Gerraty <sjg@bad.crufty.net> 992 993 * make-bootstrap.sh.in: extract MAKE_VERSION from Makefile 994 995 * os.sh,arch.c: patch for Haiku from joerg at netbsd 996 9972010-03-17 Simon J. Gerraty <sjg@bad.crufty.net> 998 999 * Makefile.in (MAKE_VERSION): bump version to 20100222 1000 * Merge with NetBSD make, pick up 1001 o better error msg for .for with mutiple inter vars 1002 1003 * boot-strap: 1004 o use make-bootstrap.sh from joerg at netbsd 1005 to avoid the need for a native make when bootstrapping. 1006 o add "" everywhere ;-) 1007 o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1 1008 otherwise the pre-formated version. 1009 10102010-01-04 Simon J. Gerraty <sjg@bad.crufty.net> 1011 1012 * Makefile.in (MAKE_VERSION): bump version to 20100102 1013 * Merge with NetBSD make, pick up: 1014 o fix for -m .../ 1015 10162009-11-18 Simon J. Gerraty <sjg@void.crufty.net> 1017 1018 * Makefile.in (MAKE_VERSION): bump version to 20091118 1019 * Merge with NetBSD make, pick up: 1020 o .unexport 1021 o report lines that start with '.' and should have ':' 1022 (catch typo's of .el*if). 1023 10242009-10-30 Simon J. Gerraty <sjg@void.crufty.net> 1025 1026 * configure.in: Ensure that srcdir and mksrc are absolute paths. 1027 10282009-10-09 Simon J. Gerraty <sjg@void.crufty.net> 1029 1030 * Makefile.in (MAKE_VERSION): fix version to 20091007 1031 10322009-10-07 Simon J. Gerraty <sjg@void.crufty.net> 1033 1034 * Makefile.in (MAKE_VERSION): bump version to 200910007 1035 * Merge with NetBSD make, pick up: 1036 o fix for parsing of :S;...;...; applied to .for loop iterator 1037 appearing in a dependency line. 1038 10392009-09-09 Simon J. Gerraty <sjg@void.crufty.net> 1040 1041 * Makefile.in (MAKE_VERSION): bump version to 20090909 1042 * Merge with NetBSD make, pick up: 1043 o fix for -C, .CURDIR and .OBJDIR 1044 * boot-strap: 1045 o allow share_dir to be set independent of prefix. 1046 o select default share_dir better when prefix ends in $HOST_TARGET 1047 o if FORCE_BSD_MK etc were set, include them in the suggested 1048 install-mk command. 1049 10502009-09-08 Simon J. Gerraty <sjg@void.crufty.net> 1051 1052 * Makefile.in (MAKE_VERSION): bump version to 20090908 1053 * Merge with NetBSD make, pick up: 1054 o .MAKE.LEVEL for recursion tracking 1055 o fix for :M scanning \: 1056 10572009-09-03 Simon J. Gerraty <sjg@void.crufty.net> 1058 1059 * configure.in: Don't -D__EXTENSIONS__ if 1060 AC_USE_SYSTEM_EXTENSIONS says "no". 1061 10622009-08-26 Simon J. Gerraty <sjg@void.crufty.net> 1063 1064 * Makefile.in (MAKE_VERSION): bump version to 20090826 1065 Simplify MAKE_VERSION to just the bare date. 1066 * Merge with NetBSD make, pick up: 1067 o -C directory support. 1068 o support for SIGINFO 1069 o use $TMPDIR for temp files. 1070 o child of vfork should be careful about modifying parent's state. 1071 1072 10732009-03-26 Simon J. Gerraty <sjg@void.crufty.net> 1074 1075 * Appy some patches for MiNT from David Brownlee 1076 10772009-02-26 Simon J. Gerraty <sjg@void.crufty.net> 1078 1079 * Makefile.in (BMAKE_VERSION): bump version to 20090222 1080 * Merge with NetBSD make, pick up: 1081 o Possible null pointer de-ref in Var_Set. 1082 10832009-02-08 Simon J. Gerraty <sjg@void.crufty.net> 1084 1085 * Makefile.in (BMAKE_VERSION): bump version to 20090204 1086 * Merge with NetBSD make, pick up: 1087 o bmake_malloc et al moved to their own .c 1088 o Count both () and {} when looking for the end of a :M pattern 1089 o Change 'Buffer' so that it is the actual struct, not a pointer to it. 1090 o strlist.c - functions for processing extendable arrays of pointers to strings. 1091 o ClientData replaced with void *, so const void * can be used. 1092 o New debug flag C for DEBUG_CWD 1093 10942008-11-11 Simon J. Gerraty <sjg@void.crufty.net> 1095 1096 * Makefile.in (BMAKE_VERSION): bump version to 20081111 1097 Apply patch from Joerg Sonnenberge to 1098 configure.in: 1099 o remove some redundant checks 1100 o check for emlloc etc only in libutil and require the whole family. 1101 util.c: 1102 o remove [v]asprintf which is no longer used. 1103 11042008-11-04 Simon J. Gerraty <sjg@void.crufty.net> 1105 1106 * Makefile.in (BMAKE_VERSION): bump version to 20081101 1107 * Merge with NetBSD make, pick up: 1108 o util.c: avoid use of putenv() - christos 1109 11102008-10-30 Simon J. Gerraty <sjg@void.crufty.net> 1111 1112 * Makefile.in (BMAKE_VERSION): bump version to 20081030 1113 pick up man page tweaks. 1114 11152008-10-29 Simon J. Gerraty <sjg@void.crufty.net> 1116 1117 * Makefile.in: move processing of LIBOBJS to after is definition! 1118 thus we'll have getenv.c in SRCS only if needed. 1119 1120 * make.1: add examples of how to use :? 1121 1122 * Makefile.in (BMAKE_VERSION): bump version to 20081029 1123 * Merge with NetBSD make, pick up: 1124 o fix for .END processing with -j 1125 o segfault from Parse_Error when no makefile is open 1126 o handle numeric expressions in any variable expansion 1127 o debug output now defaults to stderr, -dF to change it - apb 1128 o make now uses bmake_malloc etc so that it can build natively 1129 on A/UX - wasn't an issue for bmake, but we want to keep in sync. 1130 11312008-09-27 Simon J. Gerraty <sjg@void.crufty.net> 1132 1133 * Makefile.in (BMAKE_VERSION): bump version to 20080808 1134 * Merge with NetBSD make, pick up: 1135 o fix for PR/38840: Pierre Pronchery: make crashes while parsing 1136 long lines in Makefiles 1137 o optimizations for VarQuote by joerg 1138 o fix for PR/38756: dominik: make dumps core on invalid makefile 1139 11402008-05-15 Simon J. Gerraty <sjg@void.crufty.net> 1141 1142 * Makefile.in (BMAKE_VERSION): bump version to 20080515 1143 * Merge with NetBSD make, pick up: 1144 o fix skip setting vars in VAR_GLOBAL context, to handle 1145 cases where VAR_CMD is used for other than command line vars. 1146 11472008-05-14 Simon J. Gerraty <sjg@void.crufty.net> 1148 1149 * boot-strap (make_version): we may need to look in 1150 $prefix/share/mk for sys.mk 1151 1152 * Makefile.in (BMAKE_VERSION): bump version to 20080514 1153 * Merge with NetBSD make, pick up: 1154 o skip setting vars in VAR_GLOBAL context, when already set in 1155 VAR_CMD which takes precedence. 1156 11572008-03-30 Simon J. Gerraty <sjg@void.crufty.net> 1158 1159 * Makefile.in (BMAKE_VERSION): bump version to 20080330 1160 * Merge with NetBSD make, pick up: 1161 o fix for ?= when LHS contains variable reference. 1162 11632008-02-15 Simon J. Gerraty <sjg@void.crufty.net> 1164 1165 * merge some patches from NetBSD pkgsrc. 1166 1167 * makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of 1168 the MAKSYSPATH used during bootstrap. 1169 1170 * Makefile.in (BMAKE_VERSION): bump version to 20080215 1171 * Merge with NetBSD make, pick up: 1172 o warn if non-space chars follow 'empty' in a conditional. 1173 11742008-01-18 Simon J. Gerraty <sjg@void.crufty.net> 1175 1176 * Makefile.in (BMAKE_VERSION): bump version to 20080118 1177 * Merge with NetBSD make, pick up: 1178 o consider dependencies read from .depend as optional - dsl 1179 o remember when buffer for reading makefile grows - dsl 1180 o add -dl (aka LOUD) - David O'Brien 1181 11822007-10-22 Simon J. Gerraty <sjg@void.crufty.net> 1183 1184 * Makefile.in (BMAKE_VERSION): bump version to 20071022 1185 * Merge with NetBSD make, pick up: 1186 o Allow .PATH<suffix> to be used for .include "" 1187 1188 * boot-strap: source default settings from .bmake-boot-strap.rc 1189 11902007-10-16 Simon J. Gerraty <sjg@void.crufty.net> 1191 1192 * Makefile.in: fix maninstall on various systems 1193 provided that our man.mk is used. 1194 For non-BSD systems we install the preformatted page 1195 into $MANDIR/cat1 1196 11972007-10-15 Simon J. Gerraty <sjg@void.crufty.net> 1198 1199 * boot-strap: make bmake.1 too, so maninstall works. 1200 12012007-10-14 Simon J. Gerraty <sjg@void.crufty.net> 1202 1203 * Makefile.in (BMAKE_VERSION): bump version to 20071014 1204 * Merge with NetBSD make, pick up: 1205 o revamped handling of defshell - configure no longer needs to 1206 know the content of the shells array - apb 1207 o stop Var_Subst modifying its input - apb 1208 o avoid calling ParseTrackInput too often - dsl 1209 12102007-10-11 Simon J. Gerraty <sjg@void.crufty.net> 1211 1212 * Makefile.in (BMAKE_VERSION): bump version to 20071011 1213 * Merge with NetBSD make, pick up: 1214 o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path. 1215 1216 * sigcompat.c: some tweaks for HP-UX 11.x based on 1217 patch from Tobias Nygren 1218 1219 * configure.in: update handling of --with-defshell to match 1220 new make behavior. --with-defshell=/usr/xpg4/bin/sh 1221 will now do what one might hope - provided the chosen shell 1222 behaves enough like sh. 1223 12242007-10-08 Simon J. Gerraty <sjg@void.crufty.net> 1225 1226 * Makefile.in (BMAKE_VERSION): bump to 20071008 1227 * Merge with NetBSD make, pick up: 1228 o .MAKE.JOB.PREFIX - control the token output before jobs - sjg 1229 o .export/.MAKE.EXPORTED - export of variables - sjg 1230 o .MAKE.MAKEFILES - track all makefiles read - sjg 1231 o performance improvements - dsl 1232 o revamp parallel job scheduling - dsl 1233 12342006-07-28 Simon J. Gerraty <sjg@void.crufty.net> 1235 1236 * Makefile.in (BMAKE_VERSION): bump to 20060728 1237 * Merge with NetBSD make, pick up: 1238 o extra debug info during variable and cond processing - sjg 1239 o shell definition now covers newline - rillig 1240 o minor mem leak in PrintOnError - sjg 1241 12422006-05-11 Simon J. Gerraty <sjg@void.crufty.net> 1243 1244 * Makefile.in (BMAKE_VERSION): bump to 20060511 1245 * Merge with NetBSD make, pick up: 1246 o more memory leaks - coverity 1247 o possible overflow in ArchFindMember - coverity 1248 o extract variable modifier code out of Var_Parse() 1249 so it can be called recursively - sjg 1250 o unit-tests/moderrs - sjg 1251 12522006-04-12 Simon J. Gerraty <sjg@void.crufty.net> 1253 1254 * Makefile.in (BMAKE_VERSION): bump to 20060412 1255 * Merge with NetBSD make, pick up: 1256 o fixes for some memory leaks - coverity 1257 o only read first sys.mk etc when searching sysIncPath - sjg 1258 1259 * main.c (ReadMakefile): remove hack for __INTERIX that prevented 1260 setting ${MAKEFILE} - OBATA Akio 1261 12622006-03-18 Simon J. Gerraty <sjg@void.crufty.net> 1263 1264 * Makefile.in (BMAKE_VERSION): bump to 20060318 1265 * Merge with NetBSD make, pick up: 1266 o cleanup of job.c to remove remote handling, distcc is more 1267 useful and this code was likely bit-rotting - dsl 1268 o fix for :P modifier - sjg 1269 * boot-strap: set default prefix to something reasonable 1270 (for me anyway). 1271 12722006-03-01 Simon J. Gerraty <sjg@void.crufty.net> 1273 1274 * Makefile.in (BMAKE_VERSION): bump to 20060301 1275 * Merge with NetBSD make, pick up: 1276 o make .WAIT apply recursively, document and test case - apb 1277 o allow variable modifiers in a variable appear anywhere in 1278 modifier list, document and test case - sjg 1279 12802006-02-22 Simon J. Gerraty <sjg@void.crufty.net> 1281 1282 * Makefile.in (BMAKE_VERSION): bump to 20060222 1283 * Merge with NetBSD make, pick up: 1284 o improved job token handling - dsl 1285 o SIG_DFL the correct signal before exec - dsl 1286 o more debug info during parsing - dsl 1287 o allow variable modifiers to be specified via variable - sjg 1288 * boot-strap: explain why we died if no mksrc 1289 12902005-11-05 Simon J. Gerraty <sjg@void.crufty.net> 1291 1292 * Makefile.in (BMAKE_VERSION): bump to 20051105 1293 * configure.in: always set default_sys_path 1294 default is ${prefix}/share/mk 1295 - remove prefix_sys_path, anyone wanting more than above 1296 needs to set it manually. 1297 12982005-11-04 Simon J. Gerraty <sjg@void.crufty.net> 1299 1300 * boot-strap: make this a bit easier for pkgsrc folk. 1301 bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to 1302 'mips' while pkgsrc wants 'mipseb' or 'mipsel' 1303 13042005-11-02 Simon J. Gerraty <sjg@void.crufty.net> 1305 1306 * Makefile.in (BMAKE_VERSION): bump to 20051102 1307 * job.c (JobFinish): fix likely ancient merge lossage 1308 fix from Todd Vierling. 1309 * boot-strap (srcdir): allow setting mksrc=none 1310 13112005-10-31 Simon J. Gerraty <sjg@void.crufty.net> 1312 1313 * Makefile.in (BMAKE_VERSION): bump to 20051031 1314 * ranlib.h: skip on OSF too. 1315 (NetBSD PR 31864) 1316 13172005-10-10 Simon J. Gerraty <sjg@void.crufty.net> 1318 1319 * Makefile.in (BMAKE_VERSION): bump to 20051002 1320 fix a silly typo 1321 13222005-10-09 Simon J. Gerraty <sjg@void.crufty.net> 1323 1324 * Makefile.in (BMAKE_VERSION): bump to 20051001 1325 support for UnixWare and some other systems, 1326 based on patches from pkgsrc/bootstrap 1327 13282005-09-03 Simon J. Gerraty <sjg@void.crufty.net> 1329 1330 * Makefile.in (BMAKE_VERSION): bump to 20050901 1331 * Merge with NetBSD make, pick up: 1332 o possible parse error causing us to wander off. 1333 13342005-06-06 Simon J. Gerraty <sjg@void.crufty.net> 1335 1336 * Makefile.in (BMAKE_VERSION): bump to 20050606 1337 * Merge with NetBSD make, pick up: 1338 o :0x modifier for randomizing a list 1339 o fixes for a number of -Wuninitialized issues. 1340 13412005-05-30 Simon J. Gerraty <sjg@void.crufty.net> 1342 1343 * Makefile.in (BMAKE_VERSION): bump to 20050530 1344 * Merge with NetBSD make, pick up: 1345 o Handle dependencies for .BEGIN, .END and .INTERRUPT 1346 1347 * README: was seriously out of date. 1348 13492005-03-22 Simon J. Gerraty <sjg@void.crufty.net> 1350 1351 * Important to use .MAKE rather than MAKE. 1352 13532005-03-15 Simon J. Gerraty <sjg@void.crufty.net> 1354 1355 * Makefile.in (BMAKE_VERSION): bump to 20050315 1356 * Merge with NetBSD make, pick up: 1357 o don't mistake .elsefoo for .else 1358 o use suffix-specific search path correctly 1359 o bunch of style nits 1360 13612004-05-11 Simon J. Gerraty <sjg@void.crufty.net> 1362 1363 * boot-strap: 1364 o ensure that args to --src and --with-mksrc 1365 are resolved before giving them to configure. 1366 o add -o "objdir" so that builder can control it, 1367 default is $OS as determined by os.sh 1368 o add -q to suppress all the install instructions. 1369 13702004-05-08 Simon J. Gerraty <sjg@void.crufty.net> 1371 1372 * Remove __IDSTRING() 1373 1374 * Makefile.in (BMAKE_VERSION): bump to 20040508 1375 * Merge with NetBSD make, pick up: 1376 o posix fixes 1377 - remove '-e' from compat mode 1378 - add support for '+' command-line prefix. 1379 o fix for handling '--' on command-line. 1380 o fix include in lst.lib/lstInt.h to simplify '-I's 1381 o we also picked up replacement of MAKE_BOOTSTRAP 1382 with !MAKE_NATIVE which is a noop, but possibly confusing. 1383 13842004-04-14 Simon J. Gerraty <sjg@void.crufty.net> 1385 1386 * Makefile.in (BMAKE_VERSION): bump to 20040414 1387 * Merge with NetBSD make, pick up: 1388 o allow quoted strings on lhs of conditionals 1389 o issue warning when extra .else is seen 1390 o print line numer when errors encountered during parsing from 1391 string. 1392 13932004-02-20 Simon J. Gerraty <sjg@void.crufty.net> 1394 1395 * Makefile.in (BMAKE_VERSION): bump to 20040220 1396 * Merge with NetBSD make, pick up: 1397 o fix for old :M parsing bug. 1398 o re-jigged unit-tests 1399 14002004-02-15 Simon J. Gerraty <sjg@void.crufty.net> 1401 1402 * Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,} 1403 so that './bmake -f Makefile test' works. 1404 14052004-02-14 Simon J. Gerraty <sjg@void.crufty.net> 1406 1407 * Makefile.in: (BMAKE_VERSION): bump to 20040214 1408 * Merge with NetBSD make, pick up: 1409 o search upwards for *.mk 1410 o fix for double free of var substitution buffers 1411 o use of getopt replaced with custom code, since the usage 1412 (re-scanning) isn't posix compatible. 1413 14142004-02-12 Simon J. Gerraty <sjg@void.crufty.net> 1415 1416 * arch.c: don't include ranlib.h on ELF systems 1417 (thanks to Chuck Cranor <chuck@ece.cmu.edu>). 1418 14192004-01-18 Simon J. Gerraty <sjg@void.crufty.net> 1420 1421 * Makefile.in (BMAKE_VERSION): bump to 20040118 1422 1423 * boot-strap (while): export vars we assign to on cmdline 1424 * unit-test/Makefile.in: ternary is .PHONY 1425 14262004-01-08 Simon J. Gerraty <sjg@void.crufty.net> 1427 1428 * Makefile.in (BMAKE_VERSION): bump version to 20040108 1429 * Merge with NetBSD make, pick up: 1430 o fix for ternary modifier 1431 14322004-01-06 Simon J. Gerraty <sjg@void.crufty.net> 1433 1434 * Makefile.in (BMAKE_VERSION): bump version to 20040105 1435 * Merge with NetBSD make, pick up: 1436 o fix for cond.c to handle compound expressions better 1437 o variable expansion within sysV style replacements 1438 14392003-12-22 Simon J. Gerraty <sjg@void.crufty.net> 1440 1441 * Make portable snprintf safer - output to /dev/null first to 1442 check space needed. 1443 1444 * Makefile.in (BMAKE_VERSION): bump version to 20031222 1445 * Merge with NetBSD make, pick up: 1446 o -dg3 to show input graph when things go wrong. 1447 o explicitly look for makefiles in objdir if not found in curdir so 1448 that errors in .depend etc will be reported accurarely. 1449 o avoid use of -e in shell scripts in jobs mode, use '|| exit $?' 1450 instead as it more accurately reflects the expected behavior and 1451 is more consistently implemented. 1452 o avoid use of asprintf. 1453 14542003-09-28 Simon J. Gerraty <sjg@void.crufty.net> 1455 1456 * util.c: Add asprintf and vasprintf. 1457 1458 * Makefile.in (BMAKE_VERSION): bump version to 20030928 1459 * Merge with NetBSD make, pick up: 1460 :[] modifier - allows picking words from a variable. 1461 :tW modifier - allows treating value as one big word. 1462 W flag for :C and :S - allows treating value as one big word. 1463 14642003-09-12 Simon J. Gerraty <sjg@void.crufty.net> 1465 1466 * Merge with NetBSD make 1467 pick up -de flag to enable printing failed command. 1468 don't skip 1st two dir entries (normally . and ..) since 1469 coda does not have them. 1470 14712003-09-09 Simon J. Gerraty <sjg@void.crufty.net> 1472 1473 * Makefile.in (BMAKE_VERSION): bump version to 20030909 1474 * Merge with NetBSD make, pick up: 1475 - changes for -V '${VAR}' to print fully expanded value 1476 cf. -V VAR 1477 - CompatRunCommand now prints the command that failed. 1478 - several files got updated 3 clause Berkeley license. 1479 14802003-08-02 Simon J. Gerraty <sjg@void.crufty.net> 1481 1482 * boot-strap: Allow setting configure args on command line. 1483 14842003-07-31 Simon J. Gerraty <sjg@void.crufty.net> 1485 1486 * configure.in: add --with-defshell to allow sh or ksh 1487 to be selected as default shell. 1488 1489 * Makefile.in: bump version to 20030731 1490 1491 * Merge with NetBSD make 1492 Pick up .SHELL spec for ksh and associate man page changes. 1493 Also compat mode now uses the same shell specs. 1494 14952003-07-29 Simon J. Gerraty <sjg@void.crufty.net> 1496 1497 * var.c (Var_Parse): ensure delim is initialized. 1498 1499 * unit-tests/Makefile.in: use single quotes to avoid problems from 1500 some shells. 1501 1502 * makefile.boot.in: 1503 Run the unit-tests as part of the bootstrap procedure. 1504 15052003-07-28 Simon J. Gerraty <sjg@void.crufty.net> 1506 1507 * unit-tests/Makefile.in: always force complaints from 1508 ${TEST_MAKE} to be from 'make'. 1509 1510 * configure.in: add check for 'diff -u' 1511 also fix some old autoconf'isms 1512 1513 * Makefile.in (BMAKE_VERSION): bump version to 20030728. 1514 if using GCC add -Wno-cast-qual to CFLAGS for var.o 1515 1516 * Merge with NetBSD make 1517 Pick up fix for :ts parsing error in some cases. 1518 Pick unit-tests. 1519 15202003-07-23 Simon J. Gerraty <sjg@void.crufty.net> 1521 1522 * Makefile.in (BMAKE_VERSION): bump version to 20030723. 1523 1524 * var.c (Var_Parse): fix bug in :ts modifier, after const 1525 correctness fixes, must pass nstr to VarModify. 1526 15272003-07-14 Simon J. Gerraty <sjg@void.crufty.net> 1528 1529 * Makefile.in: BMAKE_VERSION switch to a date based version. 1530 We'll generally use the date of last import from NetBSD. 1531 1532 * Merge with NetBSD make 1533 Pick up fixes for const-correctness, now passes WARNS=3 on 1534 NetBSD. 1535 Pick up :ts modifier, allows controlling the separator used 1536 between words in variable expansion. 1537 15382003-07-11 Simon J. Gerraty <sjg@void.crufty.net> 1539 1540 * FILES: include boot-strap and os.sh 1541 1542 * Makefile.in: only set WARNS if we are NetBSD, the effect on 1543 FreeBSD is known to be bad. 1544 1545 * makefile.boot.in (bootstrap): make this the default target. 1546 1547 * Makefile.in: bump version to 3.1.19 1548 1549 * machine.sh: avoid A-Z with tr as it is bound to lose. 1550 15512003-07-10 Simon J. Gerraty <sjg@void.crufty.net> 1552 1553 * Merge with NetBSD make 1554 Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo 1555 Plus some doc fixes. 1556 15572003-04-27 Simon J. Gerraty <sjg@void.crufty.net> 1558 1559 * Merge with NetBSD make 1560 Pick up fix for PR/1523 - don't count a library as built, if there 1561 is no way to build it 1562 1563 * Bump version to 3.1.18 1564 15652003-03-23 Simon J. Gerraty <sjg@void.crufty.net> 1566 1567 * Merge with NetBSD make 1568 Pick up fix for ParseDoSpecialSrc - we only use it if .WAIT 1569 appears in src list. 1570 15712003-03-21 Simon J. Gerraty <sjg@void.crufty.net> 1572 1573 * Merge with NetBSD make (mmm 10th anniversary!) 1574 pick up fix for .WAIT in srcs that refer to $@ or $* (PR#20828) 1575 pick up -X which tells us to not export VAR=val via setenv if 1576 we are already doing so via MAKEFLAGS. This saves valuable env 1577 space on systems like Darwin. 1578 set MAKE_VERSION to 3.1.17 1579 1580 * parse.c: pix up fix for suffix rules 1581 15822003-03-06 Simon J. Gerraty <sjg@void.crufty.net> 1583 1584 * Merge with NetBSD make. 1585 pick up fix for propagating -B via MAKEFLAGS. 1586 set MAKE_VERSION to 3.1.16 1587 1588 * Apply some patches from pkgsrc-bootstrap/bmake 1589 Originally by Grant Beattie <grant@netbsd.org> 1590 I may have missed some - since they are based on bmake-3.1.12 1591 15922002-12-03 Simon J. Gerraty <sjg@void.crufty.net> 1593 1594 * makefile.boot.in (bmake): update install targets for those that 1595 use them, also clear MAKEFLAGS when invoking bmake.boot to avoid 1596 havoc from gmake -w. Thanks to Harlan Stenn <hstenn@cisco.com>. 1597 1598 * bmake.cat1: update the pre-formatted man page! 1599 16002002-11-30 Simon J. Gerraty <sjg@void.crufty.net> 1601 1602 * Merge with NetBSD make. 1603 pick up fix for premature free of pointer used in call 1604 to Dir_InitCur(). 1605 set MAKE_VERSION to 3.1.15 1606 16072002-11-26 Simon J. Gerraty <sjg@void.crufty.net> 1608 1609 * configure.in: determine suitable value for MKSRC. 1610 override using --with-mksrc=PATH. 1611 1612 * machine.sh: use `uname -p` for MACHINE_ARCH on modern SunOS systems. 1613 configs(8) will use 'sun4' as an alias for 'sparc'. 1614 16152002-11-25 Simon J. Gerraty <sjg@void.crufty.net> 1616 1617 * Merge with NetBSD make. 1618 pick up ${.PATH} 1619 pick up fix for finding ../cat.c via .PATH when .CURDIR=.. 1620 set MAKE_VERSION to 3.1.14 1621 add configure checks for killpg and sys/socket.h 1622 16232002-09-16 Simon J. Gerraty <sjg@void.crufty.net> 1624 1625 * tag bmake-3-1-13 1626 1627 * makefile.boot.in (bmake): use install-mk 1628 Also setup ./mk before trying to invoke bmake.boot incase we 1629 needed install-mk to create a sys.mk for us. 1630 1631 * configure.in: If we need to add -I${srcdir}/missing, make it an 1632 absolute path so that it works for lst.lib too. 1633 1634 * make.h: always include sys/cdefs.h since we provide one if the 1635 host does not. 1636 1637 * Makefile.in (install-mk): 1638 use MKSRC/install-mk which will do the right thing. 1639 use uname -p for ARCH if possible. 1640 since install-mk will setup links bsd.prog.mk -> prog.mk if 1641 needed, just .include bsd.prog.mk 1642 1643 * Merge with NetBSD make (NetBSD-1.6) 1644 Code is ansi-C only now. 1645 Bug in handling of dotLast is fixed. 1646 Can now assign .OBJDIR and make will reset its notions of life. 1647 New modifiers :tu :tl for toUpper and toLower. 1648 1649Tue Oct 16 12:18:42 2001 Simon J. Gerraty <sjg@zen.crufty.net> 1650 1651 * Merge with NetBSD make 1652 pick up fix for .END failure in compat mode. 1653 pick up fix for extra va_end() in ParseVErrorInternal. 1654 1655Thu Oct 11 13:20:06 2001 Simon J. Gerraty <sjg@zen.crufty.net> 1656 1657 * configure.in: for systems that have sys/cdefs.h check if it is 1658 compatible. If not, include the one under missing, but tell it to 1659 include the native one too - necessary on Linux. 1660 1661 * missing/sys/cdefs.h: if NEED_HOST_CDEFS_H is defined, use 1662 include_next (for gcc) to get the native sys/cdefs.h 1663 1664Tue Aug 21 02:29:34 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 1665 1666 * job.c (JobFinish): Fix an earlier merge bug that resulted in 1667 leaking descriptors when using -jN. 1668 1669 * job.c (JobPrintCommand): See if "curdir" exists before 1670 attempting to chdir(). Doing the chdir directly in make (when in 1671 compat mode) fails silently, so let the -jN version do the same. 1672 This can happen when building kernels in an object tree and 1673 playing clever games to reset .CURDIR. 1674 1675 * Merged with NetBSD make 1676 pick up .USEBEFORE 1677 1678Tue Jun 26 23:45:11 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 1679 1680 * makefile.boot.in: Give bmake.boot a MAKESYSPATH that might work. 1681 1682Tue Jun 12 16:48:57 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 1683 1684 * var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell 1685 us not to export the iterator variable when using VAR_CMD context. 1686 1687Sun Jun 10 21:55:21 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 1688 1689 * job.c (Job_CatchChildren): don't call Job_CatchOutput() here, 1690 its the wrong "fix". 1691 1692Sat Jun 9 00:11:24 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 1693 1694 * Redesigned export of VAR_CMD's via MAKEFLAGS. 1695 We now simply append the variable names to .MAKEOVERRIDES, and 1696 handle duplicate suppression and quoting in ExportMAKEFLAGS using: 1697 ${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@} 1698 Apart from fixing quoting bugs in previous version, this allows us 1699 to export vars to the environment by simply doing: 1700 .MAKEOVERRIDES+= PATH 1701 Merged again with NetBSD make, but the above is the only change. 1702 1703 * configure.in: added 1704 --disable-pwd-override disable $PWD overriding getcwd() 1705 --disable-check-make-chdir disable make trying to guess 1706 when it should automatically cd ${.CURDIR} 1707 1708 * Merge with NetBSD make, changes include: 1709 parse.c (ParseDoDependency): Spot that the syntax error is 1710 caused by an unresolved cvs/rcs conflict and say so. 1711 var.c: most of Var* functions now take a ctxt as 1st arg. 1712 now does variable substituion on rhs of sysv style modifiers. 1713 1714 * var.c (Var_Set): exporting of command line variables (VAR_CMD) 1715 is now done here. We append the name='value' to .MAKEOVERRIDES 1716 rather than directly into MAKEFLAGS as this allows a Makefile to 1717 use .MAKEOVERRIDES= to disable this behaviour. GNU make uses a 1718 very similar mechanism. Note that in adding name='value' to 1719 .MAKEOVERRIDES we do the moral equivalent of: 1720 .MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val' 1721 1722Fri Jun 1 14:08:02 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 1723 1724 * make-conf.h (USE_IOVEC): make it conditional on HAVE_SYS_UIO_H 1725 1726 * Merged with NetBSD make 1727 make -dx can now be used to run commands via sh -x 1728 better error messages on exec failures. 1729 1730Thu May 31 01:44:54 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 1731 1732 * Makefile.in (main.o): depends on ${SRCS} ${MAKEFILE} so that 1733 MAKE_VERSION gets updated. Also don't use ?= for MAKE_VERSION, 1734 MACHINE etc otherwise they propagate from the previous bmake. 1735 1736 * configure.in (machine): allow --with-machine=generic to make 1737 configure use machine.sh to set MACHINE. 1738 1739 * job.c (JobInterrupt): convert to using WAIT_T and friends. 1740 1741 * Makefile.in: mention in bmake.1 that we use autoconf. 1742 1743 * make.1: mention MAKE_PRINT_VAR_ON_ERROR. 1744 1745Wed May 30 23:17:18 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 1746 1747 * main.c (ReadMakefile): don't set MAKEFILE if reading ".depend" 1748 as that rather defeats the usefulness of ${MAKEFILE}. 1749 1750 * main.c (MainParseArgs): append command line variable assignments 1751 to MAKEFLAGS so that they get propagated to child make's. 1752 Apparently this is required POSIX behaviour? Its useful anyway. 1753 1754Tue May 29 02:20:07 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 1755 1756 * compat.c (CompatRunCommand): don't use perror() since stdio may 1757 cause problems in child of vfork(). 1758 1759 * compat.c, main.c: Call PrintOnError() when we are going to bail. 1760 This routine prints out the .curdir where we stopped and will also 1761 display any vars listed in ${MAKE_PRINT_VAR_ON_ERROR}. 1762 1763 * main.c: add ${.newline} to hold a "\n" - sometimes handy in 1764 :@ expansion. 1765 1766 * var.c: VarLoopExpand: ignore addSpace if a \n is present. 1767 1768 * Added RCSid's for the files we've touched. 1769 1770Thu May 24 15:41:37 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 1771 1772 * configure.in: Thanks to some clues from mdb@juniper.net, 1773 added autoconf magic to control setting of MACHINE, MACHINE_ARCH 1774 as well as what ends up in _PATH_DEFSYSPATH. We now have: 1775 1776 --with-machine=MACHINE explicitly set MACHINE 1777 --with-force-machine=MACHINE set FORCE_MACHINE 1778 --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH 1779 --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH 1780 --with-prefix-sys-path=PATH:DIR:LIST prefix _PATH_PREFIX_SYSPATH 1781 --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX 1782 1783 If _PATH_OBJDIRPREFIX is set to "no" we won't define it. 1784 1785 * makefile: added a pathetically simple makefile to drive 1786 bootstrapping. Running configure by hand is more useful. 1787 1788 * Makefile.in: added MAKE_VERSION, and reworked things to be less 1789 dependent on NetBSD bsd.*.mk 1790 1791 * pathnames.h: allow NO_PATH_OBJDIRPREFIX to stop us defining 1792 _PATH_OBJDIRPREFIX for those that don't want a default. 1793 construct _PATH_DEFSYSPATH from the info we get from configure. 1794 1795 * main.c: allow for no _PATH_OBJDIRPREFIX, set ${MAKE_VERSION} 1796 if MAKE_VERSION is defined. 1797 1798 * compat.c: when we bail, print out the .CURDIR we were in. 1799 1800Sat May 12 00:34:12 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 1801 1802 * Merged with NetBSD make 1803 1804 * var.c: fixed a bug in the handling of the modifier :P 1805 if the node as found but the path was null, we segfault trying to 1806 duplicate it. 1807 1808Mon Mar 5 16:20:33 2001 Simon J. Gerraty <sjg@zen.quick.com.au> 1809 1810 * Merged with NetBSD make 1811 1812 * make.c: Make_OODate's test for a library out of date was using 1813 cmtime where it should have used mtime (my bug). 1814 1815 * compat.c: Use perror() to tell us what really went wrong when we 1816 cannot exec a command. 1817 1818Fri Dec 15 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 1819 1820 * Merged with NetBSD make 1821 1822Sat Jun 10 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 1823 1824 * Merged with NetBSD make 1825 1826Thu Jun 1 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 1827 1828 * Merged with NetBSD make 1829 1830Tue May 30 10:11:08 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 1831 1832 * Merged with NetBSD make 1833 1834Thu Apr 27 00:07:47 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 1835 1836 * util.c: don't provide signal() since we use sigcompat.c 1837 1838 * Makefile.in: added a build target. 1839 1840 * var.c (Var_Parse): added ODE modifiers :U, :D, :L, :P, :@ and :! 1841 These allow some quite clever magic. 1842 1843 * main.c (main): added support for getenv(MAKESYSPATH). 1844 1845Mon Apr 2 16:25:13 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 1846 1847 * Disable $PWD overriding getcwd() if MAKEOBJDIRPREFIX is set. 1848 This avoids objdir having a different value depending on how a 1849 directory was reached (via command line, or subdir.mk). 1850 1851 * If FORCE_MACHINE is defined, ignore getenv("MACHINE"). 1852 1853Mon Apr 2 23:15:31 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 1854 1855 * Do a chdir(${.CURDIR}) before invoking ${.MAKE} or ${.MAKE:T} if 1856 MAKEOBJDIRPREFIX is set and NOCHECKMAKECHDIR is not. 1857 I've been testing this in NetBSD's make for some weeks. 1858 1859 * Turn Makefile into Makefile.in and make it useful. 1860 1861Tue Feb 29 22:08:00 2000 Simon J. Gerraty <sjg@zen.quick.com.au> 1862 1863 * Imported NetBSD's -current make(1) and resolve conflicts. 1864 1865 * Applied autoconf patches from bmake v2 1866 1867 * Imported clean code base from NetBSD-1.0 1868