Control: tags -1 + patch

On Fri, 12 Dec 2025 14:52:17 +0100 [email protected] wrote:
Source: syncthing
Version: 1.29.5~ds1-3
Severity: normal
User: [email protected]
Usertags: dh_movetousr_removal

Hi,

your package syncthing either Build-Depends on dh-sequence-movetousr
or uses dh_movetousr conditionally to move files from aliased
locations like /sbin, /bin or /lib to the canonical location in /usr.

Eventually, we would like to get rid of this debhelper addon.
Packages should use the canonical paths without any postprocessing.

This means, files are installed directly into /usr.

Please note, that such a change must not be backported to bookworm or
older. If you intend to provide such backports, these changes must be
reverted for those releases. If this means an undue burden on your
workflow our recommendation is to postpone this cleanup.

The motivation for this bug report is, to inform maintainers, that
installing files into the canonical location explicitly, is now the
preferred approach and dh_movetousr is now a deprecated tool.

The goal is, to have dh_movetousr removed after forky is released. We
can revise this plan, if needed. Please keep this timeline in mind
and let us know if this doesn't work for you.

For more information see [1].

If you have further questions, there is an IRC channel named
#debian-usrmerge on OFTC.

Regards,

Michael

[1] https://lists.debian.org/debian-devel/2025/11/msg00245.html



Please find attached a patch which implements this change.

Regards,
Michael
diff -Nru syncthing-1.29.5~ds1/debian/changelog 
syncthing-1.29.5~ds1/debian/changelog
--- syncthing-1.29.5~ds1/debian/changelog       2026-03-14 23:13:24.000000000 
+0100
+++ syncthing-1.29.5~ds1/debian/changelog       2026-07-04 22:56:57.000000000 
+0200
@@ -1,3 +1,10 @@
+syncthing (1.29.5~ds1-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Avoid usage of dh_movetousr (Closes: #1122780)
+
+ -- Michael Biebl <[email protected]>  Sat, 04 Jul 2026 22:56:57 +0200
+
 syncthing (1.29.5~ds1-4) unstable; urgency=medium
 
   * Team upload.
diff -Nru syncthing-1.29.5~ds1/debian/control 
syncthing-1.29.5~ds1/debian/control
--- syncthing-1.29.5~ds1/debian/control 2026-03-14 23:12:24.000000000 +0100
+++ syncthing-1.29.5~ds1/debian/control 2026-07-04 22:56:56.000000000 +0200
@@ -11,7 +11,6 @@
  debhelper-compat (= 13),
  dh-exec,
  dh-sequence-golang,
- dh-sequence-movetousr,
  golang-any (>= 2:1.16~),
 # Go libs
  genxdr,
diff -Nru syncthing-1.29.5~ds1/debian/syncthing.install 
syncthing-1.29.5~ds1/debian/syncthing.install
--- syncthing-1.29.5~ds1/debian/syncthing.install       2026-03-14 
23:02:33.000000000 +0100
+++ syncthing-1.29.5~ds1/debian/syncthing.install       2026-07-04 
22:56:57.000000000 +0200
@@ -1,7 +1,7 @@
 #!/usr/bin/dh-exec
 
 # service files
-etc/linux-systemd/system/[email protected] lib/systemd/system
+etc/linux-systemd/system/[email protected] usr/lib/systemd/system
 etc/linux-systemd/user/syncthing.service usr/lib/systemd/user
 
 # firewall

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to