Commit graph

163 commits

Author SHA1 Message Date
tnn
8ff65ed3ee bmake: provide last-resort SIZE_MAX fallback for pre-<stdint.h> systems
Not committed in src/usr.bin/make because the code has diverged and
this patch doesn't look to be needed there.
It is OK to undo this change when pkgsrc imports a newer bmake.
2022-04-03 19:18:00 +00:00
jperkin
852cc261e8 bmake: Restore PKGSRC_MACHINE_ARCH support.
This was lost in a previous update, and is required to ensure MACHINE_ARCH is
set correctly.  Fixes MACHINE_ARCH issues reported on OpenBSD/amd64 by various
people.
2020-11-12 16:05:47 +00:00
jperkin
1ee9687d31 bmake: Limit malloc_options to FreeBSD.
The only other OS I can find that supports malloc_options is OpenBSD, and that
does not support the "A" flag.  Besides, there are better ways to set the
flags instead of hardcoding them in a binary.
2020-11-12 16:01:36 +00:00
js
50cec6ea65 devel/bmake: Fix compiling on QNX 6.5 2020-08-25 21:43:33 +00:00
jperkin
ebf0c3b3b2 bmake: Support mksh as a bootstrap shell. 2020-07-06 10:24:04 +00:00
jperkin
f6bad54d58 bmake: Fix match for bootstrap pdksh.
When bmake is built during bootstrap it's using a temporary prefix, so matching
against LOCALBASE doesn't work.
2020-06-18 10:07:35 +00:00
jperkin
0fb4f60af4 bmake: Improve heuristic deciding whether to use pdksh.
The ultimate goal here is to completely sync with what was used by the
bootstrap script, but for now this will at least ensure if pdksh was pulled
in by bootstrap then the final build of devel/bmake will also use the same
shell rather than randomly based on OPSYS.
2020-06-12 16:01:36 +00:00
sjmulder
2e67b2b0bc bmake: Use 64 bit off_t on SunOS
Fixes bmake not finding files (e.g. .include) on Illumos wiht 32 bit
ABI.

See also: https://www.illumos.org/issues/9508
2020-06-02 10:07:33 +00:00
nia
067cb8c85b bmake: Update to 20200524.
This should help bootstrap on older platforms, such as IRIX with
the mipspro compiler.

2020-05-24  Simon J Gerraty  <sjg@beast.crufty.net>

	* configure.in: add AC_PROG_CC_C99 for mipspro compiler
	* dirname.c: remove include of namespace.h
2020-05-24 21:10:17 +00:00
nia
0b335ac794 bmake: Update to 20200517
2020-05-17  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200517
	Merge with NetBSD make, pick up
	o modified dollar tests to avoid shell dependencies
	o new tests for .INCLUDEFROM

2020-05-16  Simon J Gerraty  <sjg@beast.crufty.net>

	* unit-tests/dollar.mk: tweak  '1 dollar literal' test
	to not depend so much on shell behavior

2020-05-10  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200510
	Merge with NetBSD make, pick up
	o unit test for dollar handling

2020-05-06  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200506
	Merge with NetBSD make, pick up
	o str.c: empty string does not match % pattern
	  plus unit-test changes

2020-05-04  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200504
	May the 4th be with you
	Merge with NetBSD make, pick up
	o var.c: import handling of old sysV style modifier using '%'
	o str.c: refactor brk_string
	o unit-tests: add test case for lazy conditions

2020-04-18  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200418

	* configure.in: use_makefile=no for cygwin et al.
	case insensitive filesystems just don't work if both
	makefile and Makefile exist.
	NOTE: bmake does not support cygwin and likely never will,
	but if brave souls want to try it - help them out.

2020-04-02  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200402
	Merge with NetBSD make, pick up
	o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD
	  a blank command is perfectly valid.

2020-03-30  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200330
	Merge with NetBSD make, pick up
	o make.h: extern debug_file

2020-03-18  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200318
	Merge with NetBSD make, pick up
	o meta.c: meta_oodate, check for corrupted meta file
	  earlier and more often.

2020-02-20  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200220

2020-02-19  Simon J Gerraty  <sjg@beast.crufty.net>

	* boot-strap: unset MAKEFLAGS

2020-02-12  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200212
	* meta.c: meta_compat_parent check for USE_FILEMON
	  patch from Soeren Tempel

2020-02-05  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION: 20200205
	Merge with NetBSD make, pick up
	o meta.c: fix compat mode, need to call meta_job_output()
	o job.c: extra fds for meta mode not needed if using filemon_dev

2020-01-22  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION: 20200122
	Merge with NetBSD make, pick up
	o meta.c: avoid passing NULL to filemon_*() when meta_needed()
	  returns FALSE.

2020-01-21  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION: 20200121
	Merge with NetBSD make, pick up
	o filemon/filemon_{dev,ktrace}.c: allow selection of
	  filemon implementation.  filemon_dev.c uses the kernel module
	  while filemon_ktrace.c leverages the fktrace api available in
	  NetBSD.  filemon_ktrace.c can hopefully form the basis for
	  adding support for other tracing mechanisms such as strace on
	  Linux.
	o meta.c: when target is out-of-date per normal make rules
	  record value of .OODATE in meta file.

2019-09-26  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION: 20190926
	  Merge with NetBSD make, pick up
	  o parse.c: don't pass NULL to realpath(3)
	    some versions cannot handle it.

2019-04-09  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION: 20190409
	  Merge with NetBSD make, pick up
	  o parse.c: ParseDoDependency: free paths rather than assert

2018-12-22  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION: 20181222

	* configure.in: add --without-makefile to avoid generating
	  makefile and make-bootstrap.sh

	* include Makefile.inc if it exists

	* Use Makefile and Makefile.config.in in unit-tests
	  so we can use just: make obj && make && make test
	  when bmake is already available.
	  We add --without-makefile to CONFIGURE_ARGS in this case.

	* tweak bsd.after-import.mk (captures Makefile.config etc
	  after import to FreeBSD for example) to cope with all the above.

2018-12-21  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION: 20181221
	  Merge with NetBSD make, pick up
	  o parse.c: ParseVErrorInternal use .PARSEDIR
	    and apply if relative, and then use .PARSEFILE
	    for consistent result.

2018-12-20  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION: 20181220
	  Merge with NetBSD make, pick up
	  o parse.c: ParseVErrorInternal use .CURDIR if .PARSEDIR
	    is relative
	  o var.c: avoid SEGFAULT in .unexport-env
	    when MAKELEVEL is not set

2018-12-16  Simon J Gerraty  <sjg@beast.crufty.net>

	* VERSION: 20181216
	  Merge with NetBSD make, pick up
	  o fix for unit-tests/varquote.mk on Debian

2018-09-21  Simon J. Gerraty  <sjg@bad.crufty.net>

	* VERSION: 20180919
	  Merge with NetBSD make, pick up
	  o var.c: add :q
	  o dir.c: cleanup caching of stats

2018-09-21  Simon J Gerraty  <sjg@beast.crufty.net>

	* Makefile.config.in: use += where it makes sense.

2018-05-12  Simon J. Gerraty  <sjg@bad.crufty.net>

	* VERSION: 20180512
	  Merge with NetBSD make, pick up
	  o job.c: skip polling job token pipe

2018-04-05  Simon J. Gerraty  <sjg@bad.crufty.net>

	* VERSION: 20180405
	  Merge with NetBSD make, pick up
	  o parse.c: be more cautious about detecting depenency line
	    rather than sysV style include.

2018-02-22  Simon J. Gerraty  <sjg@bad.crufty.net>

	* VERSION: 20180222
	  Merge with NetBSD make, pick up
	  o parse.c: avoid calling sysconf for every call to loadfile

2018-02-18  Simon J. Gerraty  <sjg@bad.crufty.net>

	* VERSION: 20180218
	  Merge with NetBSD make, pick up
	  o var.c: Var_Set handle NULL value anytime.

2018-02-12  Simon J. Gerraty  <sjg@bad.crufty.net>

	* VERSION: 20180212
	  Merge with NetBSD make, pick up
	  o parse.c: do not treat .info as warning with -W

2017-12-07  Simon J. Gerraty  <sjg@bad.crufty.net>

	* VERSION: 20171207
	  Merge with NetBSD make, pick up
	  o var.c: Var_Append use Var_Set if var not previously set
	    so that VAR_CMD is handled correctly.
	    Add a suitable unit-test.

2017-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>

	* VERSION (_MAKE_VERSION): 20171126

	* aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__
	  since AC_TRY_COMPILE puts input inside main()
	  which upsets modern compilers.

2017-11-18  Simon J. Gerraty  <sjg@bad.crufty.net>

	* VERSION: 20171118
	  Merge with NetBSD make, pick up
	  o var.c: do not append to variable set on command line
	    add unit-test to catch this.

2017-10-28  Simon J. Gerraty  <sjg@bad.crufty.net>

	* VERSION: 20171028
	  Merge with NetBSD make, pick up
	  o main.c: ignore empty MAKEOBJDIR

	* Makefile.config.in:
	  make @prefix@ @machine*@ and @default_sys_path@ defaults.

2017-10-05  Simon J. Gerraty  <sjg@bad.crufty.net>

	* VERSION: 20171005

	* unit-tests/dotwait.mk: redirect stderr through pipe for more
	  consistent result on some platforms.

2017-08-13  Simon J. Gerraty  <sjg@bad.crufty.net>

	* machine.sh: entry for AIX

2017-08-12  Simon J. Gerraty  <sjg@bad.crufty.net>

	* VERSION (_MAKE_VERSION): Move the setting of _MAKE_VERSION
	  to a file that can be included by configure as well as make.
	  This allows configure to set set _MAKE_VERSION in make-bootstrap.sh

2017-08-10  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170810
	  Merge with NetBSD make, pick up
	  o meta.c: if target is in subdir we only need subdir name in
	    meta_name.

2017-07-20  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170720
	  Merge with NetBSD make, pick up
	  o compat.c: pass SIGINT etc onto child and wait for it to exit
	    before we self-terminate.

2017-07-11  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170711
	  forgot to update after merge on 20170708 ;-)
	  o main.c: refactor to reduce size of main function.
	    add -v option to always fully expand values.
	  o meta.c: ensure command output in meta file has ending newline
	    even when filemon not being used.
	    When matching ${.MAKE.META.IGNORE_PATTERNS} do not use
	    pathname via ':L' since any ':' in pathname breaks that.
	    Instead set a '${.p.}' to pathname in the target context and
	    use that.

2017-05-10  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170510
	  Merge with NetBSD make, pick up
	  o main.c: Main_SetObjdir: ensure buf2 is in scope

2017-05-08  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170505
	  see mk/ChangeLog

2017-05-05  Simon J. Gerraty  <sjg@bad.crufty.net>

	* parse.c: not everyone has stdint.h

2017-05-01  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170501
	  see mk/ChangeLog

2017-04-21  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170421
	  Merge with NetBSD make, pick up
	  o str.c: Str_Match: fix closure tests for [^] and add unit-test.

2017-04-20  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170420
	  Merge with NetBSD make, pick up
	  o main.c: only use -C arg "as is" if it contains no
	    relative component.

2017-04-18  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170418
	  Merge with NetBSD make, pick up
	  o main.c: fix Main_SetObjdir() for relative paths (eg obj).

2017-04-17  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170417
	  Merge with NetBSD make, pick up
	  o fixes a number of coverity complaints
	    - check return value of fseek, fcntl
	    - plug memory leak in Dir_FindFile, Var_LoopExpand,
	      JobPrintCommand, ParseTraditionalInclude
	    - use bmake_malloc() where NULL is not tollerated
	    - use MAKE_ATTR_UNUSED rather that kludges like
	      return(unused ? 0 : 0)
	    - use purge_cached_realpaths() rather than abuse cached_realpath()

2017-04-13  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170413
	  Merge with NetBSD make, pick up
	  o main.c: when setting .OBJDIR ignore '$' in paths.

	* job.c: use MALLOC_OPTIONS to set malloc_options.

2017-04-11  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170411
	  Merge with NetBSD make, pick up
	  o str.c: Str_Match: allow [^a-z] to behave as expected.

2017-03-26  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170326
	  Merge with NetBSD make, pick up
	  o main.c: purge relative paths from realpath cache when .OBJDIR
	    is changed.

2017-03-11  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170311
	  Merge with NetBSD make, pick up
          o main.c: only use -C arg "as is" if it starts with '/'.

2017-03-01  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170301
	  Merge with NetBSD make, pick up
	  o main.c: use -C arg "as is" rather than getcwd()
	    if they identify the same directory.
	  o parse.c: ensure loadfile buffer is \n terminated in non-mmap case

2017-02-01  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170201
	  Merge with NetBSD make, pick up
	  o var.c: allow :_=var and avoid use of special context.

2017-01-30  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170130
	  Merge with NetBSD make, pick up
	  o var.c: add :range and :_
	  o main.c: partially initialize Dir_* before MainParseArgs()
	    can be called.
	    If -V, skip Main_ExportMAKEFLAGS()

2017-01-14  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170114
	  Merge with NetBSD make, pick up
	  o var.c: allow specifying the utc value used by :{gm,local}time

2016-12-12  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20161212
	  Merge with NetBSD make, pick up
          o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too.

2016-12-09  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20161209
	  Merge with NetBSD make, pick up
	  o main.c: cleanup setting of .OBJDIR
	  o parse.c: avoid coredump from (var)=val

2016-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20161126
	  Merge with NetBSD make, pick up
	  o make.c: Make_OODate: report src node name if path not set

2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160926
	  Merge with NetBSD make, pick up
	  o support for .DELETE_ON_ERROR: (remove targets that fail)

2016-09-26  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile MAN: tweak .Dt to match ${PROG}

2016-08-18  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160818
	  its a neater number; pick up whitespace fixes to man page.

2016-08-17  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160817
	  Merge with NetBSD make, pick up
	  o meta.c: move handling of .MAKE.META.IGNORE_* to meta_ignore()
	    so we can call it before adding entries to missingFiles.
	    Thus we do not track files we have been told to ignore.

2016-08-15  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160815
	  Merge with NetBSD make, pick up
	  o meta_oodate: apply .MAKE.META.IGNORE_FILTER (if defined) to
	    pathnames, and skip if the expansion is empty.
	    Useful for dirdeps.mk when checking DIRDEPS_CACHE.

2016-08-12  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160812
	  Merge with NetBSD make, pick up
	  o meta.c: remove all missingFiles entries that match a deleted
	    dir.
	  o main.c: set .ERROR_CMD if possible.

2016-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160606
	  Merge with NetBSD make, pick up
	  o dir.c: extend mtimes cache to others via cached_stat()

2016-06-04  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160604
	  Merge with NetBSD make, pick up
	  o meta.c: missing filemon data is only relevant if we read a
	    meta file.
	    Also do not return oodate for a missing metafile if gn->path
	    points to .CURDIR

2016-06-02  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160602
	  Merge with NetBSD make, pick up
	  o cached_realpath(): avoid hitting filesystem more than necessary.
	  o meta.c: refactor need_meta decision, add knobs for
	    missing meta file and filemon data wrt out-of-datedness.

2016-05-28  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160528

	* boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION

2016-05-12  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160512
	  Merge with NetBSD make, pick up
	  o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS
	    this is useful for gcov builds.
	  o propagate errors from filemon(4).

2016-05-09  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160509
	  Merge with NetBSD make, pick up
	  o remove use of non-standard types u_int etc.
	  o meta.c: apply realpath() before matching against metaIgnorePaths

2016-04-04  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160404
	  Merge with NetBSD make, pick up
	  o allow makefile to set .MAKE.JOBS

	* Makefile (PROG_NAME): use ${_MAKE_VERSION}

2016-03-15  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160315
	  Merge with NetBSD make, pick up
	  o fix handling of archive members

2016-03-13  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (_MAKE_VERSION): rename variable to avoid interference
	  with checks for ${MAKE_VERSION}

2016-03-10  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20160310
	  Merge with NetBSD make, pick up
	  o meta.c: treat missing Read file same as Write, incase we Delete it.

2016-03-07  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20160307
	  Merge with NetBSD make, pick up
	  o var.c: fix :ts\nnn to be octal by default.
	  o meta.c: meta_finish() to cleanup memory.

2016-02-26  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20160226
	  Merge with NetBSD make, pick up
	  o meta.c: allow meta file for makeDepend if makefiles want it.

2016-02-19  Simon J. Gerraty  <sjg@bad.crufty.net>

	* var.c: default .MAKE.SAVE_DOLLARS to FALSE
	  for backwards compatability.

	* Makefile (MAKE_VERSION): 20160220
	  Merge with NetBSD make, pick up
	  o var.c: add knob to control handling of '$$' in :=

2016-02-18  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20160218
	  Merge with NetBSD make, pick up
	  o var.c: add .export-literal allows us to fix sys.clean-env.mk
	    post the changes to Var_Subst.
	    Var_Subst now takes flags, and does not consume '$$' in :=

2016-02-17  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20160217
	  Merge with NetBSD make, pick up
	  o var.c: preserve '$$' in :=
	  o parse.c: add .dinclude for handling included
	    makefile like .depend

2015-12-20  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151220
	  Merge with NetBSD make, pick up
	  o suff.c: re-initialize suffNull when clearing suffixes.

2015-12-01  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151201
	  Merge with NetBSD make, pick up
	  o cond.c: CondCvtArg: avoid access beyond end of empty buffer.
	  o meta.c: meta_oodate: use lstat(2) for checking link target
	    in case it is a symlink.
	  o var.c: avoid calling brk_string and Var_Export1 with empty
	    strings.

2015-11-26  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151126
	  Merge with NetBSD make, pick up
	  o parse.c: ParseTrackInput don't access beyond
	    end of old value.

2015-10-22  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151022

	* Add support for BSD/OS which lacks inttypes.h
	  and really needs sys/param.h for sys/sysctl.h
	  also 'type' is not a shell builtin.

	* var.c: eliminate uint32_t and need for inttypes.h

	* main.c: PrintOnError flush stdout before run .ERROR

	* parse.c: cope with _SC_PAGESIZE not being defined.


2015-10-20  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151020
	  Merge with NetBSD make, pick up
	  o var.c: fix uninitialized var

2015-10-12  Simon J. Gerraty  <sjg@bad.crufty.net>

	* var.c: the conditional expressions used with ':?' can be
	expensive, if already discarding do not evaluate or expand
	anything.

2015-10-10  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151010
	  Merge with NetBSD make, pick up
	  o Add Boolean wantit flag to Var_Subst and Var_Parse
	    when FALSE we know we are discarding the result and can
	    skip operations like Cmd_Exec.

2015-10-09  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151009
	  Merge with NetBSD make, pick up
	  o var.c: don't check for NULL before free()
	  o meta.c: meta_oodate, do not hard code ignore of makeDependfile

2015-09-10  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20150910
	  Merge with NetBSD make, pick up
	  o main.c: with -w print Enter/Leaving messages for objdir too
	    if necessary.
	  o centralize shell metachar handling

	* FILES: add metachar.[ch]

2015-06-06  Simon J. Gerraty  <sjg@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20150606
	  Merge with NetBSD make, pick up
	  o make.1: document .OBJDIR target
2020-05-24 11:09:43 +00:00
nia
76397f56f6 Import bmake- 2020-05-24 05:35:51 +00:00
sevan
73b8a41bc7 On Minix3 the call to read returns EAGAIN (-1) and causes the build to break.
Skip punting on Minix3 as workaround for now, change via sjg@
2018-12-23 23:29:28 +00:00
schmonz
d9766babc9 Set default malloc_options iff NetBSD. Other platforms that don't
support the same options may make noise about that, such as OpenBSD.
Suggested by joerg@.
2018-09-10 10:16:58 +00:00
khorben
e18556c6f4 Avoid warnings about implicit declaration of function 'ffs'
Besides addressing these warnings, this patch should not modify the resulting
binary in any way. There should be no need to re-compile or bump any version or
revision.

Compile-tested on NetBSD/amd64. "Should be ok" joerg@
2018-02-11 17:34:54 +00:00
brook
2fb85e50f2 Fix a problem with MAKE_VERSION being undefined on case-insentive filesystems.
On case-insensitive filesystems such as MacOS, two files (Makefile and makefile,
which is created by configure from makefile.in) collide.  Only the former
defines MAKE_VERSION, but it is replaced by the latter.  Consequently,
MAKE_VERSION is defined as an empty string on these systems.  This patch is
the result of a discussion on tech-pkg (see the thread following
http://mail-index.netbsd.org/tech-pkg/2017/08/13/msg018629.html) and is
based upon code incorporated into bmake v20170812.
2017-08-15 15:54:06 +00:00
jperkin
a7efdccd6c Use OPSYSVARS. 2016-02-25 12:12:47 +00:00
jperkin
ac56158090 Attempt to bring sanity to how ABI and MACHINE_ARCH are set.
Previously there were at least 5 different ways MACHINE_ARCH could be set,
some statically and some at run time, and in many cases these settings
differed, leading to issues at pkg_add time where there was conflict
between the setting encoded into the package and that used by pkg_install.

Instead, move to a single source of truth where the correct value based on
the host and the chosen (or default) ABI is determined in the bootstrap
script.  The value can still be overridden in mk.conf if necessary, e.g.
for cross-compiling.

ABI is now set by default and if unset a default is calculated based on
MACHINE_ARCH.  This fixes some OS, e.g. Linux, where the wrong default was
previously chosen.

As a result of the refactoring there is no need for LOWER_ARCH, with
references to it replaced by MACHINE_ARCH.  SPARC_TARGET_ARCH is also
removed.
2016-01-24 16:14:44 +00:00
ryoon
b2421f02cf Fix QNX build.
From Jan Danielsson.
2015-07-04 07:12:08 +00:00
tron
6a34c48b19 Prefer "/usr/bin/bash" over the "pdksh" package for all versions
of Solaris.

Change during pkgsrc freeze approved by Jonathan Perkin.
2015-06-17 17:37:50 +00:00
joerg
5f0f6a3612 Update to bmake-20150505:
- Better .if checks
- Improved handling for "-" mode
- Improved suffix handling
- Recognize bitrig
2015-05-19 22:04:35 +00:00
joerg
1da4f6636d Merge changes from bmake-20150505, the hard way because the last update
was incomplete and not using cvs import.
2015-05-19 22:01:19 +00:00
joerg
9ca2739e6b Replace .Dt as well. 2015-05-19 21:49:23 +00:00
joerg
c920580a6a Makefile.in is gone. 2015-05-19 21:48:58 +00:00
joerg
d071d960ea Import bmake-20150505 2015-05-19 21:36:43 +00:00
sevan
e33a740e4b Switch AIX to using pdksh as the default shell too.
"/bin/sh: There is no process to read data written to a pipe." is logged using
system supplied shell during the scan stage of a bulkbuildi otherwise.

Reviewed by wiz@
2015-05-03 14:23:09 +00:00
joerg
e3ae9428d0 r1.180 from src: Explain what max is and handle i reaching it again. 2015-04-16 13:34:14 +00:00
joerg
1108dbc2a7 Don't use memcpy for overlapping ranges. Bump revision. 2015-04-16 11:40:43 +00:00
wiz
e7b305c4f3 Fix fprintf format string (already fixed the same way in src). 2014-03-31 08:37:25 +00:00
ryoon
2365206259 Bump version to 20140314
* Add SCO OpenServer 5.0.7/3.2 support
* Replace _DIR with _DIR_H in dir.h, because SCO OpenServer 5.0.7/3.2 has _DIR
  macro in dirent.h
2014-03-14 21:59:34 +00:00
ryoon
fb545eb695 Fix column of .if etc. 2014-02-16 08:55:22 +00:00
jperkin
ee1fa75918 Only install the catman page if catinstall is defined. Noticed by tron@ 2014-02-15 10:42:52 +00:00
jperkin
0fdcbc1737 bmake-20140214: Install the catman page. 2014-02-14 16:09:18 +00:00
obache
b098e74c03 Take care for the case missing `type' command, PR pkg/48089.
No objection from MAINTAINER over 3 month.
2013-10-31 12:18:19 +00:00
joerg
4a34accd5f Workaround for bad Linux headers. 2013-10-14 23:19:09 +00:00
ryoon
809bc0b208 Add FreeMiNT support. 2013-09-08 16:32:14 +00:00
ryoon
4d0e6ef03d Fix build under Cygwin64.
* Treat uname -p = unknown like machine.sh, use uname -m instead.
2013-07-30 12:27:20 +00:00
ryoon
4a0907cc4d Add (Debian) GNU/kFreeBSD port.
Similar to GNU/Linux.

Bump bootstrap-mk-files to 20130727.
2013-07-26 09:38:15 +00:00
obache
e25f1ca3a9 prevent to force MACHINE_ARCH=i386 on Cygwin, for cygwin64. 2013-04-06 02:49:57 +00:00
obache
de952ed035 fixes for renaming CYGWIN=>Cygwin 2013-04-06 01:46:06 +00:00
christos
7273bcb208 bump revision 2013-02-26 00:52:20 +00:00
christos
31a7c841e8 regen 2013-02-26 00:51:01 +00:00
christos
016ccf3e50 PR/45042: Thomas Cort: Minix support: handle missing setpgid and setrlimit 2013-02-26 00:50:14 +00:00
adam
378bcb6545 Added do-test: 2013-02-18 22:38:19 +00:00
obache
6c423dca0e tell Cygwin to bmake. 2013-02-09 12:57:35 +00:00
hans
1b5c526284 Use /usr/bin/bash on all SunOS 5.11 variants if it exists. Fall back to
shells/pdksh in all other cases, native /bin/ksh is not good enough.
2013-01-31 22:55:21 +00:00
sjg
bd5ded55cf Patch from Jan-Jaap van der Heijden for IRIX 2012-11-01 16:48:12 +00:00
asau
e1ab7079b6 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-31 11:16:30 +00:00
jperkin
74f81035d9 Make bash the default shell on SmartOS. 2012-07-24 13:18:00 +00:00
jperkin
dcc44bc21e Use native ksh93 on Solaris 11 and derivatives. 2012-06-15 09:54:41 +00:00
asau
73ab918702 Use configure framework and separate configure and build steps as usually.
From GSoC 2011 project by Stathis Kamperis.
2012-06-10 12:44:27 +00:00