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

Bug#297614: dpkg: dpkg makes conffiles to circular symlinks



reassign 297614 tetex-base
retitle 297614 tetex-base: symlink to directory replaced by directory in package
thanks

On Wed, 2005-03-02 at 16:24 +0100, Frank Küster wrote:

> Scott James Remnant <scott@netsplit.com> wrote:
> 
> > On Wed, 2005-03-02 at 08:29 +0100, Frank Küster wrote:
> >
> >> Frank K.ster <frank@kuesterei.ch> wrote:
> >> 
> > however I note that
> > you're using Manoj's ucf package to manage your conffiles not dpkg --
> > therefore this bug is far more likely to be in that package.
> 
> We are managing *a*couple*of* our conffiles with ucf, but by far not all
> of them.  The files in question are just usual conffiles. Please have a
> look at the command output attached below.
> 
Ah, apologies; I'd quickly gone through your scripts and thought those
three were ucf ones -- now I look closer, they're not.

I've managed to figure out what's happening here:

In 2.0.2c-3 (nearest one I could grab, still shows the problem), you
have the following:

lrwxr-xr-x root/root         0 2004-12-12 23:09:06 ./usr/share/texmf/tex/platex/config -> /etc/texmf/platex


In 3.0-0.4 we have:

drwxr-xr-x root/root         0 2005-02-28 10:51:17 ./usr/share/texmf/tex/platex/config/
-rw-r--r-- root/root       201 2004-03-26 19:14:23 ./usr/share/texmf/tex/platex/config/platex.ini
-rw-r--r-- root/root       188 2004-03-26 19:13:00 ./usr/share/texmf/tex/platex/config/pdfplatex.ini
lrwxrwxrwx root/root         0 2005-02-28 10:51:17 ./usr/share/texmf/tex/platex/config/language.dat -> /etc/texmf/platex/language.dat
lrwxrwxrwx root/root         0 2005-02-28 10:51:17 ./usr/share/texmf/tex/platex/config/hyphen.cfg -> /etc/texmf/platex/hyphen.cfg


You can't replace symlinks to directories with symlinks with dpkg alone
(to preserve user filesystem/drive arrangement), and this is explicitly
mentioned in policy.

This is therefore a bug in your package; you need to handle the symlink
to directory transition in your maintainer scripts.

Scott
-- 
Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: