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

Re: problem with info



Bruce - ccing this to you because of a bug in base.postinst.

> > Susan G. Kleinmann wrote:
> > > 
> > > Ever since I upgraded to 1.1 (about a month ago) I haven't been able to
> > > get info to work properly.  I've purged and installed it a couple of times,

I tracked this bug down.  There is a bug in base.postinst and a bug in
install-info.  The bug in install-info (line 251) can only be seen the
first time it's called, and only when there the info file is completely
empty.  install-info then shoves the '* Menu' line to the end and keeps
it there, making the dir useless as info looks for that same line.

The info file is also corrupted by base.postinst by nonescaped quote
marks, but that was easy.  The harder fix is simple - put in a category
that we know will get filled anyway.  Really any nonempty line will
do.  We could instead fix line 251 of install-info, but we still need
to fix those quote marks.

So here is a patch to base.postinst

>>>>>>>>>>>>>>>>>>>>
--- base.postinst.old   Fri Apr 26 02:20:42 1996
+++ base.postinst       Fri Apr 26 02:21:15 1996
@@ -26,11 +26,12 @@
   it.
   --- PLEASE ADD DOCUMENTATION TO THIS TREE. (See INFO topic first.) ---

-In Debian GNU/Linux, Info `dir' entries are added with the command
-`install-info'.  Please refer to install-info(8) for usage details.
+In Debian GNU/Linux, Info \`dir' entries are added with the command
+\`install-info'.  Please refer to install-info(8) for usage details.

 * Menu: The list of major topics begins on the next line.

+General Commands
 EOF
        chmod 644 $ROOT/usr/info/dir
        chown root.root $ROOT/usr/info/dir
<<<<<<<<<<<<<<<<<<<<<<<<<

And now, Susan, here's a script to recreate the dir file.  It's got a
control character in it, so I'll uuencode it.  It will take a minute or
so; be patient.  I just ran it on my system and it works like a charm.

begin 755 fixdir
M(R$O=7-R+V)I;B]P97)L"@IO<&5N("A8+"`B/B`O=7-R+VEN9F\O9&ER(BD[
M"@IP<FEN="!8(#P\(D5/1B(["BTJ+2!497AT("TJ+0I4:&ES(&ES('1H92!F
M:6QE("XN+B]I;F9O+V1I<BP@=VAI8V@@8V]N=&%I;G,@=&AE('1O<&UO<W0@
M;F]D92!O9@IT:&4@26YF;R!H:65R87)C:'DN("!4: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