Bug 144442 - [build] [patch] remove unnecessary group and passwd entries for new DESTDIRS // mergemaster
Summary: [build] [patch] remove unnecessary group and passwd entries for new DESTDIRS ...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-03 08:00 UTC by Enji Cooper
Modified: 2018-05-21 00:02 UTC (History)
0 users

See Also:


Attachments
yank-group+passwd-entries.diff.txt (1.84 KB, patch)
2010-03-03 08:53 UTC, Enji Cooper
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper freebsd_committer 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 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"