Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2019 08:36:08 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, Ed Maste <emaste@freebsd.org>
Subject:   Re: uname -a output without svn revision number
Message-ID:  <20190104073608.GA2604@c720-r342378>
In-Reply-To: <49D022CD-CBC4-47A9-91F7-27C48A707338@FreeBSD.org>
References:  <20190104055218.GA3408@c720-r342378> <49D022CD-CBC4-47A9-91F7-27C48A707338@FreeBSD.org>

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

--UlVJffcvxoiEqYs2
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

El d=C3=ADa viernes, enero 04, 2019 a las 07:52:40a. m. +0100, Dimitry Andr=
ic escribi=C3=B3:

> On 4 Jan 2019, at 06:52, Matthias Apitz <guru@unixarea.de> wrote:
> >=20
> > I've compiled CURRENT from svn and this gave me as 'uname -a' output:
> >=20
> > FreeBSD c720-r342378 13.0-CURRENT FreeBSD 13.0-CURRENT r342378 GENERIC =
 amd64
> >=20
> > 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:
> >=20
> > FreeBSD c720-r342378 13.0-CURRENT FreeBSD 13.0-CURRENT GENERIC  amd64
> >=20
> > Why is this? I've read in UPDATING that:
> >=20
> > ...
> >=20
> > But this does not explain why now the SVN revision number went away.
>=20
> For me, it doesn't go away, but shows an "M" suffix, instead.  In
> /usr/obj/usr/src/sys/GENERIC/vers.c it shows:
>=20
> #define VERSTR "FreeBSD 13.0-CURRENT r342593M \n"
>=20
> 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 "@(#)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] =3D SCCSSTR;
char version[sizeof(VERSTR) > 256 ? sizeof(VERSTR) : 256] =3D VERSTR;
char compiler_version[] =3D "FreeBSD clang version 7.0.1 (tags/RELEASE_701/=
final 349250) (based on LLVM 7.0.1)";
char ostype[] =3D "FreeBSD";
char osrelease[sizeof(RELSTR) > 32 ? sizeof(RELSTR) : 32] =3D RELSTR;
int osreldate =3D 1300005;
char kern_ident[] =3D "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 buildke=
rnel NO_CLEAN=3Dyes'

	matthias
--=20
Matthias Apitz, =E2=9C=89 guru@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.

--UlVJffcvxoiEqYs2
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAlwvDOUACgkQR8z35Hb+
nRGF+Q//aNerpx3/oqgJ3RRRxXYjFTicol+JU9d4TZztPVRwikHbmNUhmCQ/8160
jvKYN06UmlOwwqXYSow3p7bzlJXKvV6aQY+/v0xcV0tCzpXDjFHYk2Lrpb1F2kXQ
N8higD4OtNvPwbdpcV0tZIl6YGJfzKYJM4Jf81GiW7OsHzr5KTkg/DL0+WSlF7MV
kbJyxRBy2qfULS3CR8KAxfWNe+lrJHtEpg6v3KwPxoLN5a4nJHvtJSN1dIo9r3Zg
Ow/RFHgFrqBQI9BiBCljpdi/AQwRtz6KbOZt+KQOAb8QaSqUgI1z8WEincaDlFGn
Ysmt/Q5Zp9spr2FFMF0sWO9uyyxlMLLF7VUqVPKoqDB9CfWZbeZhW0Kf1hnDlaX8
mlGMYukQyyOms6U/ti40EAZGQanheK3xlfgZgLmRC9gZYbOUpT07RYn8JQJcxxRA
I5SpMbS/6KNJypnuhZn7l7CrN4F/BNHyLUZhzYhD5FDV6KfY6AQPkSSYrlZ7mzOe
TZCGRChbumzwi5Qc3nM7Dly0TrHDHfXvYJ1cTI24l+REH947kmZzlEixBwwA6SDE
YuQ5NWPSqLMP+97f0kSapYwDu8cZGDCME1qAvvkBdsR4V7cQzVKnsnohouYPax6r
VleTqsjZO4u0k9miaa8GU3QWJyEYTN4zhbLinYzhcEQu4z6Lfso=
=kyTE
-----END PGP SIGNATURE-----

--UlVJffcvxoiEqYs2--



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