Re: uname -a output without svn revision number

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 4 Jan 2019 07:52:40 +0100
On 4 Jan 2019, at 06:52, Matthias Apitz <guru_at_unixarea.de> wrote:
> 
> I've compiled CURRENT from svn and this gave me as 'uname -a' output:
> 
> FreeBSD c720-r342378 13.0-CURRENT FreeBSD 13.0-CURRENT r342378 GENERIC  amd64
> 
> Now I've had do modify a source file (to nail down some problem) and the
> revision number went away from the output; it now says:
> 
> FreeBSD c720-r342378 13.0-CURRENT FreeBSD 13.0-CURRENT GENERIC  amd64
> 
> Why is this? I've read in UPDATING that:
> 
> ...
> 20180913:
>        Reproducible build mode is now on by default, in preparation for
>        FreeBSD 12.0.  This eliminates build metadata such as the user,
>        host, and time from the kernel (and uname), unless the working tree
>        corresponds to a modified checkout from a version control system.
>        The previous behavior can be obtained by setting the /etc/src.conf
>        knob WITHOUT_REPRODUCIBLE_BUILD.
> ...
> 
> But this does not explain why now the SVN revision number went away.

For me, it doesn't go away, but shows an "M" suffix, instead.  In
/usr/obj/usr/src/sys/GENERIC/vers.c it shows:

#define VERSTR "FreeBSD 13.0-CURRENT r342593M \n"

What is the output of sh /usr/src/sys/conf/newvers.sh for you?

-Dimitry


Received on Fri Jan 04 2019 - 05:52:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:19 UTC