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

Bug#528021: unowned files after purge (policy 6.8)



Holger Levsen <holger@layer-acht.org> wrote:

> Hi,
>
> On Sonntag, 10. Mai 2009, Frank Küster wrote:
>> We have simply forgotten to add the line in postrm. Here's a patch:
>
> Heh. (+np, happens.)
>
>> +    # remove the symlink in TEXMFLOCAL, ignoring failures if /usr/local is
>> ro rm -f /usr/local/share/texmf/ls-R 2>/dev/null || true
>
> you must neither delete nor create files in /usr/local (see policy 9.1.2 :)

If a directory isn't a "file", is a symlink one?

We really have a problem here. Currently, all ls-R files reside in
/var/lib/texmf, with symlinks at the places where they are looked
for. We need to change this, and put the ls-R file in /usr/local itself.

However, we should try to remember whether there's a reason for this
construction, other than that we arranged the files in analogy to
/usr/share/texmf{,-texlive}?  

Moreover, we must make sure that we never run mktexlsr without arguments
in maintainer scripts - otherwise /u/l/s/texmf/ls-R will be created.

>> An alternative approach would be to move ls-R out of the way, and then
>> do
>
> I would just try to delete the dir, and if it fails, so be it.

The file will always exist, since we create it in our postinst currently...

Regards, Frank

-- 
Dr. Frank Küster
Debian Developer (TeXLive)
VCD Aschaffenburg-Miltenberg, ADFC Miltenberg
B90/Grüne KV Miltenberg



Reply to: