Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395295 - gnome-base/gdm-3.2.1.1-r1 fails to load session 'gdm-shell' when 'metacity' ebuild is not installed
Summary: gnome-base/gdm-3.2.1.1-r1 fails to load session 'gdm-shell' when 'metacity' e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-19 19:33 UTC by Octavio Ruiz (Ta^3)
Modified: 2011-12-31 08:37 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gnome-base/gdm-3.2.1.1-r2 (gdm-3.2.1.1-r2.ebuild,8.45 KB, text/plain)
2011-12-19 19:49 UTC, Octavio Ruiz (Ta^3)
Details
files/gdm-3.2.1.1-xfwm4-compat.patch (gdm-3.2.1.1-xfwm4-compat.patch,1.33 KB, text/plain)
2011-12-19 19:50 UTC, Octavio Ruiz (Ta^3)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Octavio Ruiz (Ta^3) 2011-12-19 19:33:47 UTC
gnome-base/gdm-3.2.1.1-r1 fails to start with complains that gdm-shell is missing.
Comment 1 Octavio Ruiz (Ta^3) 2011-12-19 19:47:09 UTC
Steps to Reproduce:

Uninstall metacity ebuild, or not install it at all which is a tipical scenario when not using GNOME but using GDM, for example to load XFCE4.
Comment 2 Octavio Ruiz (Ta^3) 2011-12-19 19:49:13 UTC
Created attachment 296383 [details]
gnome-base/gdm-3.2.1.1-r2

Patch that will call xfwm4 if metacity doesn't exist. It
falls back to compiz, last, if both metacity and xfwm4 do not exist.

Taken from https://bugzilla.redhat.com/show_bug.cgi?id=746693
Comment 3 Octavio Ruiz (Ta^3) 2011-12-19 19:50:06 UTC
Created attachment 296385 [details]
files/gdm-3.2.1.1-xfwm4-compat.patch

Patch that will call xfwm4 if metacity doesn't exist. It
falls back to compiz, last, if both metacity and xfwm4 do not exist.

Taken from https://bugzilla.redhat.com/show_bug.cgi?id=746693
Comment 4 Octavio Ruiz (Ta^3) 2011-12-19 20:11:53 UTC
Above patch seems to not work. What works is to modify:

/usr/share/gnome-session/sessions/gdm-fallback.session

[GNOME Session]
Name=Display Manager
RequiredComponents=gdm-simple-greeter;gnome-settings-daemon;
RequiredProviders=windowmanager;
DefaultProvider-windowmanager=xfwm4

and create 

/usr/share/applications/xfwm4.desktop

[Desktop Entry]
Type=Application
Name=XFWM4
Name[es]=XFWM4
Exec=xfwm4
NoDisplay=true
X-GNOME-WMSettingsModule=xfwm4
X-GNOME-WMName=XFWM
X-GNOME-Autostart-Phase=WindowManager
X-GNOME-Provides=windowmanager
X-GNOME-Autostart-Notify=true

This would make GDM to start without metacity installed but with XFWM4 instead.
Comment 5 Octavio Ruiz (Ta^3) 2011-12-21 03:40:10 UTC
The lazy fix is to remove the dependency condition on the ebuild

    !gnome-shell? ( x11-wm/metacity )

and add metacity as an always dependency being it always needed (being compiled with or withouth gnome-shell).
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-12-31 08:37:36 UTC
Fixed in 3.2.1.1-r2 by adding a default-enabled fallback USE flag that pulls in metacity. Thanks for reporting!

>*gdm-3.2.1.1-r2 (31 Dec 2011)
> 
>  31 Dec 2011; Alexandre Rostovtsev <tetromino@gentoo.org>
>  +files/gdm-3.2.1.1-pam-fix-1.patch, +files/3.2.1.1/gdm-fingerprint,
>  +files/gdm-3.2.1.1-pam-fix-2.patch, +files/3.2.1.1/gdm,
>  +files/3.2.1.1/gdm.service, +files/3.2.1.1/gdm-autologin,
>  +files/3.2.1.1/gdm-welcome, gdm-3.2.1.1-r1.ebuild, +gdm-3.2.1.1-r2.ebuild,
>  +files/3.2.1.1/gdm-password, +files/3.2.1.1/gdm-smartcard, metadata.xml:
>  Add upstream patches to fix login problems with slow pam modules. Add
>  default-enabled fallback USE flag to pull in metacity (bug #395295, thanks to
>  Octavio Ruiz (Ta^3) for reporting). Use a better systemd service file (bug
>  #396317, thanks to Michał Górny). Ship systemd service file and pam.d files
>  in FILESDIR instead of a separate tarball; these are small files and unlikely
>  to change (bug #396317, comment 8). Punt unused elibc_glibc from IUSE. Move
>  gnome2_src_prepare after eautoreconf.
>  Forced to drop arm keyword due to gnome-session dependency (bug #390345).