tag 311436 patch
thanks

On Wed, Jun 01, 2005 at 01:15:00PM +0200, Agustin Martin wrote:
> On Wed, Jun 01, 2005 at 12:04:21AM -0300, Guilherme Mesquita Gondim (semente) 
> wrote:
> > Package: fp-compiler
> > Version: 2.0.0-2
> > Severity: grave
> > Justification: renders package unusable
> 
> > Setting up fp-compiler (2.0.0-2) ...
> > update-alternatives: slave link name /usr/share/man/man1/pc.1.gz duplicated
> > dpkg: error processing fp-compiler (--configure):
> 
> Reproduced,
> 
> Carlos and Kenshi, the problem seems to be that the alternative is not
> removed from the prerm, so the postinst tries to set it again over an
> already existent alternative.

s/prerm/preinst/

Please consider the attached patch

Cheers,

-- 
Agustin
diff -Naur fpc-2.0.0.carlos/debian/changelog fpc-2.0.0/debian/changelog
--- fpc-2.0.0.carlos/debian/changelog   2005-06-01 13:37:06.000000000 +0200
+++ fpc-2.0.0/debian/changelog  2005-06-01 13:34:45.000000000 +0200
@@ -1,3 +1,12 @@
+fpc (2.0.0-2.1) unstable; urgency=high
+
+  * debian/fp-compiler.preinst:
+    - New file. We need to remove /usr/bin/fpc as a pc alternative in the
+      preinst, so it can be recreated from the postinst without failing on
+      duplicated link error. Fixes RC-Bug (closes: #311436)
+
+ --
+
 fpc (2.0.0-2) unstable; urgency=low
 
   * debian/fp-compiler.postinst.in: forgot to reapply the patch that
diff -Naur fpc-2.0.0.carlos/debian/fp-compiler.preinst 
fpc-2.0.0/debian/fp-compiler.preinst
--- fpc-2.0.0.carlos/debian/fp-compiler.preinst 1970-01-01 01:00:00.000000000 
+0100
+++ fpc-2.0.0/debian/fp-compiler.preinst        2005-06-01 13:30:41.000000000 
+0200
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+set -e
+
+# Remove fpc from pc alternative
+/usr/sbin/update-alternatives --remove pc /usr/bin/fpc
+
+# Debhelper code
+#DEBHELPER#

Reply via email to