Skip to content

Commit

Permalink
update patchset and remove unused files.
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Nov 7, 2024
1 parent 8f6f616 commit 76a0df4
Show file tree
Hide file tree
Showing 58 changed files with 20 additions and 4,627 deletions.
660 changes: 0 additions & 660 deletions contrib/bmake/.gitattributes

This file was deleted.

4 changes: 2 additions & 2 deletions contrib/bmake/bmake.cat1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BMAKE(1) MidnightBSD General Commands Manual BMAKE(1)
BMAKE(1) MidnightBSD General Commands Manual BMAKE(1)

NAME
bmake -- maintain program dependencies
Expand Down Expand Up @@ -1622,4 +1622,4 @@ BMAKE(1) MidnightBSD General Commands Manual BMAKE(

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

MidnightBSD 4.0 January 28, 2022 MidnightBSD 4.0
MidnightBSD 4.0 January 28, 2022 MidnightBSD 4.0
23 changes: 18 additions & 5 deletions contrib/bmake/job.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,16 +263,16 @@ typedef struct ShellWriter {
* pass jobs queue to sub-makes.
* Use .MAKE.ALWAYS_PASS_JOB_QUEUE=no to disable.
*/
#define MAKE_ALWAYS_PASS_JOB_QUEUE ".MAKE.ALWAYS_PASS_JOB_QUEUE"
static int Always_pass_job_queue = TRUE;
#define MAKE_ALWAYS_PASS_JOB_QUEUE "${.MAKE.ALWAYS_PASS_JOB_QUEUE:U}"
static bool Always_pass_job_queue = true;
/*
* FreeBSD: aborting entire parallel make isn't always
* desired. When doing tinderbox for example, failure of
* one architecture should not stop all.
* We still want to bail on interrupt though.
*/
#define MAKE_JOB_ERROR_TOKEN "MAKE_JOB_ERROR_TOKEN"
static int Job_error_token = TRUE;
#define MAKE_JOB_ERROR_TOKEN "${MAKE_JOB_ERROR_TOKEN:U}"
static bool Job_error_token = true;

/*
* error handling variables
Expand Down Expand Up @@ -1501,7 +1501,8 @@ JobExec(Job *job, char **argv)
if (lseek(0, 0, SEEK_SET) == -1)
execDie("lseek to 0", "stdin");

if (job->node->type & (OP_MAKE | OP_SUBMAKE)) {
if (Always_pass_job_queue ||
(job->node->type & (OP_MAKE | OP_SUBMAKE))) {
/*
* Pass job token pipe to submakes.
*/
Expand Down Expand Up @@ -2276,6 +2277,12 @@ Job_Init(void)
aborting = ABORT_NONE;
job_errors = 0;

Always_pass_job_queue = GetBooleanExpr(MAKE_ALWAYS_PASS_JOB_QUEUE,
Always_pass_job_queue);

Job_error_token = GetBooleanExpr(MAKE_JOB_ERROR_TOKEN, Job_error_token);


/*
* There is a non-zero chance that we already have children.
* eg after 'make -f- <<EOF'
Expand Down Expand Up @@ -2835,6 +2842,12 @@ JobTokenAdd(void)
{
char tok = JOB_TOKENS[aborting], tok1;

if (!Job_error_token && aborting == ABORT_ERROR) {
if (jobTokensRunning == 0)
return;
tok = '+'; /* no error token */
}

/* If we are depositing an error token flush everything else */
while (tok != '+' && read(tokenWaitJob.inPipe, &tok1, 1) == 1)
continue;
Expand Down
Empty file removed contrib/bmake/lst.lib/Makefile
Empty file.
121 changes: 0 additions & 121 deletions contrib/bmake/lst.lib/lstAppend.c

This file was deleted.

79 changes: 0 additions & 79 deletions contrib/bmake/lst.lib/lstAtEnd.c

This file was deleted.

76 changes: 0 additions & 76 deletions contrib/bmake/lst.lib/lstAtFront.c

This file was deleted.

Loading

0 comments on commit 76a0df4

Please sign in to comment.