installing zbar prevents gdm to start on Ubuntu 22.04 foreign distro

  • Open
  • quality assurance status badge
Details
4 participants
  • Clément Lassieur
  • 宋文武
  • Maxim Cournoyer
  • Simon Tournier
Owner
Somebody
Submitted by
Clément Lassieur
Severity
serious

Debbugs page

C
C
Clément Lassieur wrote on 25 Nov 2022 09: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 09: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 09: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
宋
宋文武 wrote on 30 Jan 2023 22:23
(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 01: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
M
M
Maxim Cournoyer wrote on 17 May 20:10 -0700
(name . zimoun)(address . zimon.toutoune@gmail.com)
87ttivvmpq.fsf@gmail.com
Hi,

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

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

Toggle snippet (9 lines)
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}",

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
M
M
Maxim Cournoyer wrote on 17 May 20:11 -0700
control message for bug #59579
(address . control@debbugs.gnu.org)
87seyfvmpk.fsf@gmail.com
tags 59579 + moreinfo
quit
S
S
Simon Tournier wrote on 22 May 04:09 -0700
Re: bug#59579: installing zbar prevents gdm to start on Ubuntu 22.04 foreign distro
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
875xv63xyd.fsf@gmail.com
Hi Maxim,

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

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

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


Cheers,
simon
M
M
Maxim Cournoyer wrote on 22 May 09:14 -0700
(name . Simon Tournier)(address . zimon.toutoune@gmail.com)
87bk4x4ydl.fsf@gmail.com
Hi Simon,

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

Toggle quote (31 lines)
> 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
S
S
Simon Tournier wrote on 31 May 08:43 -0700
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
878qzq3s35.fsf@gmail.com
Hi Maxim,

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

Toggle quote (4 lines)
> 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
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 59579@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 59579
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch