Skip to content

Commit

Permalink
Import bmake-20080215
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg committed Mar 9, 2008
1 parent fcb3923 commit dfcd4ec
Show file tree
Hide file tree
Showing 73 changed files with 5,768 additions and 5,182 deletions.
127 changes: 127 additions & 0 deletions devel/bmake/files/ChangeLog
@@ -1,3 +1,130 @@
2008-02-15 Simon J. Gerraty <sjg@void.crufty.net>

* merge some patches from NetBSD pkgsrc.

* makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of
the MAKSYSPATH used during bootstrap.

* Makefile.in (BMAKE_VERSION): bump version to 20080215
* Merge with NetBSD make, pick up:
o warn if non-space chars follow 'empty' in a conditional.

2008-01-18 Simon J. Gerraty <sjg@void.crufty.net>

* Makefile.in (BMAKE_VERSION): bump version to 20080118
* Merge with NetBSD make, pick up:
o consider dependencies read from .depend as optional - dsl
o remember when buffer for reading makefile grows - dsl
o add -dl (aka LOUD) - David O'Brien

2007-10-22 Simon J. Gerraty <sjg@void.crufty.net>

* Makefile.in (BMAKE_VERSION): bump version to 20071022
* Merge with NetBSD make, pick up:
o Allow .PATH<suffix> to be used for .include ""

* boot-strap: source default settings from .bmake-boot-strap.rc

2007-10-16 Simon J. Gerraty <sjg@void.crufty.net>

* Makefile.in: fix maninstall on various systems
provided that our man.mk is used.
For non-BSD systems we install the preformatted page
into $MANDIR/cat1

2007-10-15 Simon J. Gerraty <sjg@void.crufty.net>

* boot-strap: make bmake.1 too, so maninstall works.

2007-10-14 Simon J. Gerraty <sjg@void.crufty.net>

* Makefile.in (BMAKE_VERSION): bump version to 20071014
* Merge with NetBSD make, pick up:
o revamped handling of defshell - configure no longer needs to
know the content of the shells array - apb
o stop Var_Subst modifying its input - apb
o avoid calling ParseTrackInput too often - dsl

2007-10-11 Simon J. Gerraty <sjg@void.crufty.net>

* Makefile.in (BMAKE_VERSION): bump version to 20071011
* Merge with NetBSD make, pick up:
o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path.

* sigcompat.c: some tweaks for HP-UX 11.x based on
patch from Tobias Nygren

* configure.in: update handling of --with-defshell to match
new make behavior. --with-defshell=/usr/xpg4/bin/sh
will now do what one might hope - provided the chosen shell
behaves enough like sh.

2007-10-08 Simon J. Gerraty <sjg@void.crufty.net>

* Makefile.in (BMAKE_VERSION): bump to 20071008
* Merge with NetBSD make, pick up:
o .MAKE.JOB.PREFIX - control the token output before jobs - sjg
o .export/.MAKE.EXPORTED - export of variables - sjg
o .MAKE.MAKEFILES - track all makefiles read - sjg
o performance improvements - dsl
o revamp parallel job scheduling - dsl

2006-07-28 Simon J. Gerraty <sjg@void.crufty.net>

* Makefile.in (BMAKE_VERSION): bump to 20060728
* Merge with NetBSD make, pick up:
o extra debug info during variable and cond processing - sjg
o shell definition now covers newline - rillig
o minor mem leak in PrintOnError - sjg

2006-05-11 Simon J. Gerraty <sjg@void.crufty.net>

* Makefile.in (BMAKE_VERSION): bump to 20060511
* Merge with NetBSD make, pick up:
o more memory leaks - coverity
o possible overflow in ArchFindMember - coverity
o extract variable modifier code out of Var_Parse()
so it can be called recursively - sjg
o unit-tests/moderrs - sjg

2006-04-12 Simon J. Gerraty <sjg@void.crufty.net>

* Makefile.in (BMAKE_VERSION): bump to 20060412
* Merge with NetBSD make, pick up:
o fixes for some memory leaks - coverity
o only read first sys.mk etc when searching sysIncPath - sjg

* main.c (ReadMakefile): remove hack for __INTERIX that prevented
setting ${MAKEFILE} - OBATA Akio

2006-03-18 Simon J. Gerraty <sjg@void.crufty.net>

* Makefile.in (BMAKE_VERSION): bump to 20060318
* Merge with NetBSD make, pick up:
o cleanup of job.c to remove remote handling, distcc is more
useful and this code was likely bit-rotting - dsl
o fix for :P modifier - sjg
* boot-strap: set default prefix to something reasonable
(for me anyway).

2006-03-01 Simon J. Gerraty <sjg@void.crufty.net>

* Makefile.in (BMAKE_VERSION): bump to 20060301
* Merge with NetBSD make, pick up:
o make .WAIT apply recursively, document and test case - apb
o allow variable modifiers in a variable appear anywhere in
modifier list, document and test case - sjg

2006-02-22 Simon J. Gerraty <sjg@void.crufty.net>

* Makefile.in (BMAKE_VERSION): bump to 20060222
* Merge with NetBSD make, pick up:
o improved job token handling - dsl
o SIG_DFL the correct signal before exec - dsl
o more debug info during parsing - dsl
o allow variable modifiers to be specified via variable - sjg
* boot-strap: explain why we died if no mksrc

2005-11-05 Simon J. Gerraty <sjg@void.crufty.net>

* Makefile.in (BMAKE_VERSION): bump to 20051105
Expand Down
6 changes: 6 additions & 0 deletions devel/bmake/files/FILES
Expand Up @@ -56,6 +56,7 @@ lst.lib/lstLast.c
lst.lib/lstMember.c
lst.lib/lstNext.c
lst.lib/lstOpen.c
lst.lib/lstPrev.c
lst.lib/lstRemove.c
lst.lib/lstReplace.c
lst.lib/lstSucc.c
Expand Down Expand Up @@ -84,6 +85,9 @@ wait.h
unit-tests/Makefile.in
unit-tests/cond1
unit-tests/comment
unit-tests/export
unit-tests/export-all
unit-tests/moderrs
unit-tests/modmatch
unit-tests/modorder
unit-tests/modts
Expand All @@ -92,3 +96,5 @@ unit-tests/posix
unit-tests/ternary
unit-tests/test.exp
unit-tests/varcmd
unit-tests/modmisc
unit-tests/dotwait
45 changes: 30 additions & 15 deletions devel/bmake/files/Makefile.in
@@ -1,7 +1,7 @@
# $NetBSD: Makefile.in,v 1.1.1.1 2005/12/02 00:02:59 sjg Exp $
# $NetBSD: Makefile.in,v 1.1.1.2 2008/03/09 19:39:32 joerg Exp $
# @(#)Makefile 5.2 (Berkeley) 12/28/90

# $Id: Makefile.in,v 1.1.1.1 2005/12/02 00:02:59 sjg Exp $
# $Id: Makefile.in,v 1.1.1.2 2008/03/09 19:39:32 joerg Exp $

PROG= bmake
SRCS= arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \
Expand All @@ -11,6 +11,7 @@ SRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
SRCS += lstPrev.c

.if !empty(LIBOBJS)
SRCS+= ${LIBOBJS:.o=.c}
Expand All @@ -22,14 +23,15 @@ srcdir= @srcdir@
CC?= @CC@

# Base version on src date
BMAKE_VERSION= 20051105
BMAKE_VERSION= 20080215
# knowing when it was built is also handy
BUILD_DATE!= date +%Y%m%d
MAKE_VERSION:= bmake-${BMAKE_VERSION} build-${BUILD_DATE}
MACHINE=@machine@
MACHINE_ARCH=@machine_arch@
DEFAULT_SYS_PATH = @default_sys_path@

CFLAGS+= -D_PATH_DEFSYSPATH=\"@default_sys_path@\"
CFLAGS+= -D_PATH_DEFSYSPATH=\"${DEFAULT_SYS_PATH}\"
CFLAGS+= -I. -I${srcdir} @DEFS@ @CPPFLAGS@ ${XDEFS} -DMAKE_NATIVE
CFLAGS+= ${CFLAGS_${.TARGET:T}}
CFLAGS_main.o= "-DMAKE_VERSION=\"${MAKE_VERSION}\""
Expand All @@ -50,7 +52,7 @@ isBSD44= NetBSD FreeBSD OpenBSD DragonFly
# Don't set these for anyone else since we don't know what the effect may be.
# On FreeBSD WARNS=2 sets a bunch of -W flags that make does not handle.
WFORMAT= 1
WARNS=3
WARNS=4
.NOPATH: bmake.cat1
.if make(install) && exists(${DESTDIR}/usr/share/doc)
SUBDIR= PSD.doc
Expand All @@ -61,7 +63,7 @@ SUBDIR= PSD.doc
# XXX not sure if we still want this given that configure
# lets us force or not the definition of MACHINE.
CFLAGS_main.o+= "-DFORCE_MACHINE=\"${MACHINE}\""
NOMAN=no
MANTARGET=cat
SRCS+= getenv.c
INSTALL?=${srcdir}/install-sh
.if (${MACHINE} == "sun386")
Expand Down Expand Up @@ -96,6 +98,20 @@ ${MAN}: make.1

.endif

.if !empty(isBSD44:M${OS})
.if "${OS}" != "NetBSD"
MAN1=${MAN}
.endif
MANTARGET?=man
.endif

MANTARGET?= cat
MANDEST?= ${MANDIR}/${MANTARGET}1

.if ${MANTARGET} == "cat"
_mfromdir=${srcdir}
.endif

.if exists(${srcdir}/../Makefile.inc)
.include "${srcdir}/../Makefile.inc"
.endif
Expand All @@ -111,15 +127,6 @@ ${MAN}: make.1
BINDIR= ${prefix}/bin
MANDIR= ${prefix}/man

.if "${OS}" != "NetBSD" && !empty(isBSD44:M${OS})
# freebsd's bsd.man.mk works differently
MAN1=${MAN}
MANDIR= ${prefix}/man/man
MANDEST= ${MANDIR}1
.NOPATH: bmake.cat1
.endif
MANDEST?= ${MANDIR}

arch.o: config.h
# make sure that MAKE_VERSION gets updated.
main.o: ${SRCS} ${MAKEFILE}
Expand All @@ -142,6 +149,14 @@ install-mk:
@echo need to unpack mk.tar.gz under ${srcdir} or set MKSRC; false
.endif

.ifdef TOOLDIR
# this is a native netbsd build,
# use libutil rather than the local emalloc etc.
CPPFLAGS+= -DHAVE_EMALLOC
LDADD+=-lutil
DPADD+=${LIBUTIL}
.endif

# A simple unit-test driver to help catch regressions
accept test:
cd ${.CURDIR}/unit-tests && ${.MAKE:S,^./,${.CURDIR}/,} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}

0 comments on commit dfcd4ec

Please sign in to comment.