Re: finding kernel 'r' number

2011-06-16 Thread Bruce Cran
On Thu, 16 Jun 2011 08:16:45 -0400
Robert Huff roberth...@rcn.com wrote:

   For some time now, people have been referring to what build
 they're using by the 'r' number, which I believe to be part of svn.
   How would one go about determining this value for the
 installed kernel?

I'm not sure you can: the revision only shows up if you have svn
installed (devel/subversion-freebsd) and have built the kernel from code
checked out from the svn server.

-- 
Bruce Cran
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: finding kernel 'r' number

2011-06-16 Thread Bas Smeelen
On 06/16/2011 02:28 PM, Bruce Cran wrote:
 On Thu, 16 Jun 2011 08:16:45 -0400
 Robert Huff roberth...@rcn.com wrote:

  For some time now, people have been referring to what build
 they're using by the 'r' number, which I believe to be part of svn.
  How would one go about determining this value for the
 installed kernel?
 I'm not sure you can: the revision only shows up if you have svn
 installed (devel/subversion-freebsd) and have built the kernel from code
 checked out from the svn server.

You might want to read:
http://wiki.freebsd.org/SubversionPrimer





DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, 
disclosure, copying,
distribution or reliance on any of it by anyone else is prohibited. If you have 
received it
by mistake please let us know by reply and then delete it from your system.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: finding kernel 'r' number

2011-06-16 Thread Brandon Gooch
On Thu, Jun 16, 2011 at 7:16 AM, Robert Huff roberth...@rcn.com wrote:

        For some time now, people have been referring to what build
 they're using by the 'r' number, which I believe to be part of svn.
        How would one go about determining this value for the installed
 kernel?


                                        Robert Huff

That would be uname(1):

$ uname -v
FreeBSD 9.0-CURRENT #0 r223017: Sun Jun 12 13:55:34 CDT 2011
root@m6500.local:/usr/obj/usr/src/sys/GENERIC

where r223017 is the current svn revision number from which my
system is compiled (kernel and userland).

For more options, see `man uname`.

-Brandon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: finding kernel 'r' number

2011-06-16 Thread Bas Smeelen
On 06/16/2011 02:32 PM, Brandon Gooch wrote:
 That would be uname(1):

 $ uname -v
 FreeBSD 9.0-CURRENT #0 r223017: Sun Jun 12 13:55:34 CDT 2011
 root@m6500.local:/usr/obj/usr/src/sys/GENERIC

 where r223017 is the current svn revision number from which my
 system is compiled (kernel and userland).
Does this only apply if you checkout with svn ?
I run current on a machine, update with csup and have get r number with uname


DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, 
disclosure, copying,
distribution or reliance on any of it by anyone else is prohibited. If you have 
received it
by mistake please let us know by reply and then delete it from your system.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: finding kernel 'r' number

2011-06-16 Thread Damien Fleuriot
On 6/16/11 3:17 PM, Bas Smeelen wrote:
 On 06/16/2011 02:32 PM, Brandon Gooch wrote:
 That would be uname(1):

 $ uname -v
 FreeBSD 9.0-CURRENT #0 r223017: Sun Jun 12 13:55:34 CDT 2011
 root@m6500.local:/usr/obj/usr/src/sys/GENERIC

 where r223017 is the current svn revision number from which my
 system is compiled (kernel and userland).
 Does this only apply if you checkout with svn ?
 I run current on a machine, update with csup and have get r number with uname
 
 

Obviously only works if you checked out with SVN:
# uname -a
FreeBSD mybsd 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #2: Mon Feb 21
12:08:09 CET 2011 root@mybsd:/usr/obj/usr/src/sys/DAM  amd64
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org