installing zbar prevents gdm to start on Ubuntu 22.04 foreign distro

  • Open
  • quality assurance status badge
Details
3 participants
  • Clément Lassieur
  • ???
  • Simon Tournier
Owner
Somebody
Submitted by
Clément Lassieur
Severity
serious
C
C
Clément Lassieur wrote on 25 Nov 2022 18:45
(address . bug-guix@gnu.org)(address . glv@posteo.net)
5e1c0502-24b8-42b6-9adc-698e0bf1822c@app.fastmail.com
Severity: serious

Steps to reproduce:

Toggle quote (5 lines)
> - install Ubuntu 22.04
> - install Guix package manager
> - guix package -i zbar
> - reboot

Expected result

Toggle quote (2 lines)
> boot

result

Toggle quote (2 lines)
> 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.
Attachment: file
C
C
Clément Lassieur wrote on 25 Nov 2022 18:49
Re:
(name . GNU bug tracker automated control server)(address . control@debbugs.gnu.org)
fcd1ba31-0d15-4f7f-aa12-0a340350f4af@app.fastmail.com
owner 59579 glv@posteo.net
Attachment: file
S
S
Simon Tournier wrote on 26 Jan 2023 18:10
Re: bug#59579: installing zbar prevents gdm to start on Ubuntu 22.04 foreign distro
(name . Clément Lassieur)(address . clement@lassieur.org)
868rhpql0f.fsf@gmail.com
Hi,

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

Toggle quote (6 lines)
> 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
?
(name . Simon Tournier)(address . zimon.toutoune@gmail.com)
875ycnz0he.fsf@envs.net
Simon Tournier <zimon.toutoune@gmail.com> writes:

Toggle quote (20 lines)
> 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:
Toggle snippet (20 lines)
$ 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

I think GUIX_GTK3_PATH, QT_PLUGIN_PATH, GDK_PIXBUF_MODULE_FILE should be
the problems.
Z
Z
zimoun wrote on 31 Jan 2023 10:52
(name . ???)(address . iyzsong@envs.net)
86k013vxn0.fsf@gmail.com
Hi,

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

Toggle quote (4 lines)
> 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. :-)

Toggle quote (3 lines)
> 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,

Toggle snippet (5 lines)
$ 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.


Cheers,
simon
?