diff -Nru tracker-miners-3.3.3/debian/changelog tracker-miners-3.3.3/debian/changelog --- tracker-miners-3.3.3/debian/changelog 2023-11-10 07:53:21.000000000 +0000 +++ tracker-miners-3.3.3/debian/changelog 2023-12-01 04:27:37.000000000 +0000 @@ -1,3 +1,14 @@ +tracker-miners (3.3.3-0ubuntu0.20.04.2) jammy; urgency=medium + + [ Denison Barbosa ] + * Removes install section from tracker-extract.service to prevent it + from being enabled by systemd. It is a helper service that should be + managed by tracker-miner-fs.service, not systemd. (LP: #1779890) + - d/p/lp1779890-remove-install-section-from-tracker-extract-service.patch + - d/tracker-extract.postinst + + -- Matthew Ruffell Fri, 01 Dec 2023 17:27:37 +1300 + tracker-miners (3.3.3-0ubuntu0.20.04.1) jammy-security; urgency=medium * Updated to upstream 3.3.3 version to fix sandbox bypass issue diff -Nru tracker-miners-3.3.3/debian/patches/lp1779890-remove-install-section-from-tracker-extract-service.patch tracker-miners-3.3.3/debian/patches/lp1779890-remove-install-section-from-tracker-extract-service.patch --- tracker-miners-3.3.3/debian/patches/lp1779890-remove-install-section-from-tracker-extract-service.patch 1970-01-01 00:00:00.000000000 +0000 +++ tracker-miners-3.3.3/debian/patches/lp1779890-remove-install-section-from-tracker-extract-service.patch 2023-12-01 04:27:37.000000000 +0000 @@ -0,0 +1,45 @@ +commit 29a2320c1e4f0f7ced3c3e9d4d1c06c51518c1f3 +Author: Denison Barbosa +Date: Tue, 21 Mar 2023 15:04:28 +0000 +Subject: Removing [Install] section from tracker-extract-3.service + Having WantedBy=default.target was triggering the service before the session + environment variable are set in gnome-session. + + This service relies on gvfs-daemon.service and by starting it before the + environment variables are set, some important variables like KRB5CCNAME are + missing. + + This means that the daemon won't have access to it when trying to + mount shared folders through the network, creating problems like requesting + credentials when trying to gio mount a samba share, despite having a valid + kerberos ticket on the machine. + + Since this is a helper service that is meant to be controlled by + "tracker-miner-fs", the install section shouldn't exist, as it allows + the service to enabled, meaning that its execution would be + controlled by systemd. +Bug-Ubuntu: https://bugs.launchpad.net/bugs/1779890 +Bug: https://gitlab.gnome.org/GNOME/tracker-miners/-/merge_requests/442 +Origin: backport, https://gitlab.gnome.org/GNOME/tracker-miners/-/commit/29a2320c1e4f0f7ced3c3e9d4d1c06c51518c1f3 +Last-Update: 2023-12-01 + +Index: tracker-miners-3.3.3/src/tracker-extract/tracker-extract.service.in +=================================================================== +--- tracker-miners-3.3.3.orig/src/tracker-extract/tracker-extract.service.in 2023-12-01 17:26:28.123898087 +1300 ++++ tracker-miners-3.3.3/src/tracker-extract/tracker-extract.service.in 2023-12-01 17:26:28.119898023 +1300 +@@ -1,6 +1,7 @@ + [Unit] + Description=Tracker metadata extractor + ConditionUser=!root ++After=gnome-session.target + + [Service] + Type=dbus +@@ -11,5 +12,5 @@ + RestartPreventExitStatus=SIGKILL + Slice=background.slice + +-[Install] +-WantedBy=default.target ++# This is a helper service that is controlled by "tracker-miner-fs-3.service". ++# It's not supposed to be enabled or started manually. diff -Nru tracker-miners-3.3.3/debian/patches/series tracker-miners-3.3.3/debian/patches/series --- tracker-miners-3.3.3/debian/patches/series 2022-03-21 16:20:25.000000000 +0000 +++ tracker-miners-3.3.3/debian/patches/series 2023-12-01 04:27:37.000000000 +0000 @@ -1,2 +1,3 @@ Drop-file-notifier-and-miner-fs-tests.patch psx-game-image-1.expected.json-Mark-as-XFAIL.patch +lp1779890-remove-install-section-from-tracker-extract-service.patch diff -Nru tracker-miners-3.3.3/debian/tracker-extract.postinst tracker-miners-3.3.3/debian/tracker-extract.postinst --- tracker-miners-3.3.3/debian/tracker-extract.postinst 2022-03-21 16:20:25.000000000 +0000 +++ tracker-miners-3.3.3/debian/tracker-extract.postinst 2023-12-01 04:27:37.000000000 +0000 @@ -24,6 +24,10 @@ deb-systemd-helper --user purge 'tracker-extract.service' >/dev/null || true deb-systemd-helper --user unmask 'tracker-extract.service' >/dev/null || true fi + if dpkg --compare-versions "$2" le-nl "3.3.3-0ubuntu0.20.04.2"; then + deb-systemd-helper --user purge 'tracker-extract-3.service' >/dev/null || true + deb-systemd-helper --user unmask 'tracker-extract-3.service' >/dev/null || true + fi ;; abort-upgrade|abort-remove|abort-deconfigure)