Debian Bug report logs - #45480
dpkg: Please check for leftover diversions on purge

version graph

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg.

Reported by: Kai Henningsen <kai-debbugs@khms.westfalen.de>

Date: Sun, 19 Sep 1999 08:48:06 UTC

Severity: wishlist

Found in version 1.4.1.9

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, Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>:
Bug#45480; Package dpkg. Full text and rfc822 format available.

Acknowledgement sent to <kai@khms.westfalen.de>:
New Bug report received and forwarded. Copy sent to Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>. Full text and rfc822 format available.

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

From: <kai@khms.westfalen.de>
To: submit@bugs.debian.org
Subject: dpkg: Diversions aren't removed when the owning packages are removed
Date: Sun, 19 Sep 1999 10:24:39 +0200
Package: dpkg
Version: 1.4.1.9
Severity: important

There is no reason to keep a diversion if the package creating it is no longer
there; in fact, this is harmful. These should be cleaned up automatically.

-- System Information
Debian Release: potato
Kernel Version: Linux khms.westfalen.de 2.2.12-kai.34 #1 Sam Aug 28 19:43:42 CEST 1999 i586 unknown

Versions of the packages dpkg depends on:
ii  libc6           2.1.2-1        GNU C Library: Shared libraries and timezone
ii  libncurses4     4.2-3.2        Shared libraries for terminal handling
ii  libstdc++2.10   2.95.1-2       The GNU stdc++ library


Information forwarded to debian-bugs-dist@lists.debian.org, Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>:
Bug#45480; Package dpkg. Full text and rfc822 format available.

Acknowledgement sent to Wichert Akkerman <wichert@cs.leidenuniv.nl>:
Extra info received and forwarded to list. Copy sent to Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>. Full text and rfc822 format available.

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

From: Wichert Akkerman <wichert@cs.leidenuniv.nl>
To: kai@khms.westfalen.de, 45480@bugs.debian.org, control@bugs.debian.org
Subject: Re: Bug#45480: dpkg: Diversions aren't removed when the owning packages are removed
Date: Mon, 20 Sep 1999 14:56:15 +0200
[Message part 1 (text/plain, inline)]
severity 45480 wishlist
thanks

Previously kai@khms.westfalen.de wrote:
> There is no reason to keep a diversion if the package creating it is
> no longer there; in fact, this is harmful. These should be cleaned up
> automatically.

Perhaps. Policy currently says that packages are responsible for this
themselves. I've downgraded the severity of this bug to wishlist so Ian
can consider adding this functionality to dpkg.

Wichert.

-- 
==============================================================================
This combination of bytes forms a message written to you by Wichert Akkerman.
E-Mail: wichert@cs.leidenuniv.nl
WWW: http://www.wi.leidenuniv.nl/~wichert/
[Message part 2 (application/pgp-signature, inline)]

Severity set to `wishlist'. Request was from Wichert Akkerman <wichert@cs.leidenuniv.nl> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Wichert Akkerman <wakkerma@debian.org>:
Bug#45480; Package dpkg. Full text and rfc822 format available.

Acknowledgement sent to Henrique M Holschuh <hmh+debianbug@rcm.org.br>:
Extra info received and forwarded to list. Copy sent to Wichert Akkerman <wakkerma@debian.org>. Full text and rfc822 format available.

Message #17 received at 45480@bugs.debian.org (full text, mbox):

From: Henrique M Holschuh <hmh+debianbug@rcm.org.br>
To: Debian Bug Tracking System <45480@bugs.debian.org>
Subject: please consider the issue
Date: Sat, 16 Dec 2000 06:29:11 -0200
Wichert,

I know left-over diverts are not dpkg's fault, but please consider detecting
left-over diverts on --purge (and maybe just removal), and complaining
loudly in the console with a big WARNING.

I've had diverts causing minor security hazards here, because a package
left-over diverts caused another to never ever update its config files. This
divert was nearly an year old, so I was quite distraught by the huge
opportunity window it left in my system :(

-- System Information
Debian Release: woody
Architecture: i386
Kernel: Linux godzillah.rivendell.sol 2.2.18 #1 Tue Dec 12 22:20:25 BRST 2000 i586

Versions of packages dpkg depends on:
ii  libc6                        2.2-5       GNU C Library: Shared libraries an
ii  libncurses5                  5.0-8       Shared libraries for terminal hand
ii  libstdc++2.10-glibc2.2       1:2.95.2-20 The GNU stdc++ library            

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



Changed Bug submitter from <kai@khms.westfalen.de> to Kai Henningsen <kai-debbugs@khms.westfalen.de>. Request was from Kai Henningsen <kai-debbugs@khms.westfalen.de> to control@bugs.debian.org. Full text and rfc822 format available.

Changed Bug title. Request was from Thomas Hood <jdthood@yahoo.co.uk> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <team@dpkg.org>:
Bug#45480; Package dpkg. Full text and rfc822 format available.

Acknowledgement sent to Daniel Burrows <dburrows@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <team@dpkg.org>. Full text and rfc822 format available.

Message #26 received at 45480@bugs.debian.org (full text, mbox):

From: Daniel Burrows <dburrows@debian.org>
To: debian-dpkg@lists.debian.org
Cc: 45480@bugs.debian.org, magnus@burgsvik.se
Subject: [magnus@burgsvik.se: Feature request: 'dpkg-divert --rename --remove' with Aptitude]
Date: Fri, 11 Aug 2006 06:25:49 -0700
[Message part 1 (text/plain, inline)]
  This sounds more like a feature request for dpkg than for apt.  (it
also sounds like a bug in nvidia-glx to me, but registering which package
a given diversion belongs to also seems like a good idea to me)

  Ccing this to bug #45480 since it seems to be relevant.

  Daniel

----- Forwarded message from Magnus Berg <magnus@burgsvik.se> -----

Date: Wed, 09 Aug 2006 14:43:23 +0200
From: Magnus Berg <magnus@burgsvik.se>
Subject: Feature request: 'dpkg-divert --rename --remove' with Aptitude
To: dburrows@debian.org

Hi!

I have a little feature request (or see it as a bugfix ;-)) for Aptitude. I 
resently installed Etch and realised that Aptitude does a great job renaming 
files with help of dpkg-divert but hten you purge that package Aptitude 
doesn't remove that diverted name. So then you are going to install a new 
package with such file you get an error message like this (in Swedish, but 
I'm sure you totaly understand that it says:

(Läser databasen ... 56282 filer och kataloger installerade.)
Packar upp nvidia-glx (från .../nvidia-glx_1.0.8762-2_i386.deb) ...
dpkg-divert: `diversion of /usr/lib/xorg/modules/extensions/libGLcore.a 
to /usr/lib/nvidia/libGLcore.a.xlibmesa by nvidia-glx' clashes with 
`diversion of /usr/lib/xorg/modules/extensions/libGLcore.a 
to /usr/lib/nvidia/libGLcore.a.xlibmesa by nvidia-glx-legacy'
dpkg: fel vid hantering 
av /var/cache/apt/archives/nvidia-glx_1.0.8762-2_i386.deb (--unpack):
 underprocess pre-installation script gav felkod 2
Fel uppstod vid hantering:
 /var/cache/apt/archives/nvidia-glx_1.0.8762-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Ett paketinstallation misslyckades.  Försöker att lösa problemet:
Tryck Return för att fortsätta.

Today I learned to use:
# dpkg-divert --rename --remove /usr/bin/example.foo
but I should recomend you to built in this function in Aptitude so it remove 
the deverted names on files that being removed or purged.

Best wishes
Magnus Berg

-- 
----------------------------------------------------------------
Magnus Berg                             
parrhesiast

magnus@burgsvik.se
www.magnus.burgsvik.se
                
0498-29 04 10

Bäckströms väg 47
623 35 Burgsvik
SWEDEN
----------------------------------------------------------------
www.burgsvik.se - Information och mötesplats för boende och besökande i 
Burgsvik ['buschvick].
----------------------------------------------------------------

----- End forwarded message -----
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 16:58:29 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.