Control: tags -1 + patch

On 2026-06-05 18:20 +0200, Sven Joachim wrote:

> Recently I ran "dpkg --verify" on my system, mainly to look for modified
> conffiles.  Surprisingly it reported a modified file 
> /usr/share/doc/libtsm-dev/changelog.Debian.gz (see also the debsums
> error at the end of this report).
>
> It turns out that /usr/share/doc/libtsm-dev is a symlink to libtsm4 on
> my system but a directory in the package:
>
> ,----
> | $ LANG=C ls -ld /usr/share/doc/libtsm*
> | lrwxrwxrwx 1 root root    7 Apr 29  2022 /usr/share/doc/libtsm-dev -> 
> libtsm4
> | drwxr-xr-x 2 root root 4096 Apr 14 08:42 /usr/share/doc/libtsm4
> | $  dpkg -L libtsm-dev | grep /usr/share/doc
> | /usr/share/doc
> | /usr/share/doc/libtsm-dev
> | /usr/share/doc/libtsm-dev/changelog.Debian.gz
> | /usr/share/doc/libtsm-dev/copyright
> `----
>
> In versions prior to 4.3.0-1, /usr/share/doc/libtsm-dev was a symlink to
> libtsm4, but the override for dh_installdocs in debian/rules which made
> this possible was inadvertently removed in commit 4d64a23de59d ("d/*:
> Switch build system to meson").
>
> To fix that problem, my proposal would be to reinstate the
> dh_installdocs override in debian/rules from version 4.1.0-1 and
> earlier, and bump the version in libtsm-dev.maintscript to 4.5.0 or
> similar, so that on systems where /usr/share/doc/libtsm-dev is currently
> a directory it gets converted back to a symlink (this assumes that
> version 4.5.0-0.1 which is in git will be the next one that is
> uploaded).

I have implemented and tested that proposal, patches are attached. I
have also opened a merge request at
https://salsa.debian.org/debian/libtsm/-/merge_requests/1.

Cheers,
       Sven

From 64a6c88d28f6862a5e2d8f6d1354fb36ed653812 Mon Sep 17 00:00:00 2001
From: Sven Joachim <[email protected]>
Date: Fri, 5 Jun 2026 18:46:41 +0200
Subject: [PATCH 1/2] Convert /usr/share/doc/libtsm-dev back to a symlink

Commit 4d64a23de59d ("d/*: Switch build system to meson")
inadvertently inadvertently dropped the dh_installdocs override from
debian/rules.  Reinstate it and bump the version in
libtsm-dev.maintscript to ensure that the directory is converted back
to a symlink on systems which had versions 4.3.0-1 through 4.4.3-0.1
installed.

Closes: #1138902
---
 debian/libtsm-dev.maintscript | 2 +-
 debian/rules                  | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/libtsm-dev.maintscript b/debian/libtsm-dev.maintscript
index 238ee9f..1c3385d 100644
--- a/debian/libtsm-dev.maintscript
+++ b/debian/libtsm-dev.maintscript
@@ -1 +1 @@
-dir_to_symlink /usr/share/doc/libtsm-dev /usr/share/doc/libtsm4 4.0.2-0.4~
+dir_to_symlink /usr/share/doc/libtsm-dev /usr/share/doc/libtsm4 4.5.0-0.1~
diff --git a/debian/rules b/debian/rules
index a4ea746..10f5b19 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,3 +20,7 @@ endif
 
 override_dh_auto_configure:
 	dh_auto_configure -- $(CONFIGURE_FLAGS)
+
+override_dh_installdocs:
+	dh_installdocs -plibtsm-dev --link-doc=libtsm4
+	dh_installdocs --remaining-packages
-- 
2.53.0

From 80fee4f44373e35625a8eb86607f2bc7e0fe5bcc Mon Sep 17 00:00:00 2001
From: Sven Joachim <[email protected]>
Date: Fri, 5 Jun 2026 18:56:59 +0200
Subject: [PATCH 2/2] Add debian/changelog entry

---
 debian/changelog | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 802077b..b593124 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,15 @@
 libtsm (4.5.0-0.1) unstable; urgency=medium
 
+  [ Boyuan Yang ]
   * Non-maintainer upload.
   * New upstream release. (Closes: #1138246)
   * debian/control: Bump Standards-Version to 4.7.4.
   * debian/libtsm4.symbols: Record new symbols.
 
+  [ Sven Joachim ]
+  * Convert /usr/shared/doc/libtsm-dev back to a symlink.
+    (Closes: #1138902)
+
  -- Boyuan Yang <[email protected]>  Wed, 03 Jun 2026 13:54:39 -0400
 
 libtsm (4.4.3-0.1) unstable; urgency=medium
-- 
2.53.0

Reply via email to