Source: libxcrypt
Version: 1:4.4.33-1
Severity: important
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap
X-Debbugs-Cc: Ivo De Decker <ivo.dedec...@ugent.be>

Shared libraries must not be marked Important: yes nor Protected: yes,
because that prevents them from being removed in a multiarch setup.
Please stop issuing these fields.

I do see that they were added to ease the upgrade from buster to
bullseye. I think that the harm caused by the field now outweighs its
benefits.

Removing foreign packages should just work:
| # dpkg --print-architecture
| amd64
| # apt-get purge libcrypt1:armhf
| Reading package lists... Done
| Building dependency tree... Done
| Reading state information... Done
| The following packages will be REMOVED:
|   libcrypt1:armhf*
| WARNING: The following essential packages will be removed.
| This should NOT be done unless you know exactly what you are doing!
|   libcrypt1:armhf
| 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
| After this operation, 230 kB disk space will be freed.
| E: Removing essential system-critical packages is not permitted. This might 
break the system.
| #

Helmut
diff --minimal -Nru libxcrypt-4.4.33/debian/changelog 
libxcrypt-4.4.33/debian/changelog
--- libxcrypt-4.4.33/debian/changelog   2022-11-18 22:38:21.000000000 +0100
+++ libxcrypt-4.4.33/debian/changelog   2022-11-22 09:37:45.000000000 +0100
@@ -1,3 +1,10 @@
+libxcrypt (1:4.4.33-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Do not abuse Important and Protected fiels. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 22 Nov 2022 09:37:45 +0100
+
 libxcrypt (1:4.4.33-1) unstable; urgency=medium
 
   * New upstream release.
diff --minimal -Nru libxcrypt-4.4.33/debian/control 
libxcrypt-4.4.33/debian/control
--- libxcrypt-4.4.33/debian/control     2022-11-18 22:13:22.000000000 +0100
+++ libxcrypt-4.4.33/debian/control     2022-11-22 09:37:43.000000000 +0100
@@ -15,8 +15,6 @@
 Multi-Arch: same
 Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends}, ${misc:Depends}
-XB-Important: yes
-Protected: yes
 Conflicts: libpam0g (<< 1.4.0-10)
 Replaces:
  libc6 (<< 2.29-4),
@@ -36,8 +34,6 @@
 Multi-Arch: same
 Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends}, ${misc:Depends}
-XB-Important: yes
-Protected: yes
 Breaks: musl (<< 1.2.2-2~)
 Replaces: musl (<< 1.2.2-2~)
 Description: libcrypt shared library

Reply via email to