Package: bison
Version: 1.875d-1
Severity: serious

Synopsis: installation of bison does not properly install the yacc
alternatives symlinks - see below.


> I think I ran into this a few months back. It had to do with
> alternatives -- very odd.

Odd indeed. I found a stale yacc alternatives file for bison (byacc) on
kullervo, that might have prevented proper alternatives installation.

> /usr/bin/yacc needs to point to /etc/alternatives/yacc
> /etc/alternatives/yacc needs to point to /usr/bin/bison.yacc

Which should be taken care of by bison's postinstall script.

> It seems like I had to do something like
> update-alternatives --auto yacc

Which constitutes a bug in bison.

This section of bison.postinst

if [ $1 != "upgrade" ] ; then
        update-alternatives --install /usr/bin/yacc yacc /usr/bin/bison.yacc 
100 \
                --slave /usr/share/man/man1/yacc.1.gz yaccman 
/usr/share/man/man1/bison.1.gz

fi

doesn't work at all.

Funny enough, after a single invocation of update-alternatives --auto, it
does. Hence, adding that to the postinst seems like a good idea. Bug
filed.

        Michael



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

Reply via email to