Skip to content

Commit

Permalink
Merge branch 'master' into drm-next-4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Macy committed Sep 10, 2016
2 parents 91e8487 + 6d5c0b2 commit 2652d2a
Show file tree
Hide file tree
Showing 131 changed files with 2,352 additions and 1,156 deletions.
6 changes: 6 additions & 0 deletions UPDATING
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW:
disable the most expensive debugging functionality run
"ln -s 'abort:false,junk:false' /etc/malloc.conf".)

20160908:
The queue(3) debugging macro, QUEUE_MACRO_DEBUG, has been split into
two separate components, QUEUE_MACRO_DEBUG_TRACE and
QUEUE_MACRO_DEBUG_TRASH. Define both for the original
QUEUE_MACRO_DEBUG behavior.

20160824:
r304787 changed some ioctl interfaces between the iSCSI userspace
programs and the kernel. ctladm, ctld, iscsictl, and iscsid must be
Expand Down
29 changes: 29 additions & 0 deletions contrib/bmake/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
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
Expand Down
4 changes: 2 additions & 2 deletions contrib/bmake/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $Id: Makefile,v 1.67 2016/06/07 00:46:12 sjg Exp $
# $Id: Makefile,v 1.72 2016/08/18 23:02:26 sjg Exp $

# Base version on src date
_MAKE_VERSION= 20160606
_MAKE_VERSION= 20160818

PROG= bmake

Expand Down
21 changes: 18 additions & 3 deletions contrib/bmake/bmake.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.\" $NetBSD: make.1,v 1.259 2016/06/03 07:07:37 wiz Exp $
.\" $NetBSD: make.1,v 1.262 2016/08/18 19:23:20 wiz Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
Expand Down Expand Up @@ -29,7 +29,7 @@
.\"
.\" from: @(#)make.1 8.4 (Berkeley) 3/19/94
.\"
.Dd June 2, 2016
.Dd August 15, 2016
.Dt MAKE 1
.Os
.Sh NAME
Expand Down Expand Up @@ -927,6 +927,9 @@ The default list includes:
.It Va .MAKE.META.IGNORE_PATTERNS
Provides a list of patterns to match against pathnames.
Ignore any that match.
.It Va .MAKE.META.IGNORE_FILTER
Provides a list of variable modifiers to apply to each pathname.
Ignore if the expansion is an empty string.
.It Va .MAKE.META.PREFIX
Defines the message printed for each meta file updated in "meta verbose" mode.
The default value is:
Expand Down Expand Up @@ -974,7 +977,19 @@ per normal evaluation rules.
.It Va MAKE_PRINT_VAR_ON_ERROR
When
.Nm
stops due to an error, it prints its name and the value of
stops due to an error, it sets
.Ql Va .ERROR_TARGET
to the name of the target that failed,
.Ql Va .ERROR_CMD
to the commands of the failed target,
and in "meta" mode, it also sets
.Ql Va .ERROR_CWD
to the
.Xr getcwd 3 ,
and
.Ql Va .ERROR_META_FILE
to the path of the meta file (if any) describing the failed target.
It then prints its name and the value of
.Ql Va .CURDIR
as well as the value of any variables named in
.Ql Va MAKE_PRINT_VAR_ON_ERROR .
Expand Down
17 changes: 13 additions & 4 deletions contrib/bmake/bmake.cat1
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,10 @@ VVAARRIIAABBLLEE AASSSSIIGGNNMMEENNTTSS
Provides a list of patterns to match against pathnames.
Ignore any that match.

_._M_A_K_E_._M_E_T_A_._I_G_N_O_R_E___F_I_L_T_E_R
Provides a list of variable modifiers to apply to each
pathname. Ignore if the expansion is an empty string.

_._M_A_K_E_._M_E_T_A_._P_R_E_F_I_X
Defines the message printed for each meta file updated in
"meta verbose" mode. The default value is:
Expand Down Expand Up @@ -635,9 +639,14 @@ VVAARRIIAABBLLEE AASSSSIIGGNNMMEENNTTSS
becomes `$' per normal evaluation rules.

_M_A_K_E___P_R_I_N_T___V_A_R___O_N___E_R_R_O_R
When bbmmaakkee stops due to an error, it prints its name and
the value of `_._C_U_R_D_I_R' as well as the value of any vari-
ables named in `_M_A_K_E___P_R_I_N_T___V_A_R___O_N___E_R_R_O_R'.
When bbmmaakkee stops due to an error, it sets `_._E_R_R_O_R___T_A_R_G_E_T'
to the name of the target that failed, `_._E_R_R_O_R___C_M_D' to
the commands of the failed target, and in "meta" mode, it
also sets `_._E_R_R_O_R___C_W_D' to the getcwd(3), and
`_._E_R_R_O_R___M_E_T_A___F_I_L_E' to the path of the meta file (if any)
describing the failed target. It then prints its name
and the value of `_._C_U_R_D_I_R' as well as the value of any
variables named in `_M_A_K_E___P_R_I_N_T___V_A_R___O_N___E_R_R_O_R'.

_._n_e_w_l_i_n_e This variable is simply assigned a newline character as
its value. This allows expansions using the ::@@ modifier
Expand Down Expand Up @@ -1489,4 +1498,4 @@ BBUUGGSS

There is no way of escaping a space character in a filename.

NetBSD 5.1 June 2, 2016 NetBSD 5.1
NetBSD 5.1 August 15, 2016 NetBSD 5.1
21 changes: 15 additions & 6 deletions contrib/bmake/main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.247 2016/06/05 01:39:17 christos Exp $ */
/* $NetBSD: main.c,v 1.250 2016/08/11 19:53:17 sjg Exp $ */

/*
* Copyright (c) 1988, 1989, 1990, 1993
Expand Down Expand Up @@ -69,7 +69,7 @@
*/

#ifndef MAKE_NATIVE
static char rcsid[] = "$NetBSD: main.c,v 1.247 2016/06/05 01:39:17 christos Exp $";
static char rcsid[] = "$NetBSD: main.c,v 1.250 2016/08/11 19:53:17 sjg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
Expand All @@ -81,7 +81,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993\
#if 0
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
#else
__RCSID("$NetBSD: main.c,v 1.247 2016/06/05 01:39:17 christos Exp $");
__RCSID("$NetBSD: main.c,v 1.250 2016/08/11 19:53:17 sjg Exp $");
#endif
#endif /* not lint */
#endif
Expand Down Expand Up @@ -1903,11 +1903,10 @@ cached_realpath(const char *pathname, char *resolved)
#endif
}

rp = Var_Value(pathname, cache, &cp);
if (rp) {
if ((rp = Var_Value(pathname, cache, &cp)) != NULL) {
/* a hit */
strlcpy(resolved, rp, MAXPATHLEN);
} else if ((rp = realpath(pathname, resolved))) {
} else if ((rp = realpath(pathname, resolved)) != NULL) {
Var_Set(pathname, rp, cache, 0);
}
free(cp);
Expand All @@ -1922,6 +1921,14 @@ PrintAddr(void *a, void *b)
}


static int
addErrorCMD(void *cmdp, void *gnp)
{
if (cmdp == NULL)
return 1; /* stop */
Var_Append(".ERROR_CMD", cmdp, VAR_GLOBAL);
return 0;
}

void
PrintOnError(GNode *gn, const char *s)
Expand All @@ -1942,6 +1949,8 @@ PrintOnError(GNode *gn, const char *s)
* We can print this even if there is no .ERROR target.
*/
Var_Set(".ERROR_TARGET", gn->name, VAR_GLOBAL, 0);
Var_Delete(".ERROR_CMD", VAR_GLOBAL);
Lst_ForEach(gn->commands, addErrorCMD, gn);
}
strncpy(tmp, "${MAKE_PRINT_VAR_ON_ERROR:@v@$v='${$v}'\n@}",
sizeof(tmp) - 1);
Expand Down
21 changes: 18 additions & 3 deletions contrib/bmake/make.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.\" $NetBSD: make.1,v 1.259 2016/06/03 07:07:37 wiz Exp $
.\" $NetBSD: make.1,v 1.262 2016/08/18 19:23:20 wiz Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
Expand Down Expand Up @@ -29,7 +29,7 @@
.\"
.\" from: @(#)make.1 8.4 (Berkeley) 3/19/94
.\"
.Dd June 2, 2016
.Dd August 15, 2016
.Dt MAKE 1
.Os
.Sh NAME
Expand Down Expand Up @@ -938,6 +938,9 @@ The default list includes:
.It Va .MAKE.META.IGNORE_PATTERNS
Provides a list of patterns to match against pathnames.
Ignore any that match.
.It Va .MAKE.META.IGNORE_FILTER
Provides a list of variable modifiers to apply to each pathname.
Ignore if the expansion is an empty string.
.It Va .MAKE.META.PREFIX
Defines the message printed for each meta file updated in "meta verbose" mode.
The default value is:
Expand Down Expand Up @@ -985,7 +988,19 @@ per normal evaluation rules.
.It Va MAKE_PRINT_VAR_ON_ERROR
When
.Nm
stops due to an error, it prints its name and the value of
stops due to an error, it sets
.Ql Va .ERROR_TARGET
to the name of the target that failed,
.Ql Va .ERROR_CMD
to the commands of the failed target,
and in "meta" mode, it also sets
.Ql Va .ERROR_CWD
to the
.Xr getcwd 3 ,
and
.Ql Va .ERROR_META_FILE
to the path of the meta file (if any) describing the failed target.
It then prints its name and the value of
.Ql Va .CURDIR
as well as the value of any variables named in
.Ql Va MAKE_PRINT_VAR_ON_ERROR .
Expand Down
Loading

0 comments on commit 2652d2a

Please sign in to comment.