Bug#384567: bison: preinst breaks manually selected yacc alternative

2006-09-01 Thread Chuan-kai Lin
On Fri, Aug 25, 2006 at 08:28:20PM +0200, Sven Joachim wrote: So you have to deal with that in the postinst, rather. I propose the following solution: - Remove the call to update-alternatives from the preinst - Put your fix in the postinst, after the call to update-alternatives

Bug#384567: bison: preinst breaks manually selected yacc alternative

2006-09-01 Thread Chuan-kai Lin
On Fri, Aug 25, 2006 at 08:47:22PM +0200, Sven Joachim wrote: Probably even better would be to just create the missing symlink yourself, with [ -e /usr/bin/yacc ] || ln -s /etc/alternatives/yacc /usr/bin instead of [ -e /usr/bin/yacc ] || update-alternatives --auto yacc manual

Bug#384567: bison: preinst breaks manually selected yacc alternative

2006-09-01 Thread Sven Joachim
Am 01.09.2006 um 08:20 schrieb Chuan-kai Lin: On Fri, Aug 25, 2006 at 08:47:22PM +0200, Sven Joachim wrote: Probably even better would be to just create the missing symlink yourself, with [ -e /usr/bin/yacc ] || ln -s /etc/alternatives/yacc /usr/bin instead of [ -e /usr/bin/yacc ] ||

Bug#384567: bison: preinst breaks manually selected yacc alternative

2006-08-25 Thread Sven Joachim
Package: bison Version: 1:2.3.dfsg-3 Severity: normal Tags: patch From the preinst script: , | # clean error from previous package. | rm -f /usr/share/man/man1/bison.1 | update-alternatives --auto yacc ` You are trying to fix #383971, but this is _not_ the way to do it! If the user had

Bug#384567: bison: preinst breaks manually selected yacc alternative

2006-08-25 Thread Chuan-kai Lin
On Fri, Aug 25, 2006 at 09:05:26AM +0200, Sven Joachim wrote: You are trying to fix #383971, but this is _not_ the way to do it! I agree that the current approach is quite awful. If the user had set the `yacc' alternative to manual, the preinst script breaks that. A better way to do this

Bug#384567: bison: preinst breaks manually selected yacc alternative

2006-08-25 Thread Sven Joachim
Am 25.08.2006 um 17:49 schrieb Chuan-kai Lin: On Fri, Aug 25, 2006 at 09:05:26AM +0200, Sven Joachim wrote: You are trying to fix #383971, but this is _not_ the way to do it! I agree that the current approach is quite awful. If the user had set the `yacc' alternative to manual, the preinst

Bug#384567: bison: preinst breaks manually selected yacc alternative

2006-08-25 Thread Sven Joachim
Am 25.08.2006 um 20:28 schrieb Sven Joachim: So you have to deal with that in the postinst, rather. I propose the following solution: - Remove the call to update-alternatives from the preinst - Put your fix in the postinst, after the call to update-alternatives --install: [...] case $1 in