On Thu, Jun 02, 2005 at 12:01:06PM -0300, Carlos Laviola wrote:
> 2005/6/2, Agustin Martin <[EMAIL PROTECTED]>:
> > I have been trying to check if the upgrade from the buggy package to
> > a fixed one works with only the prerm change, or needs some ad-hoc
> > stuff, but funnily I cannot reproduce the problem today. Reinstalling
> > fp-compiler 2.0.0-2 over and over, which should have triggered this
> > problem, is working well. Surprise...
> 
> It's probably because you've removed the duplicate alternative by
> hand. The problem was actually in 2.0.0-1; 2.0.0-2 mitigated it, but
> didn't fix the problem introduced by -1. If you want to test, test by
> going from -1 to -2 to your -2.1 or something.

You are right, I had a wrong idea of the bug reason, thought that what
failed was update-alternatives re-setting the same alternative without
previously removing it, but is that -1 with its fpc<->pc typo causes,
when upgraded, two different values for the slave corresponding to the
same master value.

FYI, I have tested with a homemade 2.2 just built with a 

mv fp-compiler.preinst fp-compiler.prerm

from my previous -2.1 version, that is, without any preinst stuff.

Upgrading from -1 to -2.2  or from -1 -> -2 -> -2.2, I get for the first
run,

--------------
311436# LC_ALL=C dpkg -i fp-{compiler,units-rtl}_2.0.0-2.2_i386.deb
(Reading database ... 117165 files and directories currently installed.)
Preparing to replace fp-compiler 2.0.0-1.1 (using
fp-compiler_2.0.0-2.2_i386.deb) ...
Unpacking replacement fp-compiler ...
Preparing to replace fp-units-rtl 2.0.0-1.1 (using
fp-units-rtl_2.0.0-2.2_i386.deb) ...
Unpacking replacement fp-units-rtl ...
Setting up fp-units-rtl (2.0.0-2.2) ...
Setting up fp-compiler (2.0.0-2.2) ...
update-alternatives: slave link name /usr/share/man/man1/pc.1.gz duplicated
dpkg: error processing fp-compiler (--install):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 fp-compiler
---------------

But after an inmediate second run,

---------------
311436# LC_ALL=C dpkg -i fp-{compiler,units-rtl}_2.0.0-2.2_i386.deb
(Reading database ... 117165 files and directories currently installed.)
Preparing to replace fp-compiler 2.0.0-2.2 (using
fp-compiler_2.0.0-2.2_i386.deb) ...
Unpacking replacement fp-compiler ...
Preparing to replace fp-units-rtl 2.0.0-2.2 (using
fp-units-rtl_2.0.0-2.2_i386.deb) ...
Unpacking replacement fp-units-rtl ...
Setting up fp-units-rtl (2.0.0-2.2) ...
Setting up fp-compiler (2.0.0-2.2) ...
--------------

Seems that to make things really smooth something in the preinst is
needed in this case to work around the bug introduced in -1, just
reconfiguring after -2.2 does not help.

Cheers,

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to