Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27685 - WMACPI does not work unless APM is compiled into kernel
Summary: WMACPI does not work unless APM is compiled into kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-01 00:29 UTC by Phil Blacker
Modified: 2003-09-04 10:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Blacker 2003-09-01 00:29:37 UTC
WMACPI reqires that /proc/apm exists, it exits with an error if it doesn't.  As 
I only need ACPI, as my system dows not support APM, I have not got apm enabled 
in the kernel and hence /proc/apm does not exist.

WMACPI is based on WMAPM so has the capability to use both APM and ACPI 
depending on the compile times options, the ebuild options are for ACPI.

This problem can be easily be solved.  Below is the change to the Makefile this 
removes the APM component, which is compiled and linked even if ACPI is 
selected.

Lines 17 and 18 read

SRCS     = wmacpi.c libapm.c libacpi.c
OBJS     = wmacpi.o libapm.o libacpi.o

They should be

SRCS     = wmacpi.c libacpi.c
OBJS     = wmacpi.o libacpi.o






Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2003-09-04 10:11:13 UTC
ok, i added patches so that only acpi support exists or apm ...

afaik the kernel will disable one if both are detected so the ebuild works the same way ... either you have acpi or you have apm ...