[Bug 209718] -DNO_ROOT+WITHOUT_NIS results in an invalid nsswitch.conf
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Apr 2025 13:14:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209718
--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=49bc071f40886af46eb90467dfef6cba5f95beec
commit 49bc071f40886af46eb90467dfef6cba5f95beec
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-04-07 12:42:08 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-04-07 12:42:08 +0000
nsswitch.conf: Avoid modification after installation
To implement WITHOUT_NIS, we have a hack in the build which modifies the
installed nsswitch.conf to remove NIS compat providers and databases.
This hack operates on the installed nsswitch.conf, which means that the
installed file size won't match that listed in the metalog.
One option would be to maintain two copies of nsswitch.conf, one for
each configuration, but that would result in duplication and I don't see
a clear way around that.
Instead, stage a copy of nsswitch.conf in the libc objdir, and modify
that one before installing, so that the version recorded in the metalog
matches what actually gets installed.
PR: 209718
Reviewed by: kevans, emaste
Sponsored by: Klara, Inc.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49300
lib/libc/net/Makefile.inc | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.