summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Piotr Żołnowski <aidecoe@gentoo.org>2011-03-20 15:34:24 +0000
committerAmadeusz Piotr Żołnowski <aidecoe@gentoo.org>2011-03-20 15:34:24 +0000
commitb1ebe23dd812ffb1b08da55bbf13827d5a296153 (patch)
tree5dd6da0f5d9430f7783740981c6568449a8eb679 /app-laptop/ibam/files
parentAdd ~ia64 wrt #359313 (diff)
downloadgentoo-2-b1ebe23dd812ffb1b08da55bbf13827d5a296153.tar.gz
gentoo-2-b1ebe23dd812ffb1b08da55bbf13827d5a296153.tar.bz2
gentoo-2-b1ebe23dd812ffb1b08da55bbf13827d5a296153.zip
app-laptop/ibam: Revbump to 0.5.2-r2. Fixes bug #346811.
(Portage version: 2.1.9.44/cvs/Linux x86_64)
Diffstat (limited to 'app-laptop/ibam/files')
-rw-r--r--app-laptop/ibam/files/ibam-0.5.2-acpi.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/app-laptop/ibam/files/ibam-0.5.2-acpi.patch b/app-laptop/ibam/files/ibam-0.5.2-acpi.patch
new file mode 100644
index 000000000000..321f5b3c8dfb
--- /dev/null
+++ b/app-laptop/ibam/files/ibam-0.5.2-acpi.patch
@@ -0,0 +1,15 @@
+--- ibam-0.5.2/ibam.inl 2009-03-09 19:53:20.000000000 +0300
++++ ibam-0.5.2/ibam.inl 2010-11-26 04:52:29.590364097 +0300
+@@ -942,10 +942,11 @@
+ {
+ string pmu_path = "/proc/pmu"; // These strings are already in ibam.hpp,
+ string acpi_path = "/proc/acpi"; // maybe a static function should check this
++ string acpi_ver_path = "/sys/module/acpi/parameters/acpica_version";
+ string sysfs_path = "/sys/class/power_supply"; // ...
+ ifstream pmu,acpi,sysfs;
+ pmu.open((pmu_path+"/info").c_str());
+- acpi.open((acpi_path+"/info").c_str());
++ acpi.open(acpi_ver_path.c_str());
+ if (pmu.is_open()) {
+ #ifdef IBAM_DEBUG
+ cout << "using pmu" << endl;