Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2025 10:33:22 +0000
From:      Lexi Winter <ivy@freebsd.org>
To:        questions@freebsd.org
Subject:   Re: Trying to understand base system packages
Message-ID:  <aTlMclUBMNapVOYj@amaryllis.le-fay.org>
In-Reply-To: <642e4308-3167-45b6-8f7c-578eb377edbd@Julf.com>
References:  <20251205122830.cb88058f193987b47a95a77c@gmail.com> <aTkwuRmEMIpc7UF1@amaryllis.le-fay.org> <642e4308-3167-45b6-8f7c-578eb377edbd@Julf.com>

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

[-- Attachment #1 --]
Johan Helsingius wrote in <642e4308-3167-45b6-8f7c-578eb377edbd@Julf.com>:
> On 10/12/2025 9:35 am, Lexi Winter wrote:
> 
> > yes, it will attempt a three-way merge.  if this fails, it will print
> > "pkg: Impossible to merge /etc/somefile" during the upgrade, and you
> > need to merge the file manually.  this message is very easy to miss, so
> > i suggest that after every upgrade, you search the entire filesystem for
> > files named '*.pkgsave' or '*.pkgnew'.
> 
> Seeing this, I thought "oh well, might as well check on my system", and
> found a bunch of *.pkgsave files, mostly in /usr/local/bin/, but also
> some in /usr/local/share/licenses/. They are all from 2021, so I
> probably don't need to worry?

if these are in /usr/local they are not related to pkgbase.

the pkg three-way merge is never performed for ports packages, because
ports are not allowed to install configuration files.  (instead, they
install @sample files which are only copied to the real location if they
don't already exist.)

they are also not related to normal ports upgrades, since ports upgrades
can never generate these files.

i'm not sure how you ended up with these files, but some possibilities:

- you manually installed some software that you also installed from
  ports, and they installed files in the same place.

- some sort of pkg or ports bug that caused files to be installed
  without being registered in pkg.  this should be impossible if you
  build ports with poudriere, but it's at least plausible that some
  sort of bug like this could exist in non-jailed builds.

if they have not been modified for four years, you are probably safe to
delete them.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQSyjTg96lp3RifySyn1nT63mIK/YAUCaTlMbwAKCRD1nT63mIK/
YHxsAQCAzNZF40sHJsEIVJWAqVruAnH3o0uJCPXtjU43tArsTwEA1z2WxlEna5qh
Jft7lqRPA4BWMfPaPtPBmvTCbkio9A8=
=i6gU
-----END PGP SIGNATURE-----

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