Bug 213375

Summary: [patch] OptionalObsoleteFiles.inc misses NIS /etc/rc.d/yp* files
Product: Base System Reporter: Sergey Akhmatov <sergey>
Component: confAssignee: Baptiste Daroussin <bapt>
Status: Closed FIXED    
Severity: Affects Some People CC: ngie
Priority: --- Keywords: patch
Version: 11.0-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
WITHOUT_NIS rc.d-scripts patch none

Description Sergey Akhmatov 2016-10-11 11:56:41 UTC
Created attachment 175617 [details]
WITHOUT_NIS rc.d-scripts patch

make delete-old doesn't delete NIS-related /etc/rc.d scripts with WITHOUT_NIS option enabled

/etc/rc.d/ypbind
/etc/rc.d/ypldap
/etc/rc.d/yppasswdd
/etc/rc.d/ypserv
/etc/rc.d/ypset
/etc/rc.d/ypupdated
/etc/rc.d/ypxfrd
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-10-22 19:52:18 UTC
A commit references this bug:

Author: bapt
Date: Sat Oct 22 19:51:32 UTC 2016
New revision: 307786
URL: https://svnweb.freebsd.org/changeset/base/307786

Log:
  Do not install NIS program rc script if WITHOUT_NIS is set

  PR:		213375
  Submitted by:	sergey@akhmatov.ru
  MFC after:	3 days

Changes:
  head/etc/rc.d/Makefile
  head/tools/build/mk/OptionalObsoleteFiles.inc
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2016-10-22 19:52:36 UTC
actually the files were anyway installed, which I now fixed along without applying your patch.

Thanks
Comment 3 Enji Cooper freebsd_committer freebsd_triage 2016-10-22 20:20:23 UTC
(In reply to Baptiste Daroussin from comment #2)

I hadn't gotten this far with cleaning this up.

There's a nasty rat's nest when dealing with the NIS stuff. If you uninstall some of the etc/rc.d, you will break boot ordering for those who set WITHOUT_NIS=.

I'll take the bug so I can officially finish it off.
Comment 4 commit-hook freebsd_committer freebsd_triage 2016-10-25 14:57:20 UTC
A commit references this bug:

Author: bapt
Date: Tue Oct 25 14:56:42 UTC 2016
New revision: 307915
URL: https://svnweb.freebsd.org/changeset/base/307915

Log:
  MFC r307786:

  Do not install NIS program rc script if WITHOUT_NIS is set

  PR:		213375
  Submitted by:	sergey@akhmatov.ru

Changes:
_U  stable/11/
  stable/11/etc/rc.d/Makefile
  stable/11/tools/build/mk/OptionalObsoleteFiles.inc
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2017-08-24 14:05:55 UTC
Committed back in 2016.