Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Aug 2015 18:25:00 +0300
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        Julian Elischer <julian@freebsd.org>
Cc:        John Baldwin <jhb@freebsd.org>, freebsd-current@freebsd.org, Baptiste Daroussin <bapt@freebsd.org>
Subject:   Re: [CFT] rewrite of the merge(1) utility
Message-ID:  <20150814152500.GH1872@zxy.spb.ru>
In-Reply-To: <55CE06F3.9030809@freebsd.org>
References:  <20150726012619.GP21594@ivaldir.etoilebsd.net> <1687842.Wj34XYKLi4@ralph.baldwin.cx> <20150813131343.GA43013@zxy.spb.ru> <7204455.dGN1cQ55dZ@ralph.baldwin.cx> <55CE06F3.9030809@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 14, 2015 at 11:19:15PM +0800, Julian Elischer wrote:

> On 8/13/15 11:23 PM, John Baldwin wrote:
> > On Thursday, August 13, 2015 04:13:43 PM Slawa Olhovchenkov wrote:
> >> On Tue, Aug 04, 2015 at 10:00:06PM -0700, John Baldwin wrote:
> >>
> >>> On Sunday, July 26, 2015 03:26:22 AM Baptiste Daroussin wrote:
> >>>> Hi all,
> >>>>
> >>>> I was botherd to not have the merge(1) utility available in base (for etcupdate)
> >>>> when building base WITHOUT_RCS.
> >>>>
> >>>> So I have rewritten a merge(1) utility which should be compatible.
> >>>>
> >>>> I used the 3-way merge code from the fossil VCS instead of making it call diff3.
> >>>> All I have done from the fossil code is adapting it to use sbuf(9).
> >>>>
> >>>> The bonus for end users is the merge from fossil can resolve situation where the
> >>>> diff3 in base cannot. (which explains a "failure" with the GNU RCS test suite)
> >>>>
> >>>> meaning etcupdate will be more happy merge configuration files.
> >>> Thanks!  This will save me from having to hack etcupdate to use diff3 instead
> >>> of merge.
> >> Hi, can I use etcupdate to update /etc w/o source tree?
> >> I.e. I take from new distro /var/db/etcupdate and try to update /etc?
> > etcupdate does a 3-way merge of an "old" stock /etc and a "new" stock /etc
> > into /etc.  The "old" stock /etc is always stored in /var/db/etcupdate.
> > The "new" stock /etc has to come from somewhere.  One option is to generate
> > it from /usr/src (e.g. after a buildworld).  However, you can also pregenerate
> > tarballs from a /usr/src tree on one machine and then use those tarballs
> > instead of generating an /etc tree from /usr/src on another machine.  I've
> > used this for upgrades of a cluster of machines where a single machine would
> > build release "images" that were basically a buildworld + an 'etcupdate build'
> > from the corresponding src tree.  I then used 'etcupdate -t /path/to/tarball'
> > to update /etc after installing the new world.
> >
> > The idea is that for something like freebsd-update one could ship the latest
> > etcupdate build tarball on each update to do a full 3-way merge of /etc.
> >
> what is the rational for using etcupdate instead of mergemaster when 
> upgrading?

I am try to eliminate using source in upgrading path.
(On build host run release.sh for some revision and using
base.txz/kernel.XYZ.txz for upgrade together with beadm)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150814152500.GH1872>