Package: base-files
Version: 11.1
Tags: patch

dpkg creates /var/lib/dpkg/status when missing since dpkg/1.20.0. As
such, base-files can stop doing so. The relevant dpkg version is part of
bullseye, but not buster. I therefore recommend fixing this bug after
the release of bullseye, but that seems kinda obvious given the hard
freeze. Please consider applying the attached patch.

Helmut
diff --minimal -Nru base-files-11.1/debian/changelog 
base-files-11.1+nmu1/debian/changelog
--- base-files-11.1/debian/changelog    2021-04-10 22:15:00.000000000 +0200
+++ base-files-11.1+nmu1/debian/changelog       2021-06-11 12:58:43.000000000 
+0200
@@ -1,3 +1,10 @@
+base-files (11.1+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Stop creating /var/lib/dpkg/status. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 11 Jun 2021 12:58:43 +0200
+
 base-files (11.1) unstable; urgency=medium
 
   * Use https where appropriate, namely, origins/debian (currently used)
diff --minimal -Nru base-files-11.1/debian/postinst.in 
base-files-11.1+nmu1/debian/postinst.in
--- base-files-11.1/debian/postinst.in  2021-04-10 22:15:00.000000000 +0200
+++ base-files-11.1+nmu1/debian/postinst.in     2021-06-11 12:58:40.000000000 
+0200
@@ -100,14 +100,6 @@
   chmod 664 /var/run/utmp
 fi
 
-if [ ! -d /var/lib/dpkg ]; then
-  mkdir -m 755 -p /var/lib/dpkg
-fi
-if [ ! -f /var/lib/dpkg/status ]; then
-  echo > /var/lib/dpkg/status
-  chmod 644 /var/lib/dpkg/status
-fi
-
 if [ -d /usr/share/info ] && [ ! -f /usr/info/dir ] && [ ! -f 
/usr/share/info/dir ]; then
   install_from_default info.dir /usr/share/info/dir
   chmod 644 /usr/share/info/dir

Reply via email to