#1122775 postgresql-common: Please remove/replace usage of dh_movetousr

#1122775#5
Date:
2025-12-12 13:52:17 UTC
From:
To:
Hi,

your package postgresql-common 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

#1122775#8
Date:
2025-12-12 14:15:33 UTC
From:
To:
Re: biebl@debian.org

Hi,

I have several packages that use this pattern:

	# move unit files to /usr on systems that support it
	if test -x /usr/bin/dh_movetousr; then dh_movetousr; fi

This works well for backports. Please keep dh_movetousr until the last
release without merged usr is out of LTS support.

Christoph

#1122775#13
Date:
2026-07-04 15:08:56 UTC
From:
To:
Hi Christoph,

attached is a patch which should address this issue.

Regards
Michael

#1122775#18
Date:
2026-07-04 16:41:50 UTC
From:
To:
Re: biebl@debian.org


Hi Michael,

bullseye is EOL in a few weeks, but bookworm is still there for a few
years. I would like to keep this pattern until the last release
without merged usr is out of support.

	# move unit files to /usr on systems that support it
	if test -x /usr/bin/dh_movetousr; then dh_movetousr; fi

Or does your original warning no longer apply?

Christoph

#1122775#23
Date:
2026-07-04 20:01:42 UTC
From:
To:
Hi Christoph

Am 04.07.26 um 18:41 schrieb Christoph Berg:

The remarks regarding bookworm backports still apply.

Sorry, I only checked tracker.d.org but not the bug tracker, so I missed
your earlier reply. Otherwise I wouldn't have bothered you with this patch.

Don't worry, we don't want to make this unnecessarily unpleasant for
maintainers, so dh_movetousr will remain as long as it is useful/sensible.


For most packages, backporting to bookworm is not an issue though, which
is why I started to attach patches to hopefully get some progress.

Regards,
Michael