Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Oct 2025 22:19:02 +0900
From:      Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Questions about pkgbase
Message-ID:  <20251002221902.822ef8e9224b759611cfc14a@dec.sakura.ne.jp>
In-Reply-To: <36501ae5-5d7f-4e4c-8c96-0f1908ce1059@FreeBSD.org>
References:  <20251002.180121.980053125503545103.yasu@FreeBSD.org> <aN5DKrWeSlT978zr@amaryllis.le-fay.org> <CALH631=ioRih8n-DhD0D1CWjp3kbqemeJUzq2kBgg8GORjAN3g@mail.gmail.com> <aN5HTt0kWCbD_lNf@amaryllis.le-fay.org> <36501ae5-5d7f-4e4c-8c96-0f1908ce1059@FreeBSD.org>

index | next in thread | previous in thread | raw e-mail

On Thu, 2 Oct 2025 12:54:55 +0300
Andriy Gapon <avg@FreeBSD.org> wrote:

> On 02/10/2025 12:35, Lexi Winter wrote:
> > yes, the merge functionality is the same (more or less), but the result
> > for the user is worse: etcupdate makes it clear which files failed to
> > merge and offers a manual resolution of the merge with conflict markers,
> > while pkg just prints a message, which is usually lost in the hundreds
> > of other messages printed during an upgrade, and requires the user to
> > manually locate the unmerged files via find / -name '*.pkgnew', then
> > you only get the old and new files with no way to easily see what has
> > changed in the new version of the file.  (basically, this is a manual
> > two-way merge.)
> > 
> > if there's a better way to do this with pkg, i'd definitely like to know
> > about it.
> 
> It would be good if pkg installed base configuration files into etcupdate's tree 
> and then a user needed to explicitly run etcupdate to apply configuration updates.
> 
> But I imagine that this may not be very easy to do and it would create a 
> relatively fragile dependency between pkg and etcupdate.
> 
> -- 
> Andriy Gapon

Isn't it better to keep freebsd-update (with modifications) and
wrap pkgbase upgrades around?

Doing so would allow splitting etcupdate process out from base pkg
upgrades, isn't it?


-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>


home | help

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