Bug 253108 - freebsd-update calling non-existing "merge" command
Summary: freebsd-update calling non-existing "merge" command
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-30 22:01 UTC by db_freebsd
Modified: 2022-12-14 17:20 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description db_freebsd 2021-01-30 22:01:00 UTC
In the process to upgrade from 12.1-RELEASE-p13 to 12.2-RELEASE, the freebsd-update command fails during the configuration merge phase. The merged files proposed are all empty.

After looking at the code, it appears that the script calls the "merge" command, which doesn't exist on my system.

I've manually change the script to use diff3, which solved the issue (inspired from the latest version of freebsd-update on github using diff3).

ls on freebsd-update:
-r-xr-xr-x  1 root  wheel  -   90K Oct 12  2019 /usr/sbin/freebsd-update*

file version extracted from first lines:
# $FreeBSD: releng/11.3/usr.sbin/freebsd-update/freebsd-update.sh 345802 2019-04-02 13:58:31Z emaste $
Comment 1 Ed Maste freebsd_committer freebsd_triage 2022-12-14 17:20:56 UTC
merge(1) use in freebsd-update was replaced with diff(3) by:

commit 073dd71287e2a975bad2deecb58733325f80d133
Author: Baptiste Daroussin <bapt@FreeBSD.org>
Date:   Sun Sep 18 14:48:28 2016 +0000

    In preparation for removal of GNU rcs, replace merge(1) usage with direct
    diff3(1) usage

Notes:
    svn path=/head/; revision=305930

This change is in all supported releases, so this issue should not occur again.