summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorStanislav Brabec <utx@penguin.cz>2009-05-28 14:36:19 +0000
committerutx@penguin.cz <utx@penguin.cz>2009-05-28 14:36:19 +0000
commite4cf294ccda61af03749e1c54050c88b76fbb7c5 (patch)
tree5beb349e363ac965459d60008bb7ec3d31cf728c /recipes
parentb6cc6c1814e607558b74c72d58423cf0b5f155b0 (diff)
gpe-login: Do not depends on kernel with CONFIG_SYSFS_DEPRECATED*=y.
Diffstat (limited to 'recipes')
-rw-r--r--recipes/gpe-login/files/no-deprecated-sysfs.patch17
-rw-r--r--recipes/gpe-login/gpe-login_0.95.bb3
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 0000000000..ed5a6b2362
--- /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 0b3f480e6e..48371b53a9 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"