Re: uname -a output without svn revision number

From: Matthias Apitz <guru_at_unixarea.de>
Date: Fri, 4 Jan 2019 08:36:08 +0100
El día viernes, enero 04, 2019 a las 07:52:40a. m. +0100, Dimitry Andric escribió:

> 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:
> > 
> > ...
> > 
> > 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?

$ ls -l /usr/obj/usr/src/amd64.amd64/sys/GENERIC/vers.c
-rw-r--r--  1 root  wheel  1919  3 ene.  11:59 /usr/obj/usr/src/amd64.amd64/sys/GENERIC/vers.c
$ tail -12 /usr/obj/usr/src/amd64.amd64/sys/GENERIC/vers.c

#define SCCSSTR "_at_(#)FreeBSD 13.0-CURRENT GENERIC"
#define VERSTR "FreeBSD 13.0-CURRENT GENERIC\n"
#define RELSTR "13.0-CURRENT"

char sccs[sizeof(SCCSSTR) > 128 ? sizeof(SCCSSTR) : 128] = SCCSSTR;
char version[sizeof(VERSTR) > 256 ? sizeof(VERSTR) : 256] = VERSTR;
char compiler_version[] = "FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1)";
char ostype[] = "FreeBSD";
char osrelease[sizeof(RELSTR) > 32 ? sizeof(RELSTR) : 32] = RELSTR;
int osreldate = 1300005;
char kern_ident[] = "GENERIC";
$ sh /usr/src/sys/conf/newvers.sh

I did around 11:50 am (i.e. the mod time of vers.c matches) a 'make buildkernel NO_CLEAN=yes'

	matthias
-- 
Matthias Apitz, ✉ guru_at_unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
October, 7 -- The GDR was different: Peace instead of Bundeswehr and wars, Druschba
instead of Nazis, to live instead of to survive.

Received on Fri Jan 04 2019 - 06:36:14 UTC

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