severity 788585 grave
block 788585 by 421344
thanks

(Severity reduced to grave since the data loss does not extend beyond
files associated with the package.)


On Sat, Jun 13, 2015 at 01:04:58AM +0200, Christoph Anton Mitterer wrote:
> Hi.
> 
> dsh installs the file /etc/dsh/group/all as a symlink to "../machines.list".
> 
> Since I didn't like the way that all host lists would be in /etc/dsh/group/
> and just the -a list is in /etc/dsh/machines.list I reverted that to:
> - /etc/dsh/group/all being the regular file
> - /etc/dsh/machines.list being the symlink to the former
> 
> In violation of the policy, /etc/dsh/group/all is not a conffile,
> thus the host list, with precious data, is removed without further
> asking and installation of the package yields an error:
> Setting up dsh (0.25.10-1.1) ...
> dpkg: warning: dsh: config file '/etc/dsh/machines.list' is a circular link
>  (= 
> '/etc/dsh/group/../group/../group/../group/../group/../group/../group/../group/../group/../group/../group/../group/../group/all')

The symlink is not marked as a conffile because debhelper (specifically
dh_installdeb) does not mark symlinks to be installed in /etc as
conffiles. According to #421346 this is intentional as dpkg does not
work correctly with conffile symlinks (#421344, #690051). Thus the
apparent fix of marking it as a conffile explicitly is likely unwise.

Reply via email to