qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PULL v2 000/180] QAPI patches for 2017-01-16


From: Peter Maydell
Subject: Re: [Qemu-devel] [PULL v2 000/180] QAPI patches for 2017-01-16
Date: Tue, 17 Jan 2017 11:08:16 +0000

On 17 January 2017 at 08:31, Markus Armbruster <address@hidden> wrote:
> Peter Maydell <address@hidden> writes:
>> This seems to trigger some warnings from older makeinfo versions:
>>
>> On the Fedora 20 ppc64be box and Ubuntu 14.04.5 LTS aarch64 box
>> (Ubuntu: makeinfo (GNU texinfo) 5.2;
>>  Fedora: makeinfo (GNU texinfo) 5.1)
>
> Nobody should be using F20 by now, but the Ubuntu LTS is still legit.

The F20 box is the GCC compile farm's ppc64be box, so I'm not going
to drop it from the build system list I'm afraid.

>> /home/pm215/qemu/docs/qemu-ga-ref.texi:41: warning: undefined flag: VERSION
>> /home/pm215/qemu/docs/qemu-ga-ref.texi:41: warning: undefined flag: VERSION
>> /home/pm215/qemu/docs/qemu-qmp-ref.texi:41: warning: undefined flag: VERSION
>> /home/pm215/qemu/docs/qemu-qmp-ref.texi:41: warning: undefined flag: VERSION
>
> This is supposed to be defined in Makefile:
>
>     MAKEINFO=makeinfo -D 'VERSION $(VERSION)'
>
> Hrrm, Texinfo's NEWS file has for 6.0:
>
> * texi2any:
>   [...]
>   . -D'var val' on the command line works as intended again.
>
> I tried to find out more about this fix, but the Texinfo repository's
> commit log is useless.
>
> I can reproduce the warning with 6.2 by running makeinfo without -D.
> Curiously, output isn't affected.  Looks like @subtitle is ignored by
> makeinfo.

That suggests we should be putting the VERSION information
somewhere else so it actually appears in the output :-)

Maybe writing the VERSION info to a file as a @set command
(and then including that file in the texi) would work ?

> Possible work-around I could squash in:
>
> diff --git a/docs/qemu-qmp-ref.texi b/docs/qemu-qmp-ref.texi
> index 818e525..e0f2454 100644
> --- a/docs/qemu-qmp-ref.texi
> +++ b/docs/qemu-qmp-ref.texi
> @@ -38,7 +38,9 @@ along with this manual.  If not, see 
> http://www.gnu.org/licens
> es/.
>
>  @titlepage
>  @title QMP Reference Manual
> address@hidden @c Work around bug in Texinfo prior to 6.0
>  @subtitle QEMU version @value{VERSION}
> address@hidden iftex
>  @page
>  @vskip 0pt plus 1filll
>  @insertcopying
>
> Marc-André, what do you think?
>
>> On OSX (makeinfo (GNU texinfo) 4.8):
>
> That's from 2004.  Just sayin'.

I assume it's the last GPLv2 version...

>> ./qemu-options.texi:60: warning: unlikely character [ in @var.
>> ./qemu-options.texi:60: warning: unlikely character ] in @var.
>> ./qemu-options.texi:61: warning: unlikely character [ in @var.
>> ./qemu-options.texi:61: warning: unlikely character ] in @var.
>
> Generated qemu-options.texi did not change (I checked).
>
> The offending lines are
>
>     @item -numa node[,address@hidden,address@hidden,address@hidden
>     @itemx -numa node[,address@hidden,address@hidden,address@hidden
>
> which are generated from qemu-options.hx's
>
>     DEF("numa", HAS_ARG, QEMU_OPTION_numa,
>         "-numa node[,mem=size][,cpus=cpu[-cpu]][,nodeid=node]\n"
>         "-numa node[,memdev=id][,cpus=cpu[-cpu]][,nodeid=node]\n", 
> QEMU_ARCH_ALL)
>
> by scripts/hxtool.
>
> This use of @var{} is perhaps questionable, but nothing changed around
> here for many moons.  Are you sure this is new in my pull request?

Yep, definitely new. With current master:

bash-3.2$ touch qemu-options.hx
bash-3.2$ make -C build/all
  GEN     qemu-options.def
  GEN     qemu-options.texi
  GEN     qemu-doc.html
/Users/pm215/src/qemu-for-merges/qemu-doc.texi:7: warning:
unrecognized encoding name `UTF-8'.

but no warnings about unlikely characters.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]