GNU bug report logs

#59579 installing zbar prevents gdm to start on Ubuntu 22.04 foreign distro

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Reply or subscribe to this bug. View this bug as an mbox, status mbox, or maintainer mbox

Report forwarded to bug-guix@gnu.org:
bug#59579; Package guix. (Fri, 25 Nov 2022 17:46:02 GMT) (full text, mbox, link).


Acknowledgement sent to Clément Lassieur <clement@lassieur.org>:
New bug report received and forwarded. Copy sent to bug-guix@gnu.org. (Fri, 25 Nov 2022 17:46:02 GMT) (full text, mbox, link).


Message #5 received at submit@debbugs.gnu.org (full text, mbox, reply):

From: Clément Lassieur <clement@lassieur.org>
To: bug-guix@gnu.org
Cc: glv@posteo.net
Subject: installing zbar prevents gdm to start on Ubuntu 22.04 foreign distro
Date: Fri, 25 Nov 2022 18:45:10 +0100
[Message part 1 (text/plain, inline)]
Severity: serious

Steps to reproduce:

> - install Ubuntu 22.04
> - install Guix package manager
> - guix package -i zbar
> - reboot

Expected result

> boot

result

> login loop

It's very difficult to pin the issue down to a guix package being installed.

I imagine the bug would not happen if ~/.guix-profile/share was not in XDG_DATA_DIRS.
[Message part 2 (text/html, inline)]

Owner recorded as glv@posteo.net. Request was from Clément Lassieur <clement@lassieur.org> to control@debbugs.gnu.org. (Fri, 25 Nov 2022 17:51:02 GMT) (full text, mbox, link).


Information forwarded to bug-guix@gnu.org, glv@posteo.net:
bug#59579; Package guix. (Thu, 26 Jan 2023 17:39:01 GMT) (full text, mbox, link).


Message #10 received at 59579@debbugs.gnu.org (full text, mbox, reply):

From: Simon Tournier <zimon.toutoune@gmail.com>
To: Clément Lassieur <clement@lassieur.org>
Cc: 59579@debbugs.gnu.org, glv@posteo.net
Subject: Re: bug#59579: installing zbar prevents gdm to start on Ubuntu 22.04 foreign distro
Date: Thu, 26 Jan 2023 18:10:56 +0100
Hi,

On Fri, 25 Nov 2022 at 18:45, Clément Lassieur <clement@lassieur.org> wrote:

> It's very difficult to pin the issue down to a guix package being
> installed.
>
> I imagine the bug would not happen if ~/.guix-profile/share was not in
> XDG_DATA_DIRS.

Yes, it is related to XDG_DATA_DIRS and it can be tedious to find which
package brings the issue.

I had a similar issue with the package ’python-ipython’ and recently
with ’fontconfig’ – both cases running on the top of Debian.

The issue can happen whatever the profile; it just depends which ones
are sourced by your login shell.


Cheers,
simon




Information forwarded to bug-guix@gnu.org, glv@posteo.net:
bug#59579; Package guix. (Tue, 31 Jan 2023 06:24:01 GMT) (full text, mbox, link).


Message #13 received at 59579@debbugs.gnu.org (full text, mbox, reply):

From: 宋文武 <iyzsong@envs.net>
To: Simon Tournier <zimon.toutoune@gmail.com>
Cc: 59579@debbugs.gnu.org, glv@posteo.net, Clément Lassieur <clement@lassieur.org>
Subject: Re: bug#59579: installing zbar prevents gdm to start on Ubuntu 22.04 foreign distro
Date: Tue, 31 Jan 2023 14:23:09 +0800
Simon Tournier <zimon.toutoune@gmail.com> writes:

> Hi,
>
> On Fri, 25 Nov 2022 at 18:45, Clément Lassieur <clement@lassieur.org> wrote:
>
>> It's very difficult to pin the issue down to a guix package being
>> installed.
>>
>> I imagine the bug would not happen if ~/.guix-profile/share was not in
>> XDG_DATA_DIRS.
>
> Yes, it is related to XDG_DATA_DIRS and it can be tedious to find which
> package brings the issue.
>
> I had a similar issue with the package ’python-ipython’ and recently
> with ’fontconfig’ – both cases running on the top of Debian.
>
> The issue can happen whatever the profile; it just depends which ones
> are sourced by your login shell.
>

Hello, I don't think XDG_DATA_DIRS should be the problems, but other
environment variables with "lib", since the xdg data should be
portable...

So:
--8<---------------cut here---------------start------------->8---
$ guix shell -C coreutils zbar --no-grafts  -- env
PS1=\u@\h \w [env]\$ 
TMPDIR=/tmp
TEMPDIR=/tmp
TMP=/tmp
TEMP=/tmp
LOGNAME=iyzsong
USER=iyzsong
HOME=/home/iyzsong
PATH=/gnu/store/yfnm6nh3a6c7hiqk1nq228wpph1x1z1w-profile/bin:/gnu/store/yfnm6nh3a6c7hiqk1nq228wpph1x1z1w-profile/sbin
XDG_DATA_DIRS=/gnu/store/yfnm6nh3a6c7hiqk1nq228wpph1x1z1w-profile/share
GUIX_GTK3_PATH=/gnu/store/yfnm6nh3a6c7hiqk1nq228wpph1x1z1w-profile/lib/gtk-3.0
QMAKEPATH=/gnu/store/yfnm6nh3a6c7hiqk1nq228wpph1x1z1w-profile/lib/qt5
QT_PLUGIN_PATH=/gnu/store/yfnm6nh3a6c7hiqk1nq228wpph1x1z1w-profile/lib/qt5/plugins
XDG_CONFIG_DIRS=/gnu/store/yfnm6nh3a6c7hiqk1nq228wpph1x1z1w-profile/etc/xdg
XCURSOR_PATH=/gnu/store/yfnm6nh3a6c7hiqk1nq228wpph1x1z1w-profile/share/icons
GDK_PIXBUF_MODULE_FILE=/gnu/store/yfnm6nh3a6c7hiqk1nq228wpph1x1z1w-profile/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
GUIX_ENVIRONMENT=/gnu/store/yfnm6nh3a6c7hiqk1nq228wpph1x1z1w-profile
--8<---------------cut here---------------end--------------->8---

I think GUIX_GTK3_PATH, QT_PLUGIN_PATH, GDK_PIXBUF_MODULE_FILE should be
the problems.




Information forwarded to bug-guix@gnu.org, glv@posteo.net:
bug#59579; Package guix. (Tue, 31 Jan 2023 11:37:02 GMT) (full text, mbox, link).


Message #16 received at 59579@debbugs.gnu.org (full text, mbox, reply):

From: zimoun <zimon.toutoune@gmail.com>
To: 宋文武 <iyzsong@envs.net>
Cc: 59579@debbugs.gnu.org, glv@posteo.net, Clément Lassieur <clement@lassieur.org>
Subject: Re: bug#59579: installing zbar prevents gdm to start on Ubuntu 22.04 foreign distro
Date: Tue, 31 Jan 2023 10:52:51 +0100
Hi,

On Tue, 31 Jan 2023 at 14:23, 宋文武 via Bug reports for GNU Guix <bug-guix@gnu.org> wrote:

> Hello, I don't think XDG_DATA_DIRS should be the problems, but other
> environment variables with "lib", since the xdg data should be
> portable...

I had the issue yesterday on Ubuntu. :-)

> I think GUIX_GTK3_PATH, QT_PLUGIN_PATH, GDK_PIXBUF_MODULE_FILE should be
> the problems.

None of these environment variables were in my profile, IIRC.  From my
small experiment, the only common one is XDG_DATA_DIRS.  For instance, I
had the issue and I just removed the package ’fontconfig’ which fixed
the issue;  the environment variables reads,

--8<---------------cut here---------------start------------->8---
$ guix shell fontconfig --search-paths
export PATH="/gnu/store/i5rdrrdq4zi98yzcw7rza169ir1zkj6n-profile/bin${PATH:+:}$PATH"
export XDG_DATA_DIRS="/gnu/store/i5rdrrdq4zi98yzcw7rza169ir1zkj6n-profile/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"
--8<---------------cut here---------------end--------------->8---

The package ’zbar’ also provides XDG_DATA_DIRS.  Maybe, I am missing
something.


Cheers,
simon







Information forwarded to bug-guix@gnu.org, glv@posteo.net:
bug#59579; Package guix. (Sat, 18 May 2024 03:13:02 GMT) (full text, mbox, link).


Message #19 received at 59579@debbugs.gnu.org (full text, mbox, reply):

From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: zimoun <zimon.toutoune@gmail.com>
Cc: 59579@debbugs.gnu.org, glv@posteo.net, Clément Lassieur <clement@lassieur.org>, 宋文武 <iyzsong@envs.net>
Subject: Re: bug#59579: installing zbar prevents gdm to start on Ubuntu 22.04 foreign distro
Date: Fri, 17 May 2024 23:10:57 -0400
Hi,

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

> Hi,
>
> On Tue, 31 Jan 2023 at 14:23, 宋文武 via Bug reports for GNU Guix <bug-guix@gnu.org> wrote:
>
>> Hello, I don't think XDG_DATA_DIRS should be the problems, but other
>> environment variables with "lib", since the xdg data should be
>> portable...
>
> I had the issue yesterday on Ubuntu. :-)
>
>> I think GUIX_GTK3_PATH, QT_PLUGIN_PATH, GDK_PIXBUF_MODULE_FILE should be
>> the problems.
>
> None of these environment variables were in my profile, IIRC.  From my
> small experiment, the only common one is XDG_DATA_DIRS.  For instance, I
> had the issue and I just removed the package ’fontconfig’ which fixed
> the issue;  the environment variables reads,
>
> $ guix shell fontconfig --search-paths
> export PATH="/gnu/store/i5rdrrdq4zi98yzcw7rza169ir1zkj6n-profile/bin${PATH:+:}$PATH"
> export XDG_DATA_DIRS="/gnu/store/i5rdrrdq4zi98yzcw7rza169ir1zkj6n-profile/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"
>
> The package ’zbar’ also provides XDG_DATA_DIRS.  Maybe, I am missing
> something.

Just to be sure, do you have default XDG_* environment variables as
configured by guix-install.sh:

--8<---------------cut here---------------start------------->8---
export XCURSOR_PATH="${XCURSOR_PATH:-/usr/local/share/icons:/usr/share/icons}"
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
export XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}"
export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS:-/etc/xdg}"
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}",
--8<---------------cut here---------------end--------------->8---

I think their absence used to cause this sort of behavior, since Guix
setting it to something would wholly override the distribution-provided
files.

-- 
Thanks
Maxim




Added tag(s) moreinfo. Request was from Maxim Cournoyer <maxim.cournoyer@gmail.com> to control@debbugs.gnu.org. (Sat, 18 May 2024 03:13:02 GMT) (full text, mbox, link).


Information forwarded to bug-guix@gnu.org, glv@posteo.net:
bug#59579; Package guix. (Wed, 22 May 2024 15:21:03 GMT) (full text, mbox, link).


Message #24 received at 59579@debbugs.gnu.org (full text, mbox, reply):

From: Simon Tournier <zimon.toutoune@gmail.com>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: 59579@debbugs.gnu.org, glv@posteo.net, 宋文武 <iyzsong@envs.net>, Clément Lassieur <clement@lassieur.org>
Subject: Re: bug#59579: installing zbar prevents gdm to start on Ubuntu 22.04 foreign distro
Date: Wed, 22 May 2024 13:09:14 +0200
Hi Maxim,

On ven., 17 mai 2024 at 23:10, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:

> Just to be sure, do you have default XDG_* environment variables as
> configured by guix-install.sh:

Hum, no I did not have all these default.  It had been introduced after
my install of Guix, I guess. :-)

> --8<---------------cut here---------------start------------->8---
> export XCURSOR_PATH="${XCURSOR_PATH:-/usr/local/share/icons:/usr/share/icons}"
> export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
> export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
> export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
> export XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}"
> export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS:-/etc/xdg}"
> export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}",
> --8<---------------cut here---------------end--------------->8---
>
> I think their absence used to cause this sort of behavior, since Guix
> setting it to something would wholly override the distribution-provided
> files.

Maybe we could add a short paragraph/section about that XDG_* variables
under (guix) Application Setup [1].  Although etc/guix-install.sh
already does the correct thing, it could be helpful if people tweak
stuff, I mean, always good to shortly document typical annoyances. :-)

1: https://guix.gnu.org/manual/devel/en/guix.html#Application-Setup

Cheers,
simon




Information forwarded to bug-guix@gnu.org, glv@posteo.net:
bug#59579; Package guix. (Wed, 22 May 2024 16:17:01 GMT) (full text, mbox, link).


Message #27 received at 59579@debbugs.gnu.org (full text, mbox, reply):

From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Simon Tournier <zimon.toutoune@gmail.com>
Cc: 59579@debbugs.gnu.org, glv@posteo.net, 宋文武 <iyzsong@envs.net>, Clément Lassieur <clement@lassieur.org>
Subject: Re: bug#59579: installing zbar prevents gdm to start on Ubuntu 22.04 foreign distro
Date: Wed, 22 May 2024 12:14:46 -0400
Hi Simon,

Simon Tournier <zimon.toutoune@gmail.com> writes:

> Hi Maxim,
>
> On ven., 17 mai 2024 at 23:10, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
>
>> Just to be sure, do you have default XDG_* environment variables as
>> configured by guix-install.sh:
>
> Hum, no I did not have all these default.  It had been introduced after
> my install of Guix, I guess. :-)
>
>> --8<---------------cut here---------------start------------->8---
>> export XCURSOR_PATH="${XCURSOR_PATH:-/usr/local/share/icons:/usr/share/icons}"
>> export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
>> export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
>> export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
>> export XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}"
>> export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS:-/etc/xdg}"
>> export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}",
>> --8<---------------cut here---------------end--------------->8---
>>
>> I think their absence used to cause this sort of behavior, since Guix
>> setting it to something would wholly override the distribution-provided
>> files.
>
> Maybe we could add a short paragraph/section about that XDG_* variables
> under (guix) Application Setup [1].  Although etc/guix-install.sh
> already does the correct thing, it could be helpful if people tweak
> stuff, I mean, always good to shortly document typical annoyances. :-)
>
> 1: https://guix.gnu.org/manual/devel/en/guix.html#Application-Setup

That'd be a welcome improvement!  It'd be nice before if you could
confirm/infirm whether this was truly the issue, if you still have
access to the VM.

-- 
Thanks,
Maxim




Information forwarded to bug-guix@gnu.org, glv@posteo.net:
bug#59579; Package guix. (Fri, 31 May 2024 16:38:02 GMT) (full text, mbox, link).


Message #30 received at 59579@debbugs.gnu.org (full text, mbox, reply):

From: Simon Tournier <zimon.toutoune@gmail.com>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: 59579@debbugs.gnu.org, glv@posteo.net, Clément Lassieur <clement@lassieur.org>, 宋文武 <iyzsong@envs.net>
Subject: Re: bug#59579: installing zbar prevents gdm to start on Ubuntu 22.04 foreign distro
Date: Fri, 31 May 2024 17:43:10 +0200
Hi Maxim,

On Wed, 22 May 2024 at 12:14, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:

> That'd be a welcome improvement!  It'd be nice before if you could
> confirm/infirm whether this was truly the issue, if you still have
> access to the VM.

Sadly, I do not have access anymore to this configuration.  I just
remember that I tweaked more than once some XDG_* variables.  They
introduced conflicts… I remember one specifically where I was unable to
login under X.

If I am able to replay some scenario, I will propose a paragraph. :-)

Let keep it open for some next weeks and close then since there is not
known issue with the current default provide by guix-install.sh.

Cheers,
simon




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Sep 8 03:25:08 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.