unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#35308: GDM refuses to log into Gnome on Debian 9 or 10
@ 2019-04-17 18:16 Nicolas Goaziou
  2020-05-15 14:49 ` zimoun
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Nicolas Goaziou @ 2019-04-17 18:16 UTC (permalink / raw)
  To: 35308

Hello,

I use Guix on top of Debian, with Gnome DE. Once I'm at GDM screen and
I log in successfully, nothing happens, and I'm back to GDM screen. The
only workaround I found is to add the following lines in my .profile:

    unset GI_TYPELIB_PATH
    unset XDG_DATA_DIRS

Then I can get past GDM. The fix doesn't work if i omit either line. It
doesn't make a difference if I use standard Gnome, or Gnome Wayland. It
doesn't make a difference if I use Debian Testing instead of Stable.

This is not a great fix because applications installed through Guix do
not appear in the Applications menu.

I wasn't able to get any error message to chew on. 

Help is welcome.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#35308: GDM refuses to log into Gnome on Debian 9 or 10
  2019-04-17 18:16 bug#35308: GDM refuses to log into Gnome on Debian 9 or 10 Nicolas Goaziou
@ 2020-05-15 14:49 ` zimoun
  2020-05-15 15:02   ` Nicolas Goaziou
  2020-05-15 19:38 ` Nicolas Goaziou
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 12+ messages in thread
From: zimoun @ 2020-05-15 14:49 UTC (permalink / raw)
  To: 35308, Nicolas Goaziou

Dear Nicolas,

Do you use Gnome from Guix or Gnome from Debian?

All the best,
simon




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#35308: GDM refuses to log into Gnome on Debian 9 or 10
  2020-05-15 14:49 ` zimoun
@ 2020-05-15 15:02   ` Nicolas Goaziou
  2020-05-15 15:19     ` zimoun
  0 siblings, 1 reply; 12+ messages in thread
From: Nicolas Goaziou @ 2020-05-15 15:02 UTC (permalink / raw)
  To: zimoun; +Cc: 35308

Hello,

zimoun <zimon.toutoune@gmail.com> writes:

> Do you use Gnome from Guix or Gnome from Debian?

From Debian.

Regards,

-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#35308: GDM refuses to log into Gnome on Debian 9 or 10
  2020-05-15 15:02   ` Nicolas Goaziou
@ 2020-05-15 15:19     ` zimoun
  0 siblings, 0 replies; 12+ messages in thread
From: zimoun @ 2020-05-15 15:19 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 35308

On Fri, 15 May 2020 at 17:02, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

> > Do you use Gnome from Guix or Gnome from Debian?
>
> From Debian.

Since I am currently running Guix on the top of Debian stable with
Gnome installed, I could try to reproduce and investigate.
However, I am not a Gnome user...

Could you indicate me which configuration files I need to tweak?
My Guix stuff are in ~/.bash_profile.  I do no use XDG (yet) and I
have only tried to add export XDG_DATA_DIRS with ~/.profile only.
I have a guest account which log by default to Gnome but I have
noticed an issue.


Cheers,
simon




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#35308: GDM refuses to log into Gnome on Debian 9 or 10
  2019-04-17 18:16 bug#35308: GDM refuses to log into Gnome on Debian 9 or 10 Nicolas Goaziou
  2020-05-15 14:49 ` zimoun
@ 2020-05-15 19:38 ` Nicolas Goaziou
  2020-11-19 14:03 ` bug#35308: GDM refuses to log in with propagated glib Nicolas Goaziou
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 12+ messages in thread
From: Nicolas Goaziou @ 2020-05-15 19:38 UTC (permalink / raw)
  To: zimoun; +Cc: 35308

zimoun <zimon.toutoune@gmail.com> writes:

> Could you indicate me which configuration files I need to tweak?
> My Guix stuff are in ~/.bash_profile.  

I use ~/.profile, as ~/.bash_profile is not sourced in Wayland, IIRC.
But there's nothing fancy in there, just a few exports, e.g.,

  export GUIX_PACKAGE_PATH="$HOME/dev/guix-packages"
  export SSL_CERT_DIR="$GUIX_PROFILE/etc/ssl/certs"
  export SSL_CERT_FILE="$SSL_CERT_DIR/ca-certificates.crt"

and the two unset directives mentioned in the bug report:

  unset GI_TYPELIB_PATH
  unset XDG_DATA_DIRS

> I do no use XDG (yet) and I have only tried to add export
> XDG_DATA_DIRS with ~/.profile only. I have a guest account which log
> by default to Gnome but I have noticed an issue.

Interestingly, I bisected my packages to the rather minimal:

  (specifications->manifest '("python-matplotlib"))

With a profile containing just this single package, I cannot go past GDM
if I don't unset the two environment variables above.

I assume there is something fishy in this package, or, more probably, in
its propagated inputs. WDYT?




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#35308: GDM refuses to log in with propagated glib
  2019-04-17 18:16 bug#35308: GDM refuses to log into Gnome on Debian 9 or 10 Nicolas Goaziou
  2020-05-15 14:49 ` zimoun
  2020-05-15 19:38 ` Nicolas Goaziou
@ 2020-11-19 14:03 ` Nicolas Goaziou
  2021-12-17  9:00 ` bug#35308: GDM refuses to log into Gnome Shell (was: GDM refuses to log into Gnome on Debian 9 or 10) Nicolas Goaziou
  2023-07-06  9:31 ` bug#35308: GDM refuses to log into Gnome on Debian 9 or 10 Rafa Gálvez
  4 siblings, 0 replies; 12+ messages in thread
From: Nicolas Goaziou @ 2020-11-19 14:03 UTC (permalink / raw)
  To: 35308

Hello,

I digged further, and tracked propagated inputs from
"python-matplotlib". So, it propagates "python-cairo", which in turn
propagates "cairo", and then "glib". Also, no propagated input from
"glib" has an issue with GDM, this is the stop point.

So, basically, if your manifest is:

    (specifications->manifest '("glib"))

and you use GDM from a foreign distro (Debian 10 in my case), you cannot
log in.

The only workaround I know of at this point is to add the following
lines to, e.g., ".profile":

    unset GI_TYPELIB_PATH
    unset XDG_DATA_DIRS

Help would be appreciated at this point.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#35308: GDM refuses to log into Gnome Shell (was: GDM refuses to log into Gnome on Debian 9 or 10)
  2019-04-17 18:16 bug#35308: GDM refuses to log into Gnome on Debian 9 or 10 Nicolas Goaziou
                   ` (2 preceding siblings ...)
  2020-11-19 14:03 ` bug#35308: GDM refuses to log in with propagated glib Nicolas Goaziou
@ 2021-12-17  9:00 ` Nicolas Goaziou
  2021-12-17 10:52   ` Josselin Poiret via Bug reports for GNU Guix
  2023-07-06  9:31 ` bug#35308: GDM refuses to log into Gnome on Debian 9 or 10 Rafa Gálvez
  4 siblings, 1 reply; 12+ messages in thread
From: Nicolas Goaziou @ 2021-12-17  9:00 UTC (permalink / raw)
  To: 35308

I went a bit further:

The issue is not specifically glib-related, but can be reproduced with
any package using the following:

  (search-path-specification
   (variable "XDG_DATA_DIRS")
   ...)

Hence, the following manifest can reproduce the problem:

  (specifications->manifest '("fontconfig"))

even though fontconfig does not depend on glib (but does search XDG_DATA_DIRS).
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#35308: GDM refuses to log into Gnome Shell (was: GDM refuses to log into Gnome on Debian 9 or 10)
  2021-12-17  9:00 ` bug#35308: GDM refuses to log into Gnome Shell (was: GDM refuses to log into Gnome on Debian 9 or 10) Nicolas Goaziou
@ 2021-12-17 10:52   ` Josselin Poiret via Bug reports for GNU Guix
  2021-12-17 12:26     ` bug#35308: GDM refuses to log into Gnome Shell Nicolas Goaziou
  0 siblings, 1 reply; 12+ messages in thread
From: Josselin Poiret via Bug reports for GNU Guix @ 2021-12-17 10:52 UTC (permalink / raw)
  To: Nicolas Goaziou, 35308; +Cc: dev

Hello Nicolas,

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> I went a bit further:
>
> The issue is not specifically glib-related, but can be reproduced with
> any package using the following:
>
>   (search-path-specification
>    (variable "XDG_DATA_DIRS")
>    ...)
>
> Hence, the following manifest can reproduce the problem:
>
>   (specifications->manifest '("fontconfig"))
>
> even though fontconfig does not depend on glib (but does search XDG_DATA_DIRS).

Someone on IRC had this exact problem (down to the fontconfig minimal
reproducer :) ), and thanks to your pointer about XDG_DATA_DIRS, I've
figured out what the issue is.

The XDG specification says that if XDG_DATA_DIRS is unset, a default
value of `/usr/local/share/:/usr/share/` should be used in its place.
On Debian, that env var is not explicitely set, so applications use that
default value, but when we prepend to it, it effectively removes both of
these directories from the search path.

As a workaround, you can do `export
XDG_DATA_DIRS=/usr/local/share/:/usr/share/` right before sourcing the
guix profile in your .bash_profile.  I don't know what the best course
of action here is to have better OOB support.  Is it possible to have
env vars set by Guix have a default value if unset?

Best,
Josselin Poiret




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#35308: GDM refuses to log into Gnome Shell
  2021-12-17 10:52   ` Josselin Poiret via Bug reports for GNU Guix
@ 2021-12-17 12:26     ` Nicolas Goaziou
  2021-12-17 12:33       ` Josselin Poiret via Bug reports for GNU Guix
  0 siblings, 1 reply; 12+ messages in thread
From: Nicolas Goaziou @ 2021-12-17 12:26 UTC (permalink / raw)
  To: 35308

Hello,

Josselin Poiret via Bug reports for GNU Guix <bug-guix@gnu.org> writes:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
>> I went a bit further:
>>
>> The issue is not specifically glib-related, but can be reproduced with
>> any package using the following:
>>
>>   (search-path-specification
>>    (variable "XDG_DATA_DIRS")
>>    ...)

[...]

> The XDG specification says that if XDG_DATA_DIRS is unset, a default
> value of `/usr/local/share/:/usr/share/` should be used in its place.
> On Debian, that env var is not explicitely set, so applications use that
> default value, but when we prepend to it, it effectively removes both of
> these directories from the search path.
>
> As a workaround, you can do `export
> XDG_DATA_DIRS=/usr/local/share/:/usr/share/` right before sourcing the
> guix profile in your .bash_profile.

You're right. The above fixes the issue with fontconfig. Unfortunately,
the problem persists with the minimal manifest:

  (specifications->manifest '("python-matplotlib"))

So there's something else going on.

In order to fix the above, I need to put

  unset GI_TYPELIB_PATH

in my .profile, after having sourced Guix profile. Maybe this
environment variable also has a special default value when unset.

> I don't know what the best course
> of action here is to have better OOB support.  Is it possible to have
> env vars set by Guix have a default value if unset?

I think it is desirable, in particular for fontconfig, which is
a recommended package in the manual. The part of Guix responsible for
generating the profile file may be more careful when setting
XDG_DATA_DIRS, e.g., with something like (untested):

export XDG_DATA_DIRS=\
"${GUIX_PROFILE:-/gnu/store/…-profile}/share${XDG_DATA_DIRS:+:}${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}"

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#35308: GDM refuses to log into Gnome Shell
  2021-12-17 12:26     ` bug#35308: GDM refuses to log into Gnome Shell Nicolas Goaziou
@ 2021-12-17 12:33       ` Josselin Poiret via Bug reports for GNU Guix
  2021-12-17 17:11         ` Nicolas Goaziou
  0 siblings, 1 reply; 12+ messages in thread
From: Josselin Poiret via Bug reports for GNU Guix @ 2021-12-17 12:33 UTC (permalink / raw)
  To: mail, 35308; +Cc: dev

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> You're right. The above fixes the issue with fontconfig. Unfortunately,
> the problem persists with the minimal manifest:
>
>   (specifications->manifest '("python-matplotlib"))
>
> So there's something else going on.
>
> In order to fix the above, I need to put
>
>   unset GI_TYPELIB_PATH
>
> in my .profile, after having sourced Guix profile. Maybe this
> environment variable also has a special default value when unset.

Can you try again with `export
GI_TYPELIB_PATH=/usr/lib/girepository-1.0/` before sourcing the profile?

Best,
Josselin Poiret




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#35308: GDM refuses to log into Gnome Shell
  2021-12-17 12:33       ` Josselin Poiret via Bug reports for GNU Guix
@ 2021-12-17 17:11         ` Nicolas Goaziou
  0 siblings, 0 replies; 12+ messages in thread
From: Nicolas Goaziou @ 2021-12-17 17:11 UTC (permalink / raw)
  To: Josselin Poiret; +Cc: 35308

Josselin Poiret <dev@jpoiret.xyz> writes:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
>> You're right. The above fixes the issue with fontconfig. Unfortunately,
>> the problem persists with the minimal manifest:
>>
>>   (specifications->manifest '("python-matplotlib"))
>>
>> So there's something else going on.
>>
>> In order to fix the above, I need to put
>>
>>   unset GI_TYPELIB_PATH
>>
>> in my .profile, after having sourced Guix profile. Maybe this
>> environment variable also has a special default value when unset.
>
> Can you try again with `export
> GI_TYPELIB_PATH=/usr/lib/girepository-1.0/` before sourcing the
> profile?

Tough luck. The problem is still there.

Regards,




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#35308: GDM refuses to log into Gnome on Debian 9 or 10
  2019-04-17 18:16 bug#35308: GDM refuses to log into Gnome on Debian 9 or 10 Nicolas Goaziou
                   ` (3 preceding siblings ...)
  2021-12-17  9:00 ` bug#35308: GDM refuses to log into Gnome Shell (was: GDM refuses to log into Gnome on Debian 9 or 10) Nicolas Goaziou
@ 2023-07-06  9:31 ` Rafa Gálvez
  4 siblings, 0 replies; 12+ messages in thread
From: Rafa Gálvez @ 2023-07-06  9:31 UTC (permalink / raw)
  To: 35308

Hi,

 I ran today into this problem using Ubuntu 22.04.2 LTS, and Josselin
 Poiret's fix worked perfectly:
 `export GI_TYPELIB_PATH=/usr/lib/girepository-1.0/`

 I installed Guix already some time ago, and the guix-install.sh script
 I used was very different from the one currently in master. So before
 applying this fix, I ran these functions from the script:
 sys_create_init_profile
 sys_create_shell_completion
 sys_customize_bashrc

 Then I added the export GI_TYPELIB_PATH to /etc/profile.d/zzz-guix.sh,
 restarted the laptop, and problem solved.

 Best,

Rafa




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-07-06  9:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-17 18:16 bug#35308: GDM refuses to log into Gnome on Debian 9 or 10 Nicolas Goaziou
2020-05-15 14:49 ` zimoun
2020-05-15 15:02   ` Nicolas Goaziou
2020-05-15 15:19     ` zimoun
2020-05-15 19:38 ` Nicolas Goaziou
2020-11-19 14:03 ` bug#35308: GDM refuses to log in with propagated glib Nicolas Goaziou
2021-12-17  9:00 ` bug#35308: GDM refuses to log into Gnome Shell (was: GDM refuses to log into Gnome on Debian 9 or 10) Nicolas Goaziou
2021-12-17 10:52   ` Josselin Poiret via Bug reports for GNU Guix
2021-12-17 12:26     ` bug#35308: GDM refuses to log into Gnome Shell Nicolas Goaziou
2021-12-17 12:33       ` Josselin Poiret via Bug reports for GNU Guix
2021-12-17 17:11         ` Nicolas Goaziou
2023-07-06  9:31 ` bug#35308: GDM refuses to log into Gnome on Debian 9 or 10 Rafa Gálvez

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).