Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=gnometesting.git;a=commitdiff;h=25a5e9f7767d60c24de295713e27fbee294319c4
commit 25a5e9f7767d60c24de295713e27fbee294319c4 Author: Baste <[email protected]> Date: Sat Sep 15 12:37:10 2012 +0200 gdm-3.5.91-2-x86_64 * Fix pam diff --git a/source/gnome/gdm/FrugalBuild b/source/gnome/gdm/FrugalBuild index eb17d5e..6fda7d5 100644 --- a/source/gnome/gdm/FrugalBuild +++ b/source/gnome/gdm/FrugalBuild @@ -4,7 +4,7 @@ pkgname=gdm pkgver=3.5.91 -pkgrel=1 +pkgrel=2 pkgdesc="GNOME Display Manager" url="http://www.gnome.org/" backup=(etc/gdm/custom.conf etc/pam.d/gdm etc/pam.d/gdm-autologin \ @@ -18,7 +18,10 @@ _F_gnome_git="n" _F_gnome_ext=".tar.xz" Finclude gnome #source=($source org.gnome.login-screen.gschema.override gdmshell.patch) -sha1sums=('3f01d6ad6c45af76559ecd3faf3ad47d6027e824') +source=($source autologin.patch org.gnome.login-screen.gschema.override) +sha1sums=('3f01d6ad6c45af76559ecd3faf3ad47d6027e824' \ + 'fcb3f26c10ebc593d6a02c9fd4b4c057308c486a' \ + '974832a3878a020c87a833f5ba99a0c7d5d27b57') if [ "$_F_gnome_git" != "n" ]; then unset sha1sums fi @@ -39,14 +42,15 @@ build() { Fpatchall Fmake --with-pam-prefix=/etc \ --enable-split-authentication \ - --enable-console-helper + --enable-console-helper \ + --with-lang-file=/etc/sysconfig/language # --disable-scrollkeeper \ # --with-console-kit Fmakeinstall - chmod a+r $Fdestdir/var/lib/gdm || Fdie - chown root:root $Fdestdir/var/lib/gdm || Fdie +# chmod a+r $Fdestdir/var/lib/gdm || Fdie +# chown root:root $Fdestdir/var/lib/gdm || Fdie # Fmkdir var/spool/gdm #delete PAM default rules @@ -64,7 +68,7 @@ session required pam_unix.so session required pam_systemd.so EOF -cat > $Fdestdir/etc/pam.d/gdm-welcome << "EOF" +cat > $Fdestdir/etc/pam.d/gdm-launch-environment << "EOF" #%PAM-1.0 auth required pam_env.so auth required pam_permit.so @@ -105,17 +109,17 @@ session optional pam_gnome_keyring.so auto_start EOF #bash completion fix - Fsed "#!/bin/sh" "#!/bin/bash" $Fdestdir/usr/sbin/gdm +# Fsed "#!/bin/sh" "#!/bin/bash" $Fdestdir/usr/sbin/gdm - Frm var/gdm - chmod 1770 $Fdestdir/var/log/gdm || Fdie +# Frm var/gdm +# chmod 1770 $Fdestdir/var/log/gdm || Fdie # systemd tmpfiles - Frm var/run - Fmkdir /etc/tmpfiles.d - cat > $Fdestdir/etc/tmpfiles.d/gdm.conf << EOF -d $Flocalstatedir/run/gdm 0711 root gdm - -d $Flocalstatedir/run/gdm/greeter 0755 gdm gdm - -EOF +# Frm var/run +# Fmkdir /etc/tmpfiles.d +# cat > $Fdestdir/etc/tmpfiles.d/gdm.conf << EOF +#d $Flocalstatedir/run/gdm 0711 root gdm - +#d $Flocalstatedir/run/gdm/greeter 0755 gdm gdm - +#EOF # add logo to shell greeter Fcp ../org.gnome.login-screen.gschema.override usr/share/glib-2.0/schemas/ diff --git a/source/gnome/gdm/autologin.patch b/source/gnome/gdm/autologin.patch new file mode 100644 index 0000000..d92dd5c --- /dev/null +++ b/source/gnome/gdm/autologin.patch @@ -0,0 +1,36 @@ +From aafa4070f2905c4848091a78422210951775cd9a Mon Sep 17 00:00:00 2001 +From: Ray Strode <[email protected]> +Date: Thu, 6 Sep 2012 18:20:05 -0400 +Subject: [PATCH] slave: fix autologin + +An inverted condition in the wants_autologin function means we tried +to start greeter when autologin is runnings. + +Since autologin is usually much faster than loading GL/gnome-shell, this bug +is sort of spotty to reproduce. + +This commit changes the "delay > 0" check to "delay == 0" which is a +correct indicator of autologin. + +https://bugzilla.gnome.org/show_bug.cgi?id=682465 +--- + daemon/gdm-simple-slave.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/daemon/gdm-simple-slave.c b/daemon/gdm-simple-slave.c +index b646b78..563f6ed 100644 +--- a/daemon/gdm-simple-slave.c ++++ b/daemon/gdm-simple-slave.c +@@ -1215,7 +1215,7 @@ wants_autologin (GdmSimpleSlave *slave) + /* FIXME: handle wait-for-go */ + + gdm_slave_get_timed_login_details (GDM_SLAVE (slave), &enabled, NULL, &delay); +- return enabled && delay > 0; ++ return enabled && delay == 0; + } + + #define INITIAL_SETUP_TRIGGER_FILE LOCALSTATEDIR "/lib/gdm/run-initial-setup" +-- +1.7.12 + + diff --git a/source/gnome/gdm/gdm.install b/source/gnome/gdm/gdm.install index 860f1f6..28ec3f0 100644 --- a/source/gnome/gdm/gdm.install +++ b/source/gnome/gdm/gdm.install @@ -1,10 +1,33 @@ +UpdateIconCache() +{ + if [ -f /usr/bin/gtk-update-icon-cache ] + then + echo -n "updating hicolor icon cache..." + if gtk-update-icon-cache -f -t /usr/share/icons/hicolor > /dev/null 2>&1 ; then + echo " done." + else + echo " failed." + fi + fi + if [ -f /usr/bin/gtk-update-icon-cache-3.0 ] + then + echo -n "updating hicolor icon cache gtk+3..." + if gtk-update-icon-cache-3.0 -f -t /usr/share/icons/hicolor > /dev/null 2>&1 ; then + echo " done." + else + echo " failed." + fi + fi +} post_install() { /usr/sbin/useradd -M -u 42 -d /var/lib/gdm -s /sbin/nologin -r gdm > /dev/null 2>&1 /usr/sbin/usermod -d /var/lib/gdm -s /sbin/nologin gdm >/dev/null 2>&1 # ignore errors, as we can't disambiguate between gdm already existe - chown -R gdm:gdm /var/lib/gdm &> /dev/null + + +# chown -R gdm:gdm /var/lib/gdm &> /dev/null echo -n "updating scrollkeeper catalogue... " rarian-sk-update -q > /dev/null 2>&1 echo "done." @@ -13,6 +36,7 @@ post_install() sed -i 's|usr/sbin/gdm -nodaemon|usr/sbin/gdm --nodaemon|' /etc/sysconfig/desktop sed 's|^#desktop="/usr/sbin/gdm --nodaemon"$|desktop="/usr/sbin/gdm --nodaemon"|' -i /etc/sysconfig/desktop /sbin/ldconfig + UpdateIconCache glib-compile-schemas /usr/share/glib-2.0/schemas dconf update } @@ -29,6 +53,7 @@ post_remove() echo "done." sed -i 's|^desktop="/usr/sbin/gdm --nodaemon"$|#desktop="/usr/sbin/gdm --nodaemon"|' /etc/sysconfig/desktop dconf update + UpdateIconCache } op=$1 _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
