[Debian-on-mobile-maintainers] Bug#1036720: unblock: sxmo-utils/1.12.0-7

Jochen Sprickerhof jspricke at debian.org
Wed May 24 18:34:48 BST 2023


Package: release.debian.org
Severity: normal
User: release.debian.org at packages.debian.org
Usertags: unblock
X-Debbugs-Cc: sxmo-utils at packages.debian.org
Control: affects -1 + src:sxmo-utils

Please unblock package sxmo-utils

[ Reason ]
Removing sxmo-utils but not purging it leaves behind a
/etc/profile.d/sxmo_init.sh that fails to run cause it can't find
dependent files.

[ Impact ]
Users that removed sxmo-utils can't login any longer.

[ Tests ]
Manual tests.

[ Risks ]
None

[ Checklist ]
  [X] all changes are documented in the d/changelog
  [X] I reviewed all changes and I approve them
  [X] attach debdiff against the package in testing

unblock sxmo-utils/1.12.0-7
-------------- next part --------------
diff --git a/debian/changelog b/debian/changelog
index fdc3418..ffb3f4f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+sxmo-utils (1.12.0-7) unstable; urgency=medium
+
+  * Add patch to fix login when sxmo is removed
+
+ -- Jochen Sprickerhof <jspricke at debian.org>  Wed, 24 May 2023 19:15:29 +0200
+
 sxmo-utils (1.12.0-6) unstable; urgency=medium
 
   * Replace pn by pnc
diff --git a/debian/patches/0023-Don-t-fail-when-sxmo-utils-is-removed-but-not-purged.patch b/debian/patches/0023-Don-t-fail-when-sxmo-utils-is-removed-but-not-purged.patch
new file mode 100644
index 0000000..1cfd500
--- /dev/null
+++ b/debian/patches/0023-Don-t-fail-when-sxmo-utils-is-removed-but-not-purged.patch
@@ -0,0 +1,20 @@
+From: Jochen Sprickerhof <jspricke at debian.org>
+Date: Wed, 24 May 2023 19:12:45 +0200
+Subject: Don't fail when sxmo-utils is removed (but not purged)
+
+---
+ configs/profile.d/sxmo_init.sh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/configs/profile.d/sxmo_init.sh b/configs/profile.d/sxmo_init.sh
+index d4792e6..3906c7f 100644
+--- a/configs/profile.d/sxmo_init.sh
++++ b/configs/profile.d/sxmo_init.sh
+@@ -4,6 +4,7 @@
+ 
+ # This script is meant to be sourced on login shells
+ # shellcheck source=scripts/core/sxmo_common.sh
++test -f /usr/bin/sxmo_common.sh || return 0
+ . sxmo_common.sh
+ 
+ _sxmo_is_running() {
diff --git a/debian/patches/series b/debian/patches/series
index 5e3ae5a..21d7a8b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -20,3 +20,4 @@ no_doas.patch
 0020-Fix-Bluetooth-toogle.patch
 0021-replace-pn-with-pnc.patch
 0022-add-missing-pn-pnc.patch
+0023-Don-t-fail-when-sxmo-utils-is-removed-but-not-purged.patch


More information about the Debian-on-mobile-maintainers mailing list