Page MenuHomeFreeBSD

bsd.confs.mk: Support CONFGROUPS.yes
ClosedPublic

Authored by ivy on Mon, Oct 6, 6:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 3:43 PM
Unknown Object (File)
Fri, Oct 10, 4:15 AM
Unknown Object (File)
Fri, Oct 10, 4:15 AM
Unknown Object (File)
Fri, Oct 10, 4:15 AM
Unknown Object (File)
Fri, Oct 10, 4:15 AM
Unknown Object (File)
Thu, Oct 9, 11:00 PM
Unknown Object (File)
Tue, Oct 7, 4:21 PM
Unknown Object (File)
Mon, Oct 6, 11:24 PM

Details

Summary

Align CONFGROUPS with other options like SUBDIRS and FILESGROUPS by
supporting the CONFGROUPS.yes option. This means logic like this:

.if ${MK_FOO} != "no"
CONFGROUPS+= FOO
.endif

can be replaced by:

CONFGROUPS.${MK_FOO}+= FOO

Use this to simplify libexec/rc/rc.d/Makefile, and while here, indent
and alphabetise the file.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.Mon, Oct 6, 6:58 AM

I'd commit bsd.conf.mk as its own commot. I did this to subdirs years ago

This revision is now accepted and ready to land.Mon, Oct 6, 7:26 AM
In D52923#1209241, @imp wrote:

I'd commit bsd.conf.mk as its own commot. I did this to subdirs years ago

i could split this into two commits if you insist, but i'd rather not. the changes to both files are self-contained, so it will look fine in the history.

In D52923#1209247, @ivy wrote:
In D52923#1209241, @imp wrote:

I'd commit bsd.conf.mk as its own commot. I did this to subdirs years ago

i could split this into two commits if you insist, but i'd rather not. the changes to both files are self-contained, so it will look fine in the history.

But if another file uses this construct and then we find a problem in rc.d/makefile, it becomes harder to cleanly back that out since we have to either back out more things, or do a hacky diff to revert.

remove libexec/rc/rc.d changes

This revision now requires review to proceed.Wed, Oct 8, 5:47 AM
This revision is now accepted and ready to land.Wed, Oct 8, 5:56 AM
This revision was automatically updated to reflect the committed changes.