这是indexloc提供的服务,不要输入任何密码

Debian Bug report logs - #771956
dpkg: overwrites "alternatives" symlinks without warning

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: "Roland R." <raphoplex@gmail.com>

Date: Wed, 3 Dec 2014 19:33:10 UTC

Severity: normal

Merged with 25759, 80144, 271264

Found in versions 1.4.0.24, dpkg/1.16.15, 1.7.2

Reply or subscribe to this bug.

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


Report forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#771956; Package dpkg. (Wed, 03 Dec 2014 19:33:15 GMT) (full text, mbox, link).


Acknowledgement sent to "Roland R." <raphoplex@gmail.com>:
New Bug report received and forwarded. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Wed, 03 Dec 2014 19:33:15 GMT) (full text, mbox, link).


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

From: "Roland R." <raphoplex@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dpkg: The alternatives system don't list created symlinks in /var/lib/dpkg/info
Date: Wed, 03 Dec 2014 20:32:47 +0100
Package: dpkg
Version: 1.16.15
Severity: normal

Dear Maintainers of dpkg,

one of the great freatures of dpkg is that every file and symlink created is listed in /var/lib/dpkg/info/<packagename>.list .
This allows e.g. to check if the system is "clean" by comparing all files to their checksums (using debsums) and by checking that there are no other files and symlinks than those listed in /var/lib/dpkg/info/*.list .
Unfortunately, although update-alternatives is a part of the dpkg package, it seems to have been forgotten to list the created symlinks in /var/lib/dpkg/info/alternatives.list .
It would be great if someone could fix this.

Sincerly,
Roland R.

-- System Information:
Debian Release: 7.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dpkg depends on:
ii  libbz2-1.0   1.0.6-4
ii  libc6        2.13-38+deb7u6
ii  liblzma5     5.1.1alpha+20120614-2
ii  libselinux1  2.1.9-5
ii  tar          1.26+dfsg-0.1
ii  zlib1g       1:1.2.7.dfsg-13

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt  0.9.7.9+deb7u6

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#771956; Package dpkg. (Sat, 06 Dec 2014 08:54:05 GMT) (full text, mbox, link).


Acknowledgement sent to Guillem Jover <guillem@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Sat, 06 Dec 2014 08:54:05 GMT) (full text, mbox, link).


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

From: Guillem Jover <guillem@debian.org>
To: "Roland R." <raphoplex@gmail.com>, 771956@bugs.debian.org
Subject: Re: Bug#771956: dpkg: The alternatives system don't list created symlinks in /var/lib/dpkg/info
Date: Sat, 6 Dec 2014 09:50:36 +0100
Control: forcemerge 25759 -1

On Wed, 2014-12-03 at 20:32:47 +0100, Roland R. wrote:
> Package: dpkg
> Version: 1.16.15
> Severity: normal

> one of the great freatures of dpkg is that every file and symlink
> created is listed in /var/lib/dpkg/info/<packagename>.list .

> This allows e.g. to check if the system is "clean" by comparing all
> files to their checksums (using debsums) and by checking that there are
> no other files and symlinks than those listed in /var/lib/dpkg/info/*.list .
> Unfortunately, although update-alternatives is a part of the dpkg package,
> it seems to have been forgotten to list the created symlinks in
> /var/lib/dpkg/info/alternatives.list .

This has been reported several times, merging. The problem is that
dpkg does not have a generic way to register files not shipped in a
binary package. But even then, u-a would need to know how to register
them which would require tigher integration, wich conflicts with me
wanting to keep it generic and somewhat distribution neutral. I guess
possibly adding hook support would do though.

Thanks,
Guillem



Marked as found in versions 1.4.0.24 and 1.7.2. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Tue, 24 Feb 2015 14:39:05 GMT) (full text, mbox, link).


Merged 25759 271264 771956 80144 Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Tue, 24 Feb 2015 14:39:07 GMT) (full text, mbox, link).


Changed Bug title to 'dpkg: overwrites "alternatives" symlinks without warning' from 'dpkg: The alternatives system don't list created symlinks in /var/lib/dpkg/info' Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Sun, 29 Mar 2015 00:03:05 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: Sun Jul 27 11:02:40 2025; Machine Name: berlioz

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General 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.