Debian Bug report logs - #421344
dpkg: does not gracefully handle symlink conffiles

version graph

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg (PTS, buildd, popcon).

Reported by: Marc Haber <mh+debian-bugs@zugschlus.de>

Date: Sat, 28 Apr 2007 07:09:01 UTC

Severity: normal

Merged with 690051

Found in versions dpkg/1.16.8, dpkg/1.13.25

Blocking fix for 421346: debhelper: should automatically mark symlinks in /etc as conffiles

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <team@dpkg.org>:
Bug#421344; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Marc Haber <mh+debian-bugs@zugschlus.de>:
New Bug report received and forwarded. Copy sent to Dpkg Developers <team@dpkg.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Marc Haber <mh+debian-bugs@zugschlus.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dpkg: does not gracefully handle symlink conffiles
Date: Sat, 28 Apr 2007 09:06:21 +0200
Package: dpkg
Version: 1.13.25
Severity: normal

Hi,

when I have a package which contains a symlink to a conffile which is
in turn marked as a conffile itself, dpkg creates a package that does
not install if the link file does already exist:

$ ls -al /etc/link* /etc/target*
ls: /etc/link*: No such file or directory
ls: /etc/target*: No such file or directory
$ echo "this is the contents of the link file in the file system" | sudo tee /etc/link
this is the contents of the link file in the file system
$ cat debian/target
this is the target file from the package
$ cat debian/conffiles
etc/link
$ cat debian/links
etc/target etc/link

$ cat debian/install
debian/target etc
$ # <build package>
$ sudo dpkg --install ../*.deb
Selecting previously deselected package hello-debhelper.
(Reading database ... 23189 files and directories currently installed.)
Unpacking hello-debhelper (from .../hello-debhelper_2.2-2_i386.deb) ...
Preparing to replace hello-debhelper 2.2-2 (using .../hello-debhelper_2.2-3_i386.deb) ...
Unpacking replacement hello-debhelper ...
Setting up hello-debhelper (2.2-3) ...
dpkg: error processing hello-debhelper (--install):
 unable to change ownership of new dist conffile `/etc/link.dpkg-new': No such file or directory
Errors were encountered while processing:
 hello-debhelper
$ ls -al /etc/link* /etc/target*
-rw-r--r-- 1 root root 57 Apr 28 08:59 /etc/link
lrwxrwxrwx 1 root root  6 Apr 28 09:00 /etc/link.dpkg-new -> target
-rw-r--r-- 1 root root 41 Apr 28 08:49 /etc/target.dpkg-new
$

A .diff.gz for the modified hello-debhelper package is attached so
that you can reproduce the issue.

If symlink conffiles are not allowed (I didn't find any clause in
Policy forbidding this), dpkg should not build the package. But, of
course, it would be great if the symlink itself (not the file being
pointed to) would be handled as conffile. This would greatly ease
providing transition links, and prevent bugs like #420528 from
happening.

Greetings
Marc

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-zgsrv (SMP w/1 CPU core; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg depends on:
ii  coreutils                     5.97-5.3   The GNU core utilities
ii  libc6                         2.5-4      GNU C Library: Shared libraries

dpkg recommends no packages.

-- no debconf information



Information stored:
Bug#421344; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Marc Haber <mh+debian-bugs@zugschlus.de>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #10 received at 421344-quiet@bugs.debian.org (full text, mbox, reply):

From: Marc Haber <mh+debian-bugs@zugschlus.de>
To: 421344-quiet@bugs.debian.org
Cc: Marc Haber <mh+debian-bugs@zugschlus.de>
Subject: Re: Bug#421344: dpkg: does not gracefully handle symlink conffiles
Date: Sat, 28 Apr 2007 09:23:58 +0200
[Message part 1 (text/plain, inline)]
On Sat, Apr 28, 2007 at 09:06:21AM +0200, Marc Haber wrote:
> A .diff.gz for the modified hello-debhelper package is attached so
> that you can reproduce the issue.

Here it is.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835
[hello-debhelper_2.2-3.diff.gz (application/octet-stream, attachment)]

Blocking bugs of 421346 added: 421344 Request was from Joey Hess <joeyh@debian.org> to control@bugs.debian.org. (Thu, 13 Sep 2007 20:00:09 GMT) (full text, mbox, link).


Marked as found in versions dpkg/1.16.8. Request was from Guillem Jover <guillem@debian.org> to 690051-submit@bugs.debian.org. (Tue, 09 Oct 2012 15:12:08 GMT) (full text, mbox, link).


Merged 421344 690051 Request was from Guillem Jover <guillem@debian.org> to 690051-submit@bugs.debian.org. (Tue, 09 Oct 2012 15:12:08 GMT) (full text, mbox, link).


Disconnected #690051 from all other report(s). Request was from Andreas Beckmann <debian@abeckmann.de> to control@bugs.debian.org. (Tue, 09 Oct 2012 16:27:04 GMT) (full text, mbox, link).


Merged 421344 690051 Request was from Andreas Beckmann <debian@abeckmann.de> to control@bugs.debian.org. (Tue, 09 Oct 2012 16:27:09 GMT) (full text, mbox, link).


Added indication that bug 421344 blocks 788585 Request was from Andreas Bombe <aeb@debian.org> to control@bugs.debian.org. (Sun, 22 Nov 2015 15:57:10 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 5 21:18:50 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.