#1057089 bookworm-pu: package usrmerge/37~deb12u1

#1057089#5
Date:
2023-11-29 14:46:30 UTC
From:
To:
[ Reason ]
Improve the usrmerge experience in bookworm.
A few more ancient packages were found that need to be removed first for
usrmerge to succeed, add versioned Breaks against them.
Depending on the time a system was bootstrapped or converted, there may
be biarch directories/links not owned by any package
(e.g. /usr/libx32 and /libx32 -> /usr/libx32)
Since these are now handled by the respective packages from src:glibc,
bootstrapping and conversion no longer create them and we can clean them
up if they are empty and not owned by a package.
Clarify errors in case something goes wrong during usrmerge conversion.

[ Impact ]
Unclear errors if something fails.
Failing usrmerge conversion if certain ancient packages are installed.
Leftover unowned files that may disappear on certain upgrade paths and
confuse CI tools.
Inconsistent handling of /etc/shells and shells.state.

[ Tests ]
Local piuparts tests of bookworm (w/ updated package) and various
distupgrade tests from bullseye (or earlier) to bookworm (w/ updated
package).

[ Risks ]
Low.

[ Checklist ]
  [*] *all* changes are documented in the d/changelog
  [*] I reviewed all changes and I approve them
  [*] attach debdiff against the package in (old)stable
  [*] the issue is verified as fixed in unstable

[ Changes ]

+usrmerge (37~deb12u1) bookworm; urgency=medium
+
+  * Rebuild for bookworm.
+
+ -- Andreas Beckmann <anbe@debian.org>  Mon, 27 Nov 2023 11:35:49 +0100
+
+usrmerge (37) unstable; urgency=medium
+
+  [ Johannes Schauer Marin Rodrigues ]
+  * Use $DPKG_ROOT in usr-is-merged.postinst. (Closes: #1050755)
+
+ -- Marco d'Itri <md@linux.it>  Tue, 29 Aug 2023 02:14:10 +0200
+
+usrmerge (36) unstable; urgency=medium
+
+  * Added code by Andreas Beckmann to clean up the biarch libraries
+    directories when they are not needed. (Closes: #1038853)
+  * Changed postinst to not run convert-etc-shells again on already
+    converted systems and to run update-shells to make sure that the
+    new shells.state file introduced in bookworm is up to date.
+    (Closes: #1033167)
+  * Improved the instructions to deal with a mounted /lib/modules/,
+    which can also happen on some Xen-based systems. (Closes: 1034346)
+  * Greatly improved the error messages when commands execution fails
+    (see #1037362).
+  * Added a versioned conflict with libc-bin, only relevant for the
+    conversion script. (Closes: #1037362)
+  * Added a versioned conflict with dhcpcd. (Closes: #1038832)
+  * Added a versioned conflict with libparted1.8-10. (Closes: #1038832)
+  * Added a versioned conflict with lustre-utils. (Closes: #1038832)
+
+ -- Marco d'Itri <md@linux.it>  Sun, 27 Aug 2023 13:56:49 +0200

 convert-usrmerge              | 34 +++++++++++++++++++---------------
 debian/README.Debian          |  6 ++----
 debian/changelog              | 33 +++++++++++++++++++++++++++++++++
 debian/control                |  9 ++++++++-
 debian/usr-is-merged.postinst | 28 ++++++++++++++++++++++++++++
 debian/usrmerge.postinst      | 28 ++++++++++++++++++++++++++--
 6 files changed, 116 insertions(+), 22 deletions(-)

[ Other info ]
This is a rebuild of a package that was previously in sid and testing.
(The current version (38) in sid made usrmerge mandatory in all cases
and is not applicable to bookworm (which supports the usrmerge opt-out.)

Andreas

#1057089#12
Date:
2023-11-29 15:08:10 UTC
From:
To:
Hi Andreas,

This looks like a good idea to me, and the diff looks good - but
assuming you did mean bookworm, as the changelog implies, the
tags/title are referencing bullseye.

#1057089#21
Date:
2023-11-30 08:49:33 UTC
From:
To:
Great idea, thank you for working on this!
#1057089#26
Date:
2023-12-21 22:07:59 UTC
From:
To:
Control: tag -1 confirmed

Please go ahead.

Thanks,

#1057089#33
Date:
2024-01-15 08:17:35 UTC
From:
To:
package release.debian.org
tags 1057089 = bookworm pending
thanks

Hi,

The upload referenced by this bug report has been flagged for acceptance into the proposed-updates queue for Debian bookworm.

Thanks for your contribution!

Upload details
==============

Package: usrmerge
Version: 37~deb12u1

Explanation: clean up biarch directories when not needed; don't run convert-etc-shells again on converted systems; handle mounted /lib/modules on Xen systems; improve error reporting; add versioned conflicts with libc-bin, dhcpcd, libparted1.8-10 and lustre-utils

#1057089#38
Date:
2024-01-15 08:17:35 UTC
From:
To:
package release.debian.org
tags 1057089 = bookworm pending
thanks

Hi,

The upload referenced by this bug report has been flagged for acceptance into the proposed-updates queue for Debian bookworm.

Thanks for your contribution!

Upload details
==============

Package: usrmerge
Version: 37~deb12u1

Explanation: clean up biarch directories when not needed; don't run convert-etc-shells again on converted systems; handle mounted /lib/modules on Xen systems; improve error reporting; add versioned conflicts with libc-bin, dhcpcd, libparted1.8-10 and lustre-utils

#1057089#43
Date:
2024-02-10 13:11:19 UTC
From:
To:
The upload requested in this bug has been released as part of 12.5.
#1057089#48
Date:
2024-02-23 17:57:49 UTC
From:
To:
The bookworm branch and a signed tag can be found in

https://salsa.debian.org/anbe/usrmerge.git

(IIRC merge requests don't handle tags, therefore I'm not creating one.)


Andreas