Bug 163877

Summary: apm(4) is not installed
Product: Documentation Reporter: Schaich Alonso <alonsoschaich>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Schaich Alonso 2012-01-06 21:30:13 UTC
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.

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:
How-To-Repeat: man apm (on amd64)
Comment 1 Glen Barber freebsd_committer freebsd_triage 2012-01-06 21:41:41 UTC
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
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2012-02-23 02:50:26 UTC
State Changed
From-To: open->closed

not a bug