On Thu, Jun 02, 2005 at 03:08:04PM -0300, Carlos Laviola wrote:
> 2005/6/2, Agustin Martin <[EMAIL PROTECTED]>:
> > 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.
> 
> This is weird. Here's what I get:
> 
> [EMAIL PROTECTED]:~/debian$ sudo update-alternatives --display pc
> pc - status is auto.
>  link currently points to /usr/bin/gpc
> /usr/bin/gpc - priority 20
>  slave pc.1.gz: /usr/share/man/man1/gpc.1.gz
> Current `best' version is /usr/bin/gpc.
> [EMAIL PROTECTED]:~/debian$ sudo dpkg -i
> fp-{compiler,units-rtl}_2.0.0-1_i386.deb
...
> update-alternatives: slave link name /usr/share/man/man1/pc.1.gz duplicated
...
> [EMAIL PROTECTED]:~/debian$ sudo update-alternatives --display pc
> pc - status is auto.
>  link currently points to /usr/bin/gpc
> /usr/bin/gpc - priority 20
>  slave pc.1.gz: /usr/share/man/man1/gpc.1.gz
> /usr/bin/fpc - priority 20
>  slave pc.1.gz: /usr/share/man/man1/fpc.1.gz
> Current `best' version is /usr/bin/gpc.
> [EMAIL PROTECTED]:~/debian$ sudo dpkg -i
> fp-{compiler,units-rtl}_2.0.0-2_i386.deb
...
> So installing -2 now works fine here without any manual intervention.
> I'm a bit puzzled.

Hi, Carlos,

I am now at home on dial-up with a woody box, so everything writen below
should not be taken very seriously, I am writing after what I remember from
this CET afternoon,

diffing fp-compiler.postinst-1 and fp-compiler.postinst-2 showed a typo
where pc was mistyped as fpc (or the opposite, but I think it was this way).

The problem you describe seems to appear when a new alternative having the
other string (the wrong one) is being installed against the other one
(having the right one), or the opposite, that is 

fp-compiler -1 (bad string)  -> -2 (good string) with no gpc installed
gpc(default) (good string)   -> fp-compiler-1 (bad string)

shoud fail, but 

gpc(default) (good string)  -> fp-compiler-2 (good string)

should work, if gpc has the same string as fp-compiler-2, the right one (I
cannot check that now).

This is the only possibility that seems consistent to me, but I cannot
properly check. I will try to take a look at this tomowrrow in the morning
in a sid box.

Cheers,

-- 
Agustin


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

Reply via email to