[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#237509: libxft-dev: Upgrade fails because of divert file on /usr/X11R6/include/X11/Xft/Xft1.h isn't allowed



tag 237509 + help
thanks

On Thu, Mar 11, 2004 at 11:16:47PM +0100, Raphaël SurcouF Bordet wrote:
> Package: libxft-dev
> Version: 2.1.2-5
> Severity: important
> Tags: sid
> 
> When upgrading libxft-dev from 2.1.2-5 to 2.1.2-6,
> I'm getting this following output on preinst:
> ...
> (Reading database ... 118101 files and directories currently installed.)
> Preparing to replace libxft-dev 2.1.2-5 (using
> .../libxft-dev_2.1.2-6_i386.deb) ...
> diversion of /usr/X11R6/include/X11/Xft/Xft.h to
> /usr/X11R6/include/X11/Xft/Xft1.h by libxft-dev
> Removing `diversion of /usr/X11R6/include/X11/Xft/Xft.h to
> /usr/X11R6/include/X11/Xft/Xft1.h by libxft-dev'
> dpkg-divert: rename involves overwriting
> `/usr/X11R6/include/X11/Xft/Xft.h' with
> different file `/usr/X11R6/include/X11/Xft/Xft1.h', not allowed
> dpkg: error processing
> /var/cache/apt/archives/libxft-dev_2.1.2-6_i386.deb (--unpack):
> subprocess pre-installation script returned error exit status 2
> Errors were encountered while processing:
> /var/cache/apt/archives/libxft-dev_2.1.2-6_i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> ...
> 
> Work around by install this package using dpkg directly.

I reported this problem -- which does not happen in every upgrade
scenario -- to the debian-dpkg and debian-devel lists[1].  No one has
yet replied.

I am either using dpkg-divert wrong, in which case I require instruction
from someone who knows how to use it better, or there is a bug in
dpkg-divert.

Another workaround is simply to move or delete
/usr/X11R6/include/X11/Xft/Xft.h, getting it out of the way.

[1] http://lists.debian.org/debian-devel/2004/debian-devel-200403/msg00651.html

-- 
G. Branden Robinson                |     There's nothing an agnostic can't
Debian GNU/Linux                   |     do if he doesn't know whether he
branden@debian.org                 |     believes in it or not.
http://people.debian.org/~branden/ |     -- Graham Chapman

Attachment: signature.asc
Description: Digital signature


Reply to: