[oe-commits] Stanislav Brabec : gpe-login: Do not depends on kernel with CONFIG_SYSFS_DEPRECATED*=y.
git version control
git at git.openembedded.org
Thu May 28 14:36:59 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: e4cf294ccda61af03749e1c54050c88b76fbb7c5
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=e4cf294ccda61af03749e1c54050c88b76fbb7c5
Author: Stanislav Brabec <utx at penguin.cz>
Date: Thu May 28 14:36:19 2009 +0000
gpe-login: Do not depends on kernel with CONFIG_SYSFS_DEPRECATED*=y.
---
recipes/gpe-login/files/no-deprecated-sysfs.patch | 17 +++++++++++++++++
recipes/gpe-login/gpe-login_0.95.bb | 3 ++-
2 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/recipes/gpe-login/files/no-deprecated-sysfs.patch b/recipes/gpe-login/files/no-deprecated-sysfs.patch
new file mode 100644
index 0000000..ed5a6b2
--- /dev/null
+++ b/recipes/gpe-login/files/no-deprecated-sysfs.patch
@@ -0,0 +1,17 @@
+Do not depends on kernel with CONFIG_SYSFS_DEPRECATED*=y.
+With the new sysfs layout, /sys/class/backlight/* contains only symlinks.
+chown -R skips symlinks, keeping device accessible only for root.
+
+Index: gpe-login-0.95/X11/gpe-login.pre-session
+===================================================================
+--- gpe-login-0.95.orig/X11/gpe-login.pre-session 2008-08-06 21:23:40.000000000 +0000
++++ gpe-login-0.95/X11/gpe-login.pre-session 2009-05-28 13:28:37.000000000 +0000
+@@ -57,7 +57,7 @@
+ # screen light control #
+
+ if [ -d /sys/class/backlight ]; then
+-chown -R $USER /sys/class/backlight/*
++chown -R $USER /sys/class/backlight/*/*
+ chmod u+rw /sys/class/backlight/*/*
+ fi
+
diff --git a/recipes/gpe-login/gpe-login_0.95.bb b/recipes/gpe-login/gpe-login_0.95.bb
index 0b3f480..48371b5 100644
--- a/recipes/gpe-login/gpe-login_0.95.bb
+++ b/recipes/gpe-login/gpe-login_0.95.bb
@@ -5,7 +5,7 @@ LICENSE = "GPL"
DEPENDS = "gtk+ libgpewidget gpe-ownerinfo xkbd"
RDEPENDS = "xkbd gpe-theme-clearlooks"
RPROVIDES_${PN} = "gpe-session-starter"
-PR = "r0"
+PR = "r1"
SRC_URI_OVERRIDES_PACKAGE_ARCH = "1"
@@ -17,6 +17,7 @@ inherit gpe autotools pkgconfig
SRC_URI += "file://removeblue-fontsize8.patch;patch=1"
SRC_URI += " file://chvt-keylaunch.patch;patch=1 "
SRC_URI += " file://c-locale.patch;patch=1 "
+SRC_URI += " file://no-deprecated-sysfs.patch;patch=1 "
SRC_URI_append_spitz = "file://brightness-adjust-keyluanchrc.patch;patch=1"
SRC_URI_append_akita = "file://brightness-adjust-keyluanchrc.patch;patch=1"
More information about the Openembedded-commits
mailing list