Subject: bug#643 closed by Chong Yidong <[email-masked]> (Re: 23.0.60; battery.el needs deprecated ACPI_PROCFS_POWER interface)

From: [email-masked] (Emacs bug Tracking System)

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#643: 23.0.60; battery.el needs deprecated ACPI_PROCFS_POWER interface

It has been closed by Chong Yidong <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Chong Yidong <[email-masked]> by
replying to this email.

-- 
643: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=643
Emacs Bug Tracking System
Contact [email-masked] with problems
>From [email-masked] Fri Aug  8 10:49:50 2008
From: Chong Yidong <[email-masked]>
To: [email-masked]
Subject: Re: 23.0.60; battery.el needs deprecated ACPI_PROCFS_POWER interface
Date: Fri, 08 Aug 2008 13:49:56 -0400

I've checked in the patch.

>From [email-masked] Sun Aug  3 00:36:29 2008
From: Sven Joachim <[email-masked]>
To: [email-masked]
Subject: 23.0.60; battery.el needs deprecated ACPI_PROCFS_POWER interface
Date: Sun, 03 Aug 2008 09:04:05 +0200

In recent Linux kernels, the information about battery status has been
moved from /proc/acpi/battery to /sys/class/power_supply.  It is only
available from the former place if the kernel has been built with the
ACPI_PROCFS_POWER option, which is deprecated:

,----[ /usr/src/linux-2.6.26.1/drivers/acpi/Kconfig ]
| config ACPI_PROCFS_POWER
| 	bool "Deprecated power /proc/acpi directories"
| 	depends on PROC_FS
| 	default y
| 	---help---
| 	  For backwards compatibility, this option allows
|           deprecated power /proc/acpi/ directories to exist, even when
|           they have been replaced by functions in /sys.
|           The deprecated directories (and their replacements) include:
| 	  /proc/acpi/battery/* (/sys/class/power_supply/*)
| 	  /proc/acpi/ac_adapter/* (sys/class/power_supply/*)
| 	  This option has no effect on /proc/acpi/ directories
| 	  and functions, which do not yet exist in /sys
| 
| 	  Say N to delete power /proc/acpi/ directories that have moved to /sys/
| 
`----

At least Debian ships kernels that are built without ACPI_PROCFS_POWER,
so battery.el will not work with them.

Sven