summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Noberasco <s4t4n@gentoo.org>2011-05-26 14:52:47 +0000
committerMichele Noberasco <s4t4n@gentoo.org>2011-05-26 14:52:47 +0000
commit7967dad85cd7ed24e9dc98a3314b81456ca4661a (patch)
tree648933f4478e1a709463b53a9a0937ae44846ce1 /x11-plugins/wmlaptop/files
parentversion bump (diff)
downloadgentoo-2-7967dad85cd7ed24e9dc98a3314b81456ca4661a.tar.gz
gentoo-2-7967dad85cd7ed24e9dc98a3314b81456ca4661a.tar.bz2
gentoo-2-7967dad85cd7ed24e9dc98a3314b81456ca4661a.zip
Version bump. Added patch to check for /proc/acpi instead of /proc/acpi/info. Partially fixes bug #348124.
(Portage version: 2.1.9.42/cvs/Linux i686)
Diffstat (limited to 'x11-plugins/wmlaptop/files')
-rw-r--r--x11-plugins/wmlaptop/files/wmlaptop-ACPI-detection.patch24
-rw-r--r--x11-plugins/wmlaptop/files/wmlaptop-Makefile.patch (renamed from x11-plugins/wmlaptop/files/wmlaptop-1.3-Makefile.patch)0
2 files changed, 24 insertions, 0 deletions
diff --git a/x11-plugins/wmlaptop/files/wmlaptop-ACPI-detection.patch b/x11-plugins/wmlaptop/files/wmlaptop-ACPI-detection.patch
new file mode 100644
index 000000000000..802e6f09a755
--- /dev/null
+++ b/x11-plugins/wmlaptop/files/wmlaptop-ACPI-detection.patch
@@ -0,0 +1,24 @@
+diff -ru wmlaptop-1.4.orig/src/battery.c wmlaptop-1.4/src/battery.c
+--- wmlaptop-1.4.orig/src/battery.c 2010-11-26 14:26:27.594108155 -0600
++++ wmlaptop-1.4/src/battery.c 2010-11-26 14:26:51.324108155 -0600
+@@ -74,7 +74,7 @@
+
+ bool ACPI_canSupport( )
+ {
+- if( access( ACPI_ACCESS_TEST, R_OK ) == SUCCESS )
++ if( access( ACPI_ACCESS_TEST, R_OK | X_OK ) == SUCCESS )
+ return true;
+ return false;
+ }
+diff -ru wmlaptop-1.4.orig/src/battery.h wmlaptop-1.4/src/battery.h
+--- wmlaptop-1.4.orig/src/battery.h 2010-11-26 14:26:27.594108155 -0600
++++ wmlaptop-1.4/src/battery.h 2010-11-26 14:26:56.100774821 -0600
+@@ -24,7 +24,7 @@
+ /*******************
+ * ACPI FEATURES *
+ *********************************************************************************/
+-#define ACPI_ACCESS_TEST "/proc/acpi/info"
++#define ACPI_ACCESS_TEST "/proc/acpi"
+ #define ACPI_BATTERY_DIR "/proc/acpi/battery"
+ //TODO #define ACPI_BATTERY_DIR "/home/mtc/hisBattery/battery"
+
diff --git a/x11-plugins/wmlaptop/files/wmlaptop-1.3-Makefile.patch b/x11-plugins/wmlaptop/files/wmlaptop-Makefile.patch
index ab1148ce117e..ab1148ce117e 100644
--- a/x11-plugins/wmlaptop/files/wmlaptop-1.3-Makefile.patch
+++ b/x11-plugins/wmlaptop/files/wmlaptop-Makefile.patch