Page MenuHomeFreeBSD

Switch opt-out STRIP_FBSDID to opt-in EMBED_FBSDID
AcceptedPublic

Authored by emaste on Dec 21 2021, 6:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 12:17 PM
Unknown Object (File)
Sun, Oct 27, 2:16 AM
Unknown Object (File)
Oct 11 2024, 7:37 AM
Unknown Object (File)
Oct 2 2024, 4:24 AM
Unknown Object (File)
Sep 24 2024, 9:59 AM
Unknown Object (File)
Sep 23 2024, 5:52 PM
Unknown Object (File)
Sep 23 2024, 5:52 PM
Unknown Object (File)
Sep 17 2024, 2:54 AM

Details

Reviewers
kib
imp
manu
Summary

With the transition to Git $FreeBSD$ serves no purpose. Stop embedding __FBSDID() by default. Switch to opt-in, in case any downstream consumers have external tooling to populate it.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

lib/csu/Makefile.inc
22

This was added in D33594.

lib/libc/Makefile
24–25

These comments will need to be rewritten but I wanted to see about the approach first.

Correct sense in some comments

I do not see anything wrong with this.

sys/arm64/include/asm.h
33

lint can be dropped as well

sys/sys/cdefs.h
583

BTW, EMBED_FBSDID is in user namespace, perhaps __EMBED_FBSDID is better/must be used.

usr.sbin/lpr/common_source/lp.cdefs.h
89

Remove this at all?

Update comment, move out of user namespace

sys/arm64/include/asm.h
33

Should we drop lint across the tree?

usr.sbin/lpr/common_source/lp.cdefs.h
89

This was introduced in R10:b9ec9b4d77c32527f6c7bb3e10a832edf14835c5 in an attempt to make lpr more portable. I'm not sure how valuable that is, but would rather address it (and lint) separately.

This revision is now accepted and ready to land.Dec 22 2021, 5:01 PM