Bug 208434

Summary: emulators/linux_base-c6 compat.linux.osrelease info out of date for FreeBSD 10.3 RC3?
Product: Documentation Reporter: papowell
Component: Books & ArticlesAssignee: Remko Lodder <remko>
Status: Closed FIXED    
Severity: Affects Some People CC: emulation, xmj
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description papowell 2016-03-31 16:26:32 UTC
In the FreeBSD Handbook linuxemu-lbc-install.html 10.2. Configuring Linux® Binary Compatibility (as of 31 Mar 2016):

The emulators/linux_base-c6 package or port is the easiest way to install a base set of Linux® libraries and binaries on a FreeBSD system. To install the port:

# printf "compat.linux.osrelease=2.6.18\n" >> /etc/sysctl.conf
# sysctl compat.linux.osrelease=2.6.18
# pkg install emulators/linux_base-c6

On FreeBSD 10.3 RC3 the default osrelease value is 2.6.32.

Perhaps these instructions should be modified to reflect the version
of linux base?

i.e.

Use sysctl compat.linux.osrelease to check the version ...

Perhaps during installation the linux_base install would check to see if
the version is set to the correct level and if not then terminate the install
with instructions to set the base level.

On the other hand, if this only effects FreeBSD 9.3 and earlier,  then
indicate that the osrelease needs only to be set on FreeBSD 9.3 and earlier.
Comment 1 Tijl Coosemans freebsd_committer freebsd_triage 2016-03-31 16:56:35 UTC
The message printed by the package is fine I think.  Assign to doc team to adjust the handbook.
Comment 2 Johannes Jost Meixner freebsd_committer freebsd_triage 2017-06-02 11:33:21 UTC
compat.linux.osrelease is 2.6.32 on 10.3-RELEASE or later, which is, on all currently supported versions. 

The part about setting

# printf "compat.linux.osrelease=2.6.18\n" >> /etc/sysctl.conf
# sysctl compat.linux.osrelease=2.6.18

can be deleted.
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-06-15 09:09:34 UTC
A commit references this bug:

Author: remko
Date: Thu Jun 15 09:08:36 UTC 2017
New revision: 50370
URL: https://svnweb.freebsd.org/changeset/doc/50370

Log:
  Remove two lines that are no longer needed.

  PR:		208434
  Submitted by:	papowell@astart.com, xmj

Changes:
  head/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml
Comment 4 Remko Lodder freebsd_committer freebsd_triage 2017-06-15 09:39:30 UTC
I have fixed this in r50370.

Thanks for the submission and your time to help us improve the documentation. It is greatly appreciated!

Remko