Package: phosh
Version: 0.4.3-1
Severity: grave
Justification: renders package unusable
Hello,
On a freshly created Debian sid live system:
```
sudo mmdebstrap --include=linux-image-amd64,live-boot,xserver-xorg-video-
all,phosh --arch amd64 sid debian-live-root http://ftp.pl.debian.org/debian/
sudo chroot debian-live-root passwd
sudo chroot debian-live-root useradd -m -s /bin/bash -p $(openssl passwd -1
123456) user
sudo chroot debian-live-root systemctl enable phosh
cp debian-live-root/vmlinuz .; cp debian-live-root/initrd.img .
sudo mksquashfs debian-live-root root.squashfs -comp lz4
python3 -m http.server -b localhost 8080
qemu-system-x86_64 -machine accel=kvm -m 4G -device virtio-net-pci,netdev=net0
-serial stdio -monitor vc -netdev
user,id=net0,hostfwd=tcp::-:22,guestfwd=tcp:10.0.2.252:8080-tcp:localhost:8080,hostname=debian-
live -kernel ./vmlinuz -initrd ./initrd.img -append "console=ttyS0
ip=frommedia boot=live nopersistence
fetch=http://10.0.2.252:8080/root.squashfs;
```
(last command is to start the test VM)
Phosh doesn't start. On the console I see:
```
traps: phoc[362] trap int3 ip:7f684a6d9585 sp:7ffccc2cfe90 error:0 in
libglib-2.0.so.0.6400.4[7f684a69f000+81000]
```
When attempting to start it manually:
```
user@debian:~$ phoc
(phoc:468): phoc-wlroots-CRITICAL **: 18:03:33.384:
[backend/session/logind.c:760] Failed to get seat id: No data available
(phoc:468): phoc-wlroots-CRITICAL **: 18:03:33.393: [backend/session/direct-
ipc.c:30] Do not have root privileges; cannot become DRM master
(phoc:468): phoc-wlroots-CRITICAL **: 18:03:33.396:
[backend/session/session.c:96] Failed to load session backend
(phoc:468): phoc-wlroots-CRITICAL **: 18:03:33.405: [backend/backend.c:286]
Failed to start a DRM session
(phoc:468): phoc-server-ERROR **: 18:03:33.407: Could not create backend
[ 76.891092] traps: phoc[468] trap int3 ip:7feeea992585 sp:7ffe555d1130
error:0 in libglib-2.0.so.0.6400.4[7feeea958000+81000]
Trace/breakpoint trap
```
```
user@debian:~$ phoc -E '/usr/bin/phosh -U' -C /usr/share/phosh/phoc.ini
(phoc:517): phoc-wlroots-CRITICAL **: 18:04:01.976:
[backend/session/logind.c:760] Failed to get seat id: No data available
(phoc:517): phoc-wlroots-CRITICAL **: 18:04:01.978: [backend/session/direct-
ipc.c:30] Do not have root privileges; cannot become DRM master
(phoc:517): phoc-wlroots-CRITICAL **: 18:04:01.981:
[backend/session/session.c:96] Failed to load session backend
(phoc:517): phoc-wlroots-CRITICAL **: 18:04:01.983: [backend/backend.c:286]
Failed to start a DRM session
(phoc:517): phoc-server-ERROR **: 18:04:01.986: Could not create backend
```
Starting phosh as root doesn't help:
```
root@debian:~# phosh
/usr/bin/phosh: 12: gnome-session: not found
(phoc:558): phoc-wlroots-CRITICAL **: 18:06:37.488:
[backend/session/logind.c:760] Failed to get seat id: No data available
(phoc:558): phoc-wlroots-CRITICAL **: 18:06:37.490:
[backend/session/direct.c:176] Could not get current tty number: Inappropriate
ioctl for device
(phoc:558): phoc-wlroots-CRITICAL **: 18:06:37.494:
[backend/session/session.c:96] Failed to load session backend
(phoc:558): phoc-wlroots-CRITICAL **: 18:06:37.496: [backend/backend.c:195]
failed to start a session
(phoc:558): phoc-wlroots-CRITICAL **: 18:06:37.498: [backend/backend.c:235]
failed to start backend 'drm'
(phoc:558): phoc-server-ERROR **: 18:06:37.500: Could not create backend
```
root@debian:~# phoc -E '/usr/bin/phosh -U' -C /usr/share/phosh/phoc.ini
(phoc:611): phoc-wlroots-CRITICAL **: 18:07:10.418:
[backend/session/logind.c:760] Failed to get seat id: No data available
(phoc:611): phoc-wlroots-CRITICAL **: 18:07:10.421:
[backend/session/direct.c:176] Could not get current tty number: Inappropriate
ioctl for device
(phoc:611): phoc-wlroots-CRITICAL **: 18:07:10.425:
[backend/session/session.c:96] Failed to load session backend
(phoc:611): phoc-wlroots-CRITICAL **: 18:07:10.428: [backend/backend.c:286]
Failed to start a DRM session
(phoc:611): phoc-server-ERROR **: 18:07:10.431: Could not create backend
```
It's also possible that I missed an important step, but I couldn't find
anything related in the doc.
Michel Le Bihan
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (700, 'testing'), (650, 'unstable'), (600, 'experimental'), (500,
'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.7.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages phosh depends on:
ii dconf-gsettings-backend [gsettings-backend] 0.36.0-1
ii fonts-lato 2.0-2
ii gsettings-desktop-schemas3.36.1-1
ii libc62.31-2
ii libcairo21.16.0-4
pn libfeedback-0.0-0