Bug 144442

Summary: [build] [patch] remove unnecessary group and passwd entries for new DESTDIRS // mergemaster
Product: Base System Reporter: Enji Cooper <ngie>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: emaste
Priority: Normal Keywords: patch
Version: Unspecified   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252417
Attachments:
Description Flags
yank-group+passwd-entries.diff.txt none

Description Enji Cooper freebsd_committer freebsd_triage 2010-03-03 08:00:12 UTC
The following patch removes all /etc/group and /etc/master.passwd entries based on MK_* variables defined when running make distribution on etc.

This patch uses goals for group and master.passwd in order to not whack existing files that may have been setup after ports were installed, and thus potentially break already installed packages.

mergemaster(1) is exempt from this because DESTDIR is set to somewhere off in /var/tmp/[...] and a diff is run against the running system <-> sysroot's files before it's installed in the sysroot, IFF the individual deletes the temproot between each run (or whatever the term was that mergemaster(1) uses...).

Fix: 

See proposed enhancement patch.
How-To-Repeat: n/a
Comment 1 Enji Cooper freebsd_committer freebsd_triage 2010-03-03 08:53:37 UTC
    Might help if I actually provided the patch. Heh.
Cheers,
-Garrett
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-05-21 00:00:10 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:38:33 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>