Comment 82 for bug 1779890

Revision history for this message
Matthew Ruffell (mruffell) wrote :

Performing verification for Mantic.

Since Mantic already has the patch that changes the systemd unit file, any clean mantic install will see no changes whatsoever.

Lets prove this.

Install a fresh Mantic Desktop VM. It has tracker-extract 3.4.6-0ubuntu0.23.10.1 from -updates installed.

On boot, check the environ of gvfs:

$ cat /proc/$(pidof gvfsd)/environ | xargs --null -n1
HOME=/home/ubuntu
LANG=en_US.UTF-8
LOGNAME=ubuntu
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
SHELL=/bin/bash
SYSTEMD_EXEC_PID=2467
USER=ubuntu
XDG_RUNTIME_DIR=/run/user/1000
GTK_MODULES=gail:atk-bridge
QT_ACCESSIBILITY=1
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.ubuntu.com
DESKTOP_SESSION=ubuntu
GDMSESSION=ubuntu
GNOME_SHELL_SESSION_MODE=ubuntu
IM_CONFIG_PHASE=1
PWD=/home/ubuntu
SHLVL=0
USERNAME=ubuntu
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=wayland
_=/usr/bin/gnome-session
MANAGERPID=2231
INVOCATION_ID=120a4f32773f453bbcf40068665ed76a
JOURNAL_STREAM=8:26214

Next, we check to see if there are any systemd unit files for it at all:

ubuntu@ubuntu:~$ find /etc/systemd/user -name tracker-extract-3.service
ubuntu@ubuntu:~$ find /var/lib/systemd/deb-systemd-user-helper-enabled -name tracker-extract-3.service

No output for either.

I then enabled -proposed, and installed tracker-extract 3.4.6-0ubuntu0.23.10.2.

Checking environ for gvfs:

$ cat /proc/$(pidof gvfsd)/environ | xargs --null -n1
HOME=/home/ubuntu
LANG=en_US.UTF-8
LOGNAME=ubuntu
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
SHELL=/bin/bash
SYSTEMD_EXEC_PID=1539
USER=ubuntu
XDG_RUNTIME_DIR=/run/user/1000
GTK_MODULES=gail:atk-bridge
QT_ACCESSIBILITY=1
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.ubuntu.com
DESKTOP_SESSION=ubuntu
GDMSESSION=ubuntu
GNOME_SHELL_SESSION_MODE=ubuntu
IM_CONFIG_PHASE=1
PWD=/home/ubuntu
SHLVL=0
SSH_AGENT_LAUNCHER=openssh
SSH_AUTH_SOCK=/run/user/1000/openssh_agent
USERNAME=ubuntu
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=wayland
_=/usr/bin/gnome-session
MANAGERPID=1344
INVOCATION_ID=e8ebf3ac10d24be1b9596aabd9ac53a3
JOURNAL_STREAM=8:22513

Its the same.

Again, checking for any unit files:

ubuntu@ubuntu:~$ find /etc/systemd/user -name tracker-extract-3.service
ubuntu@ubuntu:~$ find /var/lib/systemd/deb-systemd-user-helper-enabled -name tracker-extract-3.service

Again, no output. For mantic users who clean installed, 3.4.6-0ubuntu0.23.10.2 is safe and causes no changes.

The interesting case for verification then becomes doing a series upgrade from jammy running tracker-extract 3.3.3-0ubuntu0.20.04.1 or earlier, to mantic.

Install Jammy Desktop. With tracker-extract 3.3.3-0ubuntu0.20.04.1 from -updates, we see the systemd unit file symlinks present in default.target.wants.

aduser@ubuntu:~$ ll /etc/systemd/user/default.target.wants/tracker-extract-3.service
lrwxrwxrwx 1 root root 47 Feb 10 16:12 /etc/systemd/user/default.target.wants/tracker-extract-3.service -> /usr/lib/systemd/user/tracker-extract-3.service
aduser@ubuntu:~$ ll /var/lib/systemd/deb-systemd-user-helper-enabled/default.target.wants/tracker-extract-3.service
-rw-r--r-- 1 root root 0 Aug 8 2023 /var/lib/systemd/deb-systemd-user-helper-enabled/default.target.wants/tracker-extract-3.service
aduser@ubuntu:~$ ll /var/lib/systemd/deb-systemd-user-helper-enabled/tracker-extract-3.service.dsh-also
-rw-r--r-- 1 root root 65 Feb 10 16:30 /var/lib/systemd/deb-systemd-user-helper-enabled/tracker-extract-3.service.dsh-also

I then performed a series upgrade to mantic, with tracker-extract 3.4.6-0ubuntu0.23.10.1 from -updates.

Looking at the environ for gvfs:

$ cat /proc/$(pidof gvfsd)/environ | xargs --null -n1
HOME=/home/aduser
LANG=en_NZ.UTF-8
LANGUAGE=en_NZ:en
LOGNAME=aduser
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
SHELL=/bin/bash
SYSTEMD_EXEC_PID=1542
USER=aduser
XDG_RUNTIME_DIR=/run/user/524601104
GTK_MODULES=gail:atk-bridge
QT_ACCESSIBILITY=1
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/524601104/bus
MANAGERPID=1445
INVOCATION_ID=357a32f080d2431b8eeb0d5fe9f96dba
JOURNAL_STREAM=8:25218

These old default.target.wants unit files are left behind, incorrectly pointing to default.target.wants.

aduser@ubuntu$ ll /etc/systemd/user/default.target.wants/tracker-extract-3.service
lrwxrwxrwx 1 root root 47 Feb 10 16:12 /etc/systemd/user/default.target.wants/tracker-extract-3.service -> /usr/lib/systemd/user/tracker-extract-3.service
aduser@ubuntu:~$ ll /var/lib/systemd/deb-systemd-user-helper-enabled/default.target.wants/tracker-extract-3.service
-rw-r--r-- 1 root root 0 Aug 8 2023 /var/lib/systemd/deb-systemd-user-helper-enabled/default.target.wants/tracker-extract-3.service
aduser@ubuntu:~$ ll /var/lib/systemd/deb-systemd-user-helper-enabled/tracker-extract-3.service.dsh-also
-rw-r--r-- 1 root root 65 Feb 10 16:30 /var/lib/systemd/deb-systemd-user-helper-enabled/tracker-extract-3.service.dsh-also

A bit of a shame that the timestamps are untouched from the Jammy install, but that is how it is.

I then enabled -proposed, and installed tracker-extract 3.4.6-0ubuntu0.23.10.2 and rebooted.

Looking at the environ for gvfs now:

$ cat /proc/$(pidof gvfsd)/environ | xargs --null -n1
HOME=/home/aduser
LANG=en_NZ.UTF-8
LANGUAGE=en_NZ:en
LOGNAME=aduser
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
SHELL=/bin/bash
SYSTEMD_EXEC_PID=1630
USER=aduser
XDG_RUNTIME_DIR=/run/user/524601104
GTK_MODULES=gail:atk-bridge
QT_ACCESSIBILITY=1
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/524601104/bus
DEBUGINFOD_URLS=https://debuginfod.ubuntu.com
DESKTOP_SESSION=ubuntu
GDMSESSION=ubuntu
GNOME_SHELL_SESSION_MODE=ubuntu
IM_CONFIG_PHASE=1
PWD=/home/aduser
SHLVL=0
SSH_AGENT_LAUNCHER=openssh
SSH_AUTH_SOCK=/run/user/524601104/openssh_agent
USERNAME=aduser
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=wayland
_=/usr/bin/gnome-session
MANAGERPID=1443
INVOCATION_ID=46cb463dcad04b2d91f7237e6d3a12a0
JOURNAL_STREAM=8:25023

The old systemd unit files have been cleaned up properly:

aduser@ubuntu$ ll /etc/systemd/user/default.target.wants/tracker-extract-3.service
ls: cannot access '/etc/systemd/user/default.target.wants/tracker-extract-3.service': No such file or directory
aduser@ubuntu:~$ ll /var/lib/systemd/deb-systemd-user-helper-enabled/default.target.wants/tracker-extract-3.service
ls: cannot access '/var/lib/systemd/deb-systemd-user-helper-enabled/default.target.wants/tracker-extract-3.service': No such file or directory
aduser@ubuntu:~$ ll /var/lib/systemd/deb-systemd-user-helper-enabled/tracker-extract-3.service.dsh-also
ls: cannot access '/var/lib/systemd/deb-systemd-user-helper-enabled/tracker-extract-3.service.dsh-also': No such file or directory

The package in -proposed now cleans up the old systemd unit files correctly. Happy to mark as verified for mantic.