Bug#1113704: localsearch: /etc/systemd/user/gnome-session.target.wants/localsearch-3.service disappears after package rename

Vincent Lefevre vincent at vinc17.net
Mon Sep 1 13:47:03 BST 2025


On 2025-09-01 14:27:17 +0200, Vincent Lefevre wrote:
> But if tracker-extract is removed without being upgraded first
> (this occurs with aptitude, which detects that tracker-extract
> is no longer needed from dependencies[*]), then the symbolic link
> is removed when tracker-extract is purged. So this is a bug in
> either localsearch 3.8.2-6 or tracker-extract 3.8.2-4.

Or init-system-helpers. The /var/lib/dpkg/info/tracker-extract.postrm
file from tracker-extract 3.8.2-4 has

# Automatically added by dh_installsystemduser/13.24.1
if [ "$1" = "purge" ]; then
        if [ -z "$DPKG_ROOT" ] && [ -x "/usr/bin/deb-systemd-helper" ] ; then
                deb-systemd-helper --user purge 'localsearch-3.service' >/dev/null || true
        fi
fi
# End automatically added section

I suppose that the purge of the service should occur *only if* the
package "owns" the service.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)



More information about the pkg-gnome-maintainers mailing list