this prevents the file being overwritten every time FreeBSD-runtime is
upgraded.
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
I went looking for other examples of the config tag and saw that none of /root/.shrc, /root/.profile, /root/.cshrc, /root/.login have it. We should probably fix that. I believe adding ROOTTAGS=config to bin/sh/Makefile and bin/csh/Makefile will do the trick.
but, they do end up with the config tag in the built system (worldstage/runtime.plist):
@config(root,wheel,0644,) /root/.profile @config(root,wheel,0644,) /root/.shrc
/root/.k5login seems to be the only one missing. my recollection (when i originally fixed this a couple months back) is that the other files are part of things that already have the correct Makefile logic for this (like sh, csh) while k5login was missed because it's installed specially.
We should probably fix that. I believe adding ROOTTAGS=config to bin/sh/Makefile and bin/csh/Makefile will do the trick.
i am not opposed to this but, given these files already install with the correct tags, is it necessary?
No, it's clearly already taken care of by some magic elsewhere that I'm not aware of.