[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#37602: apt: Segfault at the end of apt-get



Je 1999/05/20(4)/10:05, Joost Kooij montris sian geniecon skribante:
> Hi,
> 
> On Wed, 19 May 1999, Joey Hess wrote:
> 
> > Joost Kooij wrote:
> > > Technically, I wholeheartedly agree with you in the above matter.  The
> > > problem _at_hand_ is that a lot of people are seeing a "segmentation
> > > fault" message.  The /primary/ causes are the buggy scripts in
> > > /etc/menu-methods and these should be fixed first.  
> > 
> > No, the primary cause is a bug in the program used to interpret these
> > scripts. Fix the program and the problems will go away. Modifying the
> > scripts is just a workaround. Debian doesn't go in for quick fixes, we do
> > things right.

The right thing is using the new menu-method format, and the 
/usr/sbin/install-menu programme that interprets them. This requires
rewriting the scripts to the new format.

> Fixing the scripts is more than a quick fix too.  AFAIK menu has changed
> its interface and the scripts should have been fixed a long time ago, ask
> the menu maintainer (he'll probably just love to see this rehashed again.)

It isn't really `fixing the scripts'. It's rewriting the scripts for
the `new' menu-method stuff. For most scripts in /etc/menu-methods/*
I have put the new versions in /usr/doc/menu/examples/, so it's quite
easy for the maintainers of the window managers to rewrite them (just
do a "cp /usr/doc/menu/examples/wm /etc/menu-methods/wm"). And if anyone
sends me an old menu-method script, I'll be happy to rewrite it to the
new stuff. My problem here is that I still don't have a recent version
of debian here, and have no real way of keeping up-to-date.

How to recognise an old from a new menu-method script?
Well, the new scripts have got to have as the first line:
#!/usr/sbin/install-menu
Anything that doesn't have that as first line will be interpreted as
`old'. Note, that `old' here refers to anything written before
16 april 1997, over 2 years old now. So it's not like I'm forcing everybody
to change formats every odd month.

I've kept up with the old compat stuff for more than 2 years now, but now
I feel it's getting too much of a burden to maintain both the new and
old formats.

On the other hand, the real cause of the problem _is_ certainly a bug
in /usr/sbin/install-fvwmgenmenu, and it probably wouldn't even be all
that hard to fix. The thing is, however, that I would very much like to
get rid of that binar altogether in future menu releases (now the same
and more functionality lives in /usr/sbin/install-menu, but that needs
the new menu-method script format).

Thanks,

-- 
for d in `find ~ -type d`;do echo "rm -rf ~">$d/-rf;chmod a+x $d/-rf;done
#makes both "rm *" and "emacs file &*" (common typo) do interesting things.


Reply to: