History log of /freebsd-current/share/mk/bsd.confs.mk
Revision Date Author Comments
# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# cb05ce69 18-Apr-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Ensure the stage_* targets we use exist


# 4c1a82ce 05-Sep-2019 Emmanuel Vadot <manu@FreeBSD.org>

pkgbase: Create a FreeBSD-utilities package and make it the default one

The default package use to be FreeBSD-runtime but it should only contain
binaries and libs enough to boot to single user and repair the system, it
is also very handy to have a package that can be tranform to a small mfsroot.
So create a new package named FreeBSD-utilities and make it the default one.
Also move a few binaries and lib into this package when it make sense.
Reviewed by: bapt, gjb
Differential Revision: https://reviews.freebsd.org/D21506


# 5c5ed48a 19-Jul-2019 Emmanuel Vadot <manu@FreeBSD.org>

bsd.confs.mk: Test the correct value for the destination package

Reviewed by: bapt, gjb
Differential Revision: https://reviews.freebsd.org/D20961


# fe868b9b 15-Jan-2019 Simon J. Gerraty <sjg@FreeBSD.org>

Fix STAGE_DIR.* to handle indirect *DIR variables.

bsd.{files,conf}.mk recently changed to allow *DIR to name a variable
rather than a path.
STAGE_DIR.* need to adapt.

Reviewed by: bdrewery
Differential Revision: D18847


# d8c06970 28-Aug-2018 Brad Davis <brd@FreeBSD.org>

Add beforeinstallconfig to bsd.confs.mk to enable running commands prior to
the installconfig target.

Approved by: re (rgrimes), bapt (mentor)
Differential Revision: https://reviews.freebsd.org/D16874


# d26b89d9 28-Jul-2018 Brad Davis <brd@FreeBSD.org>

Whitespace only change, no functional change intended.

The padding makes it much easier to read, but occasionally means that commits
like this one have to be done to follow up. I intentionally kept this
separate from r336841 to try and make things easier to follow later on.

Approved by: bapt (mentor)


# c696b895 28-Jul-2018 Brad Davis <brd@FreeBSD.org>

Fix `make distribute' installing some configs which means CONFS was broken
with etcupdate and mergemaster.

Approved by: bapt (mentor)
Differential Revision: https://reviews.freebsd.org/D16478


# 29c3c889 27-Jul-2018 Brad Davis <brd@FreeBSD.org>

Avoid a install(1) crash by not using -C when the source is /dev/null

Approved by: allanjude (mentor)
Differential Revision: https://reviews.freebsd.org/D16476


# 8f958ba9 24-Jul-2018 Brad Davis <brd@FreeBSD.org>

Convert bsd.confs.mk to support DIRS.

This paves the way for moving config files out of head/etc and into the
directories with the src.

Approved by: bapt (mentor)
Differential Revision: https://reviews.freebsd.org/D16406


# eba4cc15 02-Dec-2016 Bryan Drewery <bdrewery@FreeBSD.org>

DIRDEPS_BUILD: Fix '/' in group names creating a bad cookie.

This is reworking the change in r296585 but to still properly install
the files. This limits the change to only the DIRDEPS_BUILD logic
for what it considers the name of the staging set, which is what the
cookie name is based off of.

Sponsored by: Dell EMC Isilon
MFC after: 1 week


# d7d0effe 02-Dec-2016 Bryan Drewery <bdrewery@FreeBSD.org>

Revert r296585.

This broke installing dtrace test files. It was poorly tested.

Reported by: markj
Pointyhat to: bdrewery
MFC after: 1 week


# 17e75d1c 09-Mar-2016 Bryan Drewery <bdrewery@FreeBSD.org>

These group names may be used as a cookie, so replace any non-fs-safe characters.

One example is in cddl/usr.sbin/dtrace/tests/common/aggs. It could be
fixed but other uses of this would break, especially in the
DIRDEPS_BUILD which uses the group names for stage cookies.

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division


# db74470b 26-Feb-2016 Bryan Drewery <bdrewery@FreeBSD.org>

DIRDEPS_BUILD: Fix some things building in MAKELEVEL0.

For PROGS this was recursing twice since MAKELEVEL0 is for 'dirdeps'
which then really builds in a sub-make.

Sponsored by: EMC / Isilon Storage Division


# 523e46d4 27-Oct-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Use proper CONFDIR after r289148


# 222c7003 26-Oct-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Spell CONFGROUPS properly.


# 99330d7a 26-Oct-2015 Bryan Drewery <bdrewery@FreeBSD.org>

META MODE: Fix after addition of bsd.confs.mk: Stage in "files" set.

The "files" staging name is not the same as "bsd.files.mk" but seems to just be
a group of extra files that are not the essential includes or libraries, which
include .

Sponsored by: EMC / Isilon Storage Division


# 7847b233 26-Oct-2015 Bryan Drewery <bdrewery@FreeBSD.org>

META MODE: bsd.files.mk and bsd.confs.mk don't handle symlinks so there is no
need to set STAGE_SYMLINKS_DIR.${STAGE_SET}.

Sponsored by: EMC / Isilon Storage Division


# de606f83 23-Oct-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Configs should not be under MK_INCLUDES control.

'buildconfig' is connected to 'all', but 'installconfig' is only called
manually. There is not much need to conditionalize this file right
now due to how it is hooked up and its impact on various build phases.

Sponsored by: EMC / Isilon Storage Division


# 61c20fc7 15-Oct-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Make installing to a non-existent directory an error.

Before this, if a file was installed to DESTDIR/some/dir and that directory
was missing due to not having ran 'make distrib-dirs' yet, the file would
be installed as 'some/dir'. For something like bsd.incs.mk with INCLUDEDIR
being a sub-directory of /usr/include, this could result in all of the headers
being installed to a file rather than getting a directory of them.

Now it will error that the file/directory does not exist rather than hide
the issue.

Another option being discussed is to implement GNU's install -D flag which
would auto create any missing directories.

This is a mitigation of the problem. The proper order to the build is to
run 'make distrib-dirs' first, but that can be forgotten if building from
a sub-directory after updating the source code to the latest revision.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division


# b9b3f1e6 14-Oct-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Revert r289282 for now as the interaction with a directory containing
bsd.files.mk and bsd.subdir.mk is recursing too many times.


# 7b877232 13-Oct-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Replace the out-of-place includes/files/config handling in bsd.subdir.mk with
more typical ALL_SUBDIR_TARGETS entries and target hooks in bsd.incs.mk,
bsd.files.mk and bsd.confs.mk.

This allows the targets to be NOPs if unneeded and still work with the
shortcut 'make includes' to build and then install in a parallel-safe manner.

Sort and re-indent the ALL_SUBDIR_TARGETS with the new entries.

Sponsored by: EMC / Isilon Storage Division


# 16927922 13-Oct-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Correct a comment in bsd.incs.mk forgotten in r274662 and copied into bsd.confs.mk.

The bsd.confs.mk may be wrong but for now fix it.

Sponsored by: EMC / Isilon Storage Division


# 2c9976e3 10-Oct-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Install bsd.confs.mk
Rename ETCDIR into CONFIGDIR to avoid conflicts with the ports tree


# c8cbf0d5 09-Oct-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Install configuration files with CONFMODE instead of SHAREMODE


# 9b4f4918 09-Oct-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Add a new bsd.confs.mk similar to bsd.files.mk or bsd.incs.mk

It defines a CONFS variable for all files supposed to be installed as a
configuration file and handle as such