From nobody@FreeBSD.org  Sun Aug  1 18:35:45 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 28B82106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Aug 2010 18:35:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 177C08FC20
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Aug 2010 18:35:45 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o71IZiYX092330
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 1 Aug 2010 18:35:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o71IZitI092329;
	Sun, 1 Aug 2010 18:35:44 GMT
	(envelope-from nobody)
Message-Id: <201008011835.o71IZitI092329@www.freebsd.org>
Date: Sun, 1 Aug 2010 18:35:44 GMT
From: Fernando <fernando.apesteguia@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Small error in linux(4) man page.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         149182
>Category:       docs
>Synopsis:       [patch] Small error in linux(4) man page.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bschmidt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 01 18:40:03 UTC 2010
>Closed-Date:    Wed Aug 11 07:03:10 UTC 2010
>Last-Modified:  Wed Aug 11 07:10:04 UTC 2010
>Originator:     Fernando
>Release:        8.1-RELEASE
>Organization:
Open Sistemas
>Environment:
FreeBSD beastie 8.1-RELEASE FreeBSD 8.1-RELEASE #8: Tue Jul 27 18:32:02 CEST 2010     root@beastie:/usr/obj/usr/src/sys/APEKERNEL  amd64

>Description:
In the linux(4) man page is stated that in order to have linux ABI emulation, the following line must be included in the kernel configuration file:

options COMPAT_LINUX

The one above should be:

options COMPAT_LINUX32

since 8.1-RELEASE
>How-To-Repeat:
man linux
>Fix:
A very simple patch is attached

Patch attached with submission follows:

--- /usr/src/share/man/man4/linux.4	2010-07-25 13:40:15.000000000 +0200
+++ linux.4	2010-08-01 20:23:46.000000000 +0200
@@ -35,7 +35,7 @@
 place the following line in your
 kernel configuration file:
 .Bd -ragged -offset indent
-.Cd "options COMPAT_LINUX"
+.Cd "options COMPAT_LINUX32"
 .Ed
 .Pp
 Alternatively, to load the ABI as a


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->bschmidt 
Responsible-Changed-By: bschmidt 
Responsible-Changed-When: Fri Aug 6 20:18:26 UTC 2010 
Responsible-Changed-Why:  
Over to me. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149182 
State-Changed-From-To: open->patched 
State-Changed-By: bschmidt 
State-Changed-When: Fri Aug 6 20:19:23 UTC 2010 
State-Changed-Why:  
You are right about that COMPAT_LINUX is not available on amd64. It 
is known as COMPAT_LINUX32 there. But it is still known as 
COMPAT_LINUX on i386, so I've committed a modified version 
of your patch which should make that clear. 

Thanks for pointing this out! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149182 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/149182: commit references a PR
Date: Fri,  6 Aug 2010 20:18:29 +0000 (UTC)

 Author: bschmidt
 Date: Fri Aug  6 20:18:16 2010
 New Revision: 210959
 URL: http://svn.freebsd.org/changeset/base/210959
 
 Log:
   Obviously the option is known as COMPAT_LINUX32 on amd64.
   
   PR:		docs/149182
   Pointed out by:	Fernando <fernando.apesteguia at gmail.com>
   MFC after:	3 days
 
 Modified:
   head/share/man/man4/linux.4
 
 Modified: head/share/man/man4/linux.4
 ==============================================================================
 --- head/share/man/man4/linux.4	Fri Aug  6 20:13:36 2010	(r210958)
 +++ head/share/man/man4/linux.4	Fri Aug  6 20:18:16 2010	(r210959)
 @@ -31,13 +31,18 @@
  .Nm linux
  .Nd Linux ABI support
  .Sh SYNOPSIS
 -To compile support for this ABI into the kernel,
 +To compile support for this ABI into an i386 kernel
  place the following line in your
  kernel configuration file:
  .Bd -ragged -offset indent
  .Cd "options COMPAT_LINUX"
  .Ed
  .Pp
 +for an amd64 kernel use:
 +.Bd -ragged -offset indent
 +.Cd "options COMPAT_LINUX32"
 +.Ed
 +.Pp
  Alternatively, to load the ABI as a
  module at boot time, place the following line in
  .Xr loader.conf 5 :
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= <fernando.apesteguia@gmail.com>
To: bug-followup@FreeBSD.org, fernando.apesteguia@gmail.com
Cc:  
Subject: Re: docs/149182: [patch] Small error in linux(4) man page.
Date: Sat, 7 Aug 2010 18:43:46 +0200

 Yes, that's right. I don't have any i386 systems so I just noticed it
 changed for amd64.
 
 Thanks!
State-Changed-From-To: patched->closed 
State-Changed-By: bschmidt 
State-Changed-When: Wed Aug 11 07:02:35 UTC 2010 
State-Changed-Why:  
MFC done. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149182 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/149182: commit references a PR
Date: Wed, 11 Aug 2010 07:02:24 +0000 (UTC)

 Author: bschmidt
 Date: Wed Aug 11 07:02:08 2010
 New Revision: 211169
 URL: http://svn.freebsd.org/changeset/base/211169
 
 Log:
   MFC r210959:
   Obviously the option is known as COMPAT_LINUX32 on amd64.
   
   PR:		docs/149182
   Pointed out by:	Fernando <fernando.apesteguia at gmail.com>
 
 Modified:
   stable/8/share/man/man4/linux.4
 Directory Properties:
   stable/8/share/man/man4/   (props changed)
 
 Modified: stable/8/share/man/man4/linux.4
 ==============================================================================
 --- stable/8/share/man/man4/linux.4	Wed Aug 11 06:49:29 2010	(r211168)
 +++ stable/8/share/man/man4/linux.4	Wed Aug 11 07:02:08 2010	(r211169)
 @@ -31,13 +31,18 @@
  .Nm linux
  .Nd Linux ABI support
  .Sh SYNOPSIS
 -To compile support for this ABI into the kernel,
 +To compile support for this ABI into an i386 kernel
  place the following line in your
  kernel configuration file:
  .Bd -ragged -offset indent
  .Cd "options COMPAT_LINUX"
  .Ed
  .Pp
 +for an amd64 kernel use:
 +.Bd -ragged -offset indent
 +.Cd "options COMPAT_LINUX32"
 +.Ed
 +.Pp
  Alternatively, to load the ABI as a
  module at boot time, place the following line in
  .Xr loader.conf 5 :
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
