clone 451265 -1
reassign -1 texinfo
tags -1 patch
thanks

Aaron M. Ucko <[EMAIL PROTECTED]> writes:

> Package: librep-doc
> Version: 0.17+svn20070119-5
> Severity: grave
> Justification: renders package unusable (uninstallable)
>
> librep-doc's post-installation script fails with the following messages:
>
>> Setting up librep-doc (0.17+svn20070119-5) ...
>> install-info(/usr/share/info/librep.info): warning, ignoring confusing 
>> INFO-DIR-ENTRY in file.
>> 
>> No `START-INFO-DIR-ENTRY' and no `This file documents'.
>> install-info(/usr/share/info/librep.info): unable to determine description 
>> for `dir' entry - giving up
>> dpkg: error processing librep-doc (--configure):
>>  subprocess post-installation script returned error exit status 1
>
> AFAICT, this is because the line
>
> This is librep.info, produced by makeinfo version 4.11 from librep.texi.
>
> somehow wound up within the INFO-DIR-ENTRY block rather than above it
> as in other files.

This is a bug in texinfo which was discussed in the thread starting at
http://lists.gnu.org/archive/html/bug-texinfo/2007-10/msg00019.html.
The following patch is taken from that discussion:

--- cmds.c.~1.76.~      2007-09-26 13:53:39.000000000 -0700
+++ cmds.c      2007-10-13 16:43:56.000000000 -0700
@@ -1633,6 +1633,10 @@
         {
+          /* use add_* instead of insert_* because otherwise the
+             file header ("This is ...") will end up inside the
+             dir section markers.  */
           kill_self_indent (-1); /* make sure there's no indentation */
-          insert_string ("INFO-DIR-SECTION ");
-          insert_string (line);
-          insert ('\n');
+          cm_noindent (); /* make sure again */
+          add_word ("INFO-DIR-SECTION ");
+          add_word (line);
+          add_char ('\n');
         }


Cheers,
       Sven



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

Reply via email to