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

Debian Bug report logs - #672608
dpkg: Support dynamic pathname registration into packages

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: Roger Leigh <rleigh@debian.org>

Date: Sat, 12 May 2012 12:12:01 UTC

Severity: wishlist

Merged with 213907, 234286, 437409, 890825

Found in versions 1.10.4, dpkg/1.16.3, dpkg/1.19.0.5

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#672608; Package dpkg. (Sat, 12 May 2012 12:12:04 GMT) (full text, mbox, link).


Acknowledgement sent to Roger Leigh <rleigh@debian.org>:
New Bug report received and forwarded. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Sat, 12 May 2012 12:13:29 GMT) (full text, mbox, link).


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

From: Roger Leigh <rleigh@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dpkg: Please support registration of additional files for a package in addition to those in the deb manifest
Date: Sat, 12 May 2012 13:07:25 +0100
Package: dpkg
Version: 1.16.3
Severity: wishlist

Currently, if a package provides or generates files in addition to
those shipped in the .deb data.tar.gz, the package prerm/postrm
needs to take care to ensure that these files are correctly cleaned
up.  However, given that the logic to generate the files may change
between package versions, and that the cleanup logic needs to be
kept in sync with the generation logic, there is a great potential
for bugs here: either failing to cleanup files correctly, or deleting
files owned by other packages or created by the admin.

It would be a great improvement if dpkg provided a mechanism to
associate other files/dirs with the package, so that these would be
automatically get removed when the package is removed.  This would
prevent the need to keep two or more scripts up-to-date with each
other, and also avoid the mistakes in all the corner case scenarios
which can lead to leaving a mess behind, or causing dataloss.

It would also be useful if additional conffiles could be registered
or deregistered so that these would additionally gain from correct
--purge behaviour.  It may also provide a useful mechanism for
preserving a record of conffiles which are currently "forgotten" if
the package drops them on upgrade.

I would think such a mechanism would be required not to allow
alteration of the packaged files in package.list.  This would have
the potential to cause random conflicts and break upgrades in
unpredictable ways.  Registration in a separate supplementary
list would prevent this, and perhaps also allow for these extra
files to be taken over by other packages.  But it would permit
supplementary files and conffiles to be added and removed during
the lifetime of the package being installed, and give robust and
consistent behaviour when it came to removal and purging.

Maybe these could in /var/lib/dpkg/info/package.supplist and
/var/lib/dpkg/info/suppconffiles (for example; I'm sure there
are better naming schemes).

I think such a change would greatly improve the quality and
complexity of our maintainer scripts.


Regards,
Roger

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (550, 'unstable'), (500, 'testing'), (400, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.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-1
ii  libc6        2.13-32
ii  libselinux1  2.1.9-4
ii  tar          1.26-4
ii  xz-utils     5.1.1alpha+20110809-3
ii  zlib1g       1:1.2.7.dfsg-1

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt  0.9.3

-- no debconf information




Added indication that bug 672608 blocks 706365 Request was from Guillem Jover <guillem@debian.org> to 706365-submit@bugs.debian.org. (Mon, 29 Apr 2013 00:48:11 GMT) (full text, mbox, link).


Marked as found in versions dpkg/1.19.0.5. Request was from Guillem Jover <guillem@debian.org> to 890825-submit@bugs.debian.org. (Tue, 29 Jan 2019 10:51:04 GMT) (full text, mbox, link).


Merged 672608 890825 Request was from Guillem Jover <guillem@debian.org> to 890825-submit@bugs.debian.org. (Tue, 29 Jan 2019 10:51:05 GMT) (full text, mbox, link).


Removed indication that bug 672608 blocks 706365 Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Sun, 03 Mar 2019 00:33:07 GMT) (full text, mbox, link).


Marked as found in versions 1.10.4. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Sun, 03 Mar 2019 00:33:08 GMT) (full text, mbox, link).


Merged 213907 234286 437409 672608 890825 Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Sun, 03 Mar 2019 00:33:11 GMT) (full text, mbox, link).


Changed Bug title to 'dpkg: Support dynamic pathname registration into packages' from 'dpkg: Please support registration of additional files for a package in addition to those in the deb manifest'. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Sun, 03 Mar 2019 00:33:12 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 02:46:29 2025; Machine Name: buxtehude

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.