svn commit: r365660 - user/cperciva/freebsd-update-build/patches/12.2-BETA1

Colin Percival cperciva at
Sat Sep 12 16:35:08 UTC 2020

On 2020-09-12 08:31, Alan Somers wrote:
> On Sat, Sep 12, 2020 at 9:19 AM Gordon Tetlow <gordon at
> <mailto:gordon at>> wrote:
>     Author: gordon
>     Date: Sat Sep 12 15:18:52 2020
>     New Revision: 365660
>     URL:
>     Log:
>       Add needed patch for 12.2-BETA1 to prevent spurious changes through
>       freebsd-update processing.
>     Added:
>       user/cperciva/freebsd-update-build/patches/12.2-BETA1/
>       user/cperciva/freebsd-update-build/patches/12.2-BETA1/0-newvers
> What kinds of spurious changes do you see without this patch?

There's three issues:

1. The code which selects which file to install as /etc/pkg/FreeBSD.conf
doesn't recognize a fake branch name and installs the "latest" file instead
of the "quarterly" file.

2. The branch name gets into /bin/freebsd-version, which is technically
correct, but confuses freebsd-update's "don't update files if the only
change is the version number" code.

3. The branch name gets into every single .o file in the kernel build, and
at this point all hell breaks loose.

Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | | Online backups for the truly paranoid

More information about the svn-src-user mailing list