[talk] FreeBSD question: uname info versus svn commit versus __FreeBSD_version define

Steven Kreuzer skreuzer at exit2shell.com
Thu Sep 8 15:09:15 EDT 2016


Hi James-

> On Sep 8, 2016, at 2:56 PM, James E Keenan <jkeen at verizon.net> wrote:
> 
> I am trying to determine whether a particular snapshot of FreeBSD contains code which was committed for the purpose of fixing a bug which I helped to report.
> 
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211743#c10 states:
> 
> #####
> Based on __FreeBSD_version define the fix is in:
> 1200004 and up
> 1100502 >= version < 1200000
> 1003507 >= version < 1100000
> #####
> 
> I have installed a Virtual Box holding a FreeBSD whose 'uname -a' information is as follows:
> 
> #####
> FreeBSD  12.0-CURRENT FreeBSD 12.0-CURRENT #0 r305028: Mon Aug 29 22:45:29 UTC 2016 root at releng3.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
> #####
> 
> How can I determine whether that version of FreeBSD is recent enough to have included the code correction?

This info is exposed via sysctl

$ sysctl -n kern.osreldate
1200005

Also, you can look at Chapter 16 in the porter's handbook that documents each value of __FreeBSD_versions going back to 2.0-RELEASE

https://www.freebsd.org/doc/en/books/porters-handbook/versions.html <https://www.freebsd.org/doc/en/books/porters-handbook/versions.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.nycbug.org:8443/pipermail/talk/attachments/20160908/c09249d6/attachment.htm>


More information about the talk mailing list