On Fri, Nov 29, 2024 at 10:34:55AM +0100, Sven Grewe wrote:
> apt upgrade tried to upgrade darkstat to 3.0.721-1 which led to the
> following error:
> <snip>
> Setting up darkstat (3.0.721-1) ...
> Installing new version of config file /etc/darkstat/init.cfg ...
> chown: cannot access '/var/lib/darkstat': No such file or directory
> dpkg: error processing package darkstat (--configure):
>  installed darkstat package post-installation script subprocess returned 
> error exit status 1
> ...
> Errors were encountered while processing:
>  darkstat
> ...
> Error: Sub-process /usr/bin/dpkg returned an error code (1)
> </snip>
> 
> after running
> # mkdir /var/lib/darkstat
> the upgrade succeeded
Yup:
  $ dpkg-deb -c darkstat_3.0.719-1.1+b1_amd64.deb  | grep var
  drwxr-xr-x root/root         0 2024-03-29 13:15 ./var/
  drwxr-xr-x root/root         0 2024-03-29 13:15 ./var/lib/
  drwxr-xr-x root/root         0 2024-03-29 13:15 ./var/lib/darkstat/
  $ dpkg-deb -c darkstat_3.0.721-1_amd64.deb  | grep var
  $ git grep 'chown ' debian/
  debian/postinst:        chown -R nobody /var/lib/darkstat
  $ git show 7d12c38cb316245b1d379a09ca2835f265c9d15f
  commit 7d12c38cb316245b1d379a09ca2835f265c9d15f
  Author: Andreas Tille <ti...@debian.org>
  Date:   Sun Nov 10 07:45:37 2024 +0100
  
      Drop debian/dirs which is unneeded
  
  diff --git a/debian/changelog b/debian/changelog
  index 70a9d8c..845ee2a 100644
  --- a/debian/changelog
  +++ b/debian/changelog
  @@ -26,6 +25,9 @@ darkstat (3.0.721-1) UNRELEASED; urgency=medium
     [ Helmut Grohne ]
     * Fix FTCBFS: Supply HOSTCC to make. (Closes: #914628)
  
  +  [ Andreas Tille ]
  +  * Drop debian/dirs which is unneeded
  +
    -- наб <nabijaczlew...@nabijaczleweli.xyz>  Sat, 09 Nov 2024 23:34:32 +0100
  
   darkstat (3.0.719-1.1) unstable; urgency=medium
  diff --git a/debian/dirs b/debian/dirs
  deleted file mode 100644
  index 62963fe..0000000
  --- a/debian/dirs
  +++ /dev/null
  @@ -1,2 +0,0 @@
  -var/lib/darkstat
  -etc/darkstat

This commit came after I upgrade-tested this on my end.
I've reverted it in git, pending upload.

Best,

Attachment: signature.asc
Description: PGP signature

Reply via email to