public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, doc]: Fix "POD document had syntax errors at /usr/bin/pod2man line 69." error
@ 2014-05-18  9:10 Uros Bizjak
  2014-05-24  6:40 ` Uros Bizjak
  0 siblings, 1 reply; 2+ messages in thread
From: Uros Bizjak @ 2014-05-18  9:10 UTC (permalink / raw)
  To: gcc-patches; +Cc: Gerald Pfeifer

[-- Attachment #1: Type: text/plain, Size: 1363 bytes --]

Hello!

Attached patch fixes following errors in .pod document sources:

gfdl.pod around line 53: Expected text after =item, not a number
gfdl.pod around line 147: Expected text after =item, not a number
gfdl.pod around line 165: Expected text after =item, not a number
gfdl.pod around line 205: Expected text after =item, not a number
gfdl.pod around line 357: Expected text after =item, not a number
gfdl.pod around line 384: Expected text after =item, not a number
gfdl.pod around line 400: Expected text after =item, not a number
gfdl.pod around line 422: Expected text after =item, not a number
gfdl.pod around line 445: Expected text after =item, not a number
gfdl.pod around line 475: Expected text after =item, not a number
gfdl.pod around line 499: Expected text after =item, not a number
POD document had syntax errors at /usr/bin/pod2man line 69.
gmake[3]: [doc/gfdl.7] Error 1 (ignored)

As suggested in the fix for a similar problem [1], the solution is to
put "Z<>" in the "=item" argument string.

2014-05-18  Uros Bizjak  <ubizjak@gmail.com>

    * texi2pod.pl: Force .pod file to not be a numbered list.

The fix was tested by bootstrapping on Fedora20 x86_64-pc-linux-gnu,
and also comparing previous .man and .html files with new ones. They
were bit-exact.

OK for mainline and 4.9?

[1] http://comments.gmane.org/gmane.network.inn/9841

Uros.

[-- Attachment #2: c.diff.txt --]
[-- Type: text/plain, Size: 581 bytes --]

Index: texi2pod.pl
===================================================================
--- texi2pod.pl	(revision 210579)
+++ texi2pod.pl	(working copy)
@@ -1,6 +1,6 @@
 #! /usr/bin/perl -w
 
-#   Copyright (C) 1999, 2000, 2001, 2003, 2010 Free Software Foundation, Inc.
+#   Copyright (C) 1999-2014 Free Software Foundation, Inc.
 
 # This file is part of GCC.
 
@@ -337,7 +337,7 @@
                 $_ = "\n=item $1\n";
             }
 	} else {
-	    $_ = "\n=item $ic\n";
+	    $_ = "\n=item Z\&LT;\&GT;$ic\n";
 	    $ic =~ y/A-Ya-y/B-Zb-z/;
 	    $ic =~ s/(\d+)/$1 + 1/eg;
 	}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH, doc]: Fix "POD document had syntax errors at /usr/bin/pod2man line 69." error
  2014-05-18  9:10 [PATCH, doc]: Fix "POD document had syntax errors at /usr/bin/pod2man line 69." error Uros Bizjak
@ 2014-05-24  6:40 ` Uros Bizjak
  0 siblings, 0 replies; 2+ messages in thread
From: Uros Bizjak @ 2014-05-24  6:40 UTC (permalink / raw)
  To: gcc-patches; +Cc: Gerald Pfeifer

On Sun, May 18, 2014 at 11:10 AM, Uros Bizjak <ubizjak@gmail.com> wrote:

> Attached patch fixes following errors in .pod document sources:
>
> gfdl.pod around line 53: Expected text after =item, not a number
> gfdl.pod around line 147: Expected text after =item, not a number
> gfdl.pod around line 165: Expected text after =item, not a number
> gfdl.pod around line 205: Expected text after =item, not a number
> gfdl.pod around line 357: Expected text after =item, not a number
> gfdl.pod around line 384: Expected text after =item, not a number
> gfdl.pod around line 400: Expected text after =item, not a number
> gfdl.pod around line 422: Expected text after =item, not a number
> gfdl.pod around line 445: Expected text after =item, not a number
> gfdl.pod around line 475: Expected text after =item, not a number
> gfdl.pod around line 499: Expected text after =item, not a number
> POD document had syntax errors at /usr/bin/pod2man line 69.
> gmake[3]: [doc/gfdl.7] Error 1 (ignored)
>
> As suggested in the fix for a similar problem [1], the solution is to
> put "Z<>" in the "=item" argument string.
>
> 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
>
>     * texi2pod.pl: Force .pod file to not be a numbered list.
>
> The fix was tested by bootstrapping on Fedora20 x86_64-pc-linux-gnu,
> and also comparing previous .man and .html files with new ones. They
> were bit-exact.

I went ahead and install the patch in the mainline. It is a trivial
one-liner, and can be easily reverted if it makes troubles.

Uros.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-24  6:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-18  9:10 [PATCH, doc]: Fix "POD document had syntax errors at /usr/bin/pod2man line 69." error Uros Bizjak
2014-05-24  6:40 ` Uros Bizjak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).