Page MenuHomeFreeBSD

Use diff3 instead of merge for etcupdate
ClosedPublic

Authored by bapt on Aug 2 2016, 10:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 31, 9:09 AM
Unknown Object (File)
Fri, Jan 24, 8:28 PM
Unknown Object (File)
Dec 4 2024, 12:54 PM
Unknown Object (File)
Dec 4 2024, 12:54 PM
Unknown Object (File)
Dec 4 2024, 12:54 PM
Unknown Object (File)
Dec 4 2024, 12:54 PM
Unknown Object (File)
Dec 4 2024, 12:36 PM
Unknown Object (File)
Oct 4 2024, 12:21 AM
Subscribers

Details

Summary

merge(1) being part of GNU rcs which we plan to remove using diff3 allows to
remove GNU rcs from base

Test Plan

Passes the regression test

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bapt retitled this revision from to Use diff3 instead of merge for etcupdate.
bapt updated this object.
bapt edited the test plan for this revision. (Show Details)
bapt added a reviewer: jhb.
usr.sbin/etcupdate/etcupdate.sh
823 ↗(On Diff #18979)

We should update the log message.

840 ↗(On Diff #18979)

I think you can avoid mktemp in this case. Instead, remove the 'cp' above this (and log of 'cp') and do:

diff3 -m -A ... \
   ${DESTDIR}$1 ${OLDTREE}$1 ${NEWTREE}$1 > \
   ${CONFLICTS}$1
jhb edited edge metadata.

Have you run the etcupdate tests? If those pass (it tests conflict generation, etc.) then this looks good to me. Thanks!

After this I think you can also update the usr.bin/Makefile to not exclude etcupdate due to WITHOUT_RCS

This revision is now accepted and ready to land.Aug 3 2016, 3:32 PM
This revision was automatically updated to reflect the committed changes.