History log of /freebsd-current/share/mk/meta.autodep.mk
Revision Date Author Comments
# 0135101e 24-Apr-2024 Simon J. Gerraty <sjg@FreeBSD.org>

meta.autodep.mk do not override start_utc

Update meta.autodep.mk
If included at level 0 it is important not to override start_utc


# f974ced3 13-Mar-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Update dirdeps.mk et al

bmake-20240309 includes updates to dirdeps and meta mode makefiles


# 40b9b299 18-Sep-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Update jobs.mk to leverage -jC

With bmake-20230909 we can use -j1.5C to use 1.5*ncpu
bmake will set .MAKE.JOBS.C=yes if this is supported,
and in that case jobs.mk will use JOB_MAX_C as default for JOB_MAX.

Remove logic from local.sys.mk which is now handled by jobs.mk

Also use latest dirdeps-targets.mk and meta.{autodep,subdir}.mk


# bf7aa99a 16-Apr-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Update meta mode makefiles

meta2deps - add checks to detect truncated/corrupted filemon data
(only known to happen on Linux hosts), to ensure we do not auto
update dependencies based on incomplete data.

meta.stage.mk adds STAGE_SHLIB_LINKS_FILTER and STAGE_LINK_AS_*

We also allow for hosts where egrep is deprecated for grep -E

Reviewed by: stevek


# 3b26e5a4 18-Dec-2021 Simon J. Gerraty <sjg@FreeBSD.org>

Update dirdeps.mk et al to 20211212 versions

dirdeps.mk: simplify computation of qualified vs unqualified dirdeps.
Note the importance of avoiding unresolved variables in DIRDEPS
Fix DIRDEP_LOADAVG_REPORT - expr(1) fails if expression evaluates to 0
Trim ${SRCTOP}/ from debug etc messages to make comparison easier.
Include number of DIRDEPS in debug output.
Trim ${SRCTOP}/ when exporting to env while building DIRDEPS_CACHE
to help avoid env exhaustion.
Use DIRDEPS_ALL_MACHINES_FILTER to better handle ALL_MACHINES
in complex build environments.

dirdeps-options.mk: use separate .undef for each variable

dirdeps-targets.mk: allow for '.' in DIRDEPS_TARGETS_DIRS

meta.autodep.mk: leverage ${.SUFFIXES} if we can.

meta.sys.mk: allow use in META_MODE vs DIRDEPS_BUILD

meta2deps.py: compute a list of dirdep extensions that map to current
TARGET_SPEC to avoid confusion.

Reviewed by: stevek


# 960b77be 24-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update dirdeps.mk et al to latest

Move some local tweaks to local.*.mk

Reviewed by: bdrewery
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D27300


# a6589ab7 02-Aug-2018 Simon J. Gerraty <sjg@FreeBSD.org>

Update dirdeps.mk et al to latest

dirdeps.mk and meta.autodep.mk will now look for
Makefile.depend.options
to handle optional dependencies, the work is all done by
dirdeps-options.mk

Also update to latest meta.stage.mk and gendirdeps.mk

Reviewed by: bdrewery
Differential Revision: https://reviews.freebsd.org/D15701


# db08bfce 09-May-2018 Konstantin Belousov <kib@FreeBSD.org>

Created static libc PIC/no-SSP library to be used by rtld.

Rtld is not compatible with SSP, and since we link libc_pic.a to rtld
to have the basic support like memory and string copy functions, we
have to both carefully limit libc use, and to provide the ssp support
shims. This change makes the libc use in rtld more straighforward but
still limited, and allows to remove the shims, to be done in the next
commit.

Submitted by: Luis Pires
Reviewed by: bdrewery, brooks
Differential revision: https://reviews.freebsd.org/D15283


# 2e9742c1 17-Aug-2017 Enji Cooper <ngie@FreeBSD.org>

Handle .ppico suffixed shared object files


# 2b4da8aa 24-Sep-2016 Marcel Moolenaar <marcel@FreeBSD.org>

When MAKEOBJDIRPREFIX points to a case-insensitive file system, the
build can break when different source files create the same target
files (case-insensitivity speaking). This is the case for object
files compiled with -fpic and shared libraries. The former uses
an extension of ".So", and the latter an extension ".so". Rename
shared object files from *.So to *.pico to match what NetBSD does.

See also r305855

MFC after: 1 month
Sponsored by: Bracket Computing
Differential Revision: https://reviews.freebsd.org/D7906


# b3d8f677 26-May-2016 Bryan Drewery <bdrewery@FreeBSD.org>

Don't strip paths away from META_XTRAS.

This would otherwise disallow using meta files from a foreign build that
spread them around in directories outside our own .OBJDIR.

Sponsored by: EMC / Isilon Storage Division


# 51c71d3e 18-Apr-2016 Simon J. Gerraty <sjg@FreeBSD.org>

Update dirdeps.mk et al

dirdeps.mk: move logic to handle -f dirdeps.mk to inside check
for first read of dirdeps.mk

Also fix handling of WITHOUT_DIRDEPS_BELOW

gendirdeps.mk: pass M2D_EXCLUDES to meta2deps

meta.autodep.mk: if we build with nofilemon, leave a cookie to
prevent updating dependencies until cleaned.

Reviewed by: bdrewery


# 08b20c63 25-Nov-2015 Bryan Drewery <bdrewery@FreeBSD.org>

META MODE: Don't add staged DPADDs to DIRDEPS when bootstrapping gendirdeps.

This was finding libraries that were installed into DESTDIR/usr/lib,
where DESTDIR is the stage directory, and then adding in usr/lib to
DIRDEPS. Just exclude the STAGE_ROOT if defined.

Discussed with: sjg
Sponsored by: EMC / Isilon Storage Division


# 5e2f7161 25-Nov-2015 Bryan Drewery <bdrewery@FreeBSD.org>

META MODE: Define variables this file uses that were defined elsewhere.

Discussed with: sjg
Sponsored by: EMC / Isilon Storage Division


# 02d37cd3 25-Nov-2015 Bryan Drewery <bdrewery@FreeBSD.org>

META MODE: Don't truncate DIRDEPS for bootstrapping during gendirdeps.

Reviewed by: sjg
Sponsored by: EMC / Isilon Storage Division


# 43f42ca7 26-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

always filter out dirdeps.cache*meta


# a46ef2fd 09-May-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Handle empty meta list


# f974b33f 07-May-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Update - allow collecting stats when WITH_META_STATS is defined.


# 876336c8 13-Apr-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Sync latest versions


# 7750ad47 22-Aug-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Sync FreeBSD's bmake branch with Juniper's internal bmake branch.

Requested by: Simon Gerraty <sjg@juniper.net>