Bug#207874: libkpathsea3: cannot upgrade when /usr/doc symlink to /usr/share/doc
On 01.09.03 Atsuhito Kohda (kohda@pm.tokushima-u.ac.jp) wrote:
> From: Tim Connors <tconnors@astro.swin.edu.au>
> Subject: Bug#207874: libkpathsea3: cannot upgrade when /usr/doc symlink to /usr/share/doc
> Date: Sat, 30 Aug 2003 22:09:27 +1000 (EST)
Hi,
> > So presumably one would want to '|| true' with the rm -f? A quick test
> > demonstrates this to work with 'sh -e' (and the bash manpage, under set,
> > says this works)
> >
> > > so, what to do? rm -rf /usr/doc/tetex-lib? It's obsolete anyway.
> >
> > It may be obsolete for current unstable systems, but what if you were to
> > upgrade from an old stable - you would still need to get rid of any
> > /usr/doc/tetex-lib then, wouldn't you?
>
> So "rm -rf /usr/doc/tetex-lib" would be a good solution?
>
My proposed patch attached. The bug report could be ignored too, as I
won't like to regard every special private FS-layout. Is it written
anywhere in the policy, that the scripts should work even after one
has manipulated his filesystem-layout in that way? AFAIK is the
symlink farm in /usr/doc obsolete in sarge.
BTW: The call to ldconfig is written into libkapthsea3.postin by
dh_makeshlibs (at least in woody). So I've removd it from the script.
H.
--
sigmentation fault
diff -urN scripts.orig/libkpathsea-dev.postinst scripts/libkpathsea-dev.postinst
--- scripts.orig/libkpathsea-dev.postinst Thu Oct 16 17:37:49 2003
+++ scripts/libkpathsea-dev.postinst Thu Oct 16 17:40:09 2003
@@ -1,5 +1,6 @@
#!/bin/sh -e
-rm -f /usr/doc/tetex-dev
+test -d /usr/doc/tetex-dev && rm -rf /usr/doc/tetex-dev
+test -h /usr/doc/tetex-dev && rm -f /usr/doc/tetex-dev
#DEBHELPER#
diff -urN scripts.orig/libkpathsea3.postinst scripts/libkpathsea3.postinst
--- scripts.orig/libkpathsea3.postinst Thu Oct 16 17:37:49 2003
+++ scripts/libkpathsea3.postinst Thu Oct 16 17:38:38 2003
@@ -1,9 +1,6 @@
#!/bin/sh -e
-if [ "$1" = "configure" ]; then
- ldconfig
-fi
-
-rm -f /usr/doc/tetex-lib
+test -d /usr/doc/tetex-lib && rm -rf /usr/doc/tetex-lib
+test -h /usr/doc/tetex-lib && rm -f /usr/doc/tetex-lib
#DEBHELPER#
Reply to: