From nobody@FreeBSD.org  Fri Jan  6 21:28:06 2012
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 D17A41065670
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  6 Jan 2012 21:28:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id C0EC48FC1C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  6 Jan 2012 21:28:06 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q06LS6Pn002142
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 6 Jan 2012 21:28:06 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q06LS6dK002139;
	Fri, 6 Jan 2012 21:28:06 GMT
	(envelope-from nobody)
Message-Id: <201201062128.q06LS6dK002139@red.freebsd.org>
Date: Fri, 6 Jan 2012 21:28:06 GMT
From: "Schaich, Alonso" <alonsoschaich@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: apm(4) is not installed
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         163877
>Category:       docs
>Synopsis:       apm(4) is not installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 06 21:30:13 UTC 2012
>Closed-Date:    Thu Feb 23 02:50:28 UTC 2012
>Last-Modified:  Thu Feb 23 02:50:28 UTC 2012
>Originator:     Schaich, Alonso
>Release:        9-STABLE
>Organization:
>Environment:
FreeBSD harmony.localnet.edu 9.0-STABLE FreeBSD 9.0-STABLE #2 r229560: Thu Jan  5 08:29:51 CET 2012     alonso@harmony.localnet.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
APM(8) refers to APM(4) in it's SEE ALSO section. However APM(4) was not installed here.
I assume that this is due to APM(4) being in
share/man/man4/man4.i386/apm.4
i.e. it probably only gets installed on i386.
>How-To-Repeat:
man apm (on amd64)
>Fix:
easiest solution probably is to sed- or patch-away the references to APM(4) in usr.sbin/apm/apm.8 out during installation on non-i386.

patch is attached. usr.sbin/apm/Makefile needs still to be modified, as I don't know how to do arch checks

Patch attached with submission follows:

diff --recursive a/usr.sbin/apm/apm.8 b/usr.sbin/apm/apm.8
78,80d77
< See
< .Xr apm 4
< for details.
133d129
< .Xr apm 4 ,


>Release-Note:
>Audit-Trail:

From: Glen Barber <gjb@FreeBSD.org>
To: alonsoschaich@gmx.de
Cc: bug-followup@FreeBSD.org, freebsd-doc@FreeBSD.org
Subject: Re: docs/163877: apm(4) is not installed
Date: Fri, 6 Jan 2012 16:41:41 -0500

 On Fri, Jan 06, 2012 at 09:28:06PM +0000, Schaich@FreeBSD.org wrote:
 > >Environment:
 > FreeBSD harmony.localnet.edu 9.0-STABLE FreeBSD 9.0-STABLE #2 r229560: Thu Jan  5 08:29:51 CET 2012     alonso@harmony.localnet.edu:/usr/obj/usr/src/sys/GENERIC  amd64
 > >Description:
 > APM(8) refers to APM(4) in it's SEE ALSO section. However APM(4) was not installed here.
 > I assume that this is due to APM(4) being in
 > share/man/man4/man4.i386/apm.4
 > i.e. it probably only gets installed on i386.
 
 I believe apm(4) is an i386-specific device.  At least, since very old
 r6411:
 
 ------------------------------------------------------------------------
 r6411 | wollman | 1995-02-14 20:20:03 -0500 (Tue, 14 Feb 1995) | 2 lines
 
 Move apm(4) to i386 section, since it is i386-specific.
 
 ------------------------------------------------------------------------
 
 Glen
 
State-Changed-From-To: open->closed 
State-Changed-By: eadler 
State-Changed-When: Thu Feb 23 02:50:26 UTC 2012 
State-Changed-Why:  
not a bug 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163877 
>Unformatted:
