On 3/13/10, Vagrant Cascadian <vagr...@freegeek.org> wrote:
> On Sat, Mar 13, 2010 at 01:05:03PM +0200, Blue Swirl wrote:
>  > On 3/12/10, Vagrant Cascadian <vagr...@freegeek.org> wrote:
>  > >  i found this spelling typo and the previous one by running lintian on 
> the qemu
>  > >  packages i work on for debian:
>  > >
>  > >  
> http://lintian.debian.org/full/pkg-qemu-de...@lists.alioth.debian.org.html#qemu
>  >
>  > Perhaps the manual page errors should be fixed too,
>
>  i did look into that a bit, though it is a little tricky because it's got the
>  qemu-doc.texi and qemu-options.texi (texinfo?) layer of abstraction. for the
>  full details:
>
>   LANG=C MANWIDTH=80 man --warnings -E UTF-8 -l ./qemu.1 >/dev/null
>   <standard input>:730: warning [p 9, 4.8i, div `an-div', 0.2i]: can't break 
> line
>   <standard input>:730: warning [p 9, 5.0i]: can't break line
>   <standard input>:735: warning [p 9, 5.8i, div `an-div', 0.2i]: can't break 
> line
>   <standard input>:735: warning [p 9, 6.0i]: can't break line
>   <standard input>:869: warning [p 11, 5.2i, div `an-div', 0.2i]: can't break 
> line
>   <standard input>:869: warning [p 11, 5.3i]: can't break line
>   <standard input>:890: warning [p 11, 8.3i, div `an-div', 0.2i]: can't break 
> line
>   <standard input>:890: warning [p 11, 8.5i]: can't break line
>   <standard input>:953: warning [p 12, 5.8i, div `an-div', 0.2i]: can't break 
> line
>   <standard input>:953: warning [p 12, 6.0i]: can't break line
>   <standard input>:1732: warning [p 22, 1.8i, div `an-div', 0.2i]: can't 
> break line
>   <standard input>:1732: warning [p 22, 2.0i]: can't break line
>
>  the generated manpage has several lines longer than 80 characters describing
>  commandline arguments, such as:
>
>        -smbios
>        
> type=1[,manufacturer=str][,product=str][,version=str][,serial=str][,uuid=uuid][,sku=str][,family=str]
>            Specify SMBIOS type 1 fields
>  ...
>        -net
>        
> nic[,vlan=n][,macaddr=mac][,model=type][,name=name][,addr=addr][,vectors=v]
>
>  and so on...
>
>  i don't know if there is a way to more succinctly describe those options that
>  gets all the details... or an easy way to generate the manpage to fix the
>  formatting issues with those long lines.

How about this patch? I get no warnings anymore.
From cb53fa02e9465174ecd1ea7038a48539801b11c8 Mon Sep 17 00:00:00 2001
From: Blue Swirl <blauwir...@gmail.com>
Date: Sun, 14 Mar 2010 09:49:40 +0000
Subject: [PATCH] Fix manpage errors

Split long unbreakable lines to smaller sections.

Spotted by Debian Lintian tool:
http://lintian.debian.org/full/pkg-qemu-de...@lists.alioth.debian.org.html#qemu

Signed-off-by: Blue Swirl <blauwir...@gmail.com>
---
 qemu-doc.texi   |    2 +-
 qemu-options.hx |   12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/qemu-doc.texi b/qemu-doc.texi
index 1494757..6647b7b 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -1504,7 +1504,7 @@ qemu-system-sparc -prom-env 'auto-boot?=false' \
  -prom-env 'boot-device=sd(0,2,0):d' -prom-env 'boot-args=linux single'
 @end example
 
-...@item -M [SS-4|SS-5|SS-10|SS-20|SS-600MP|LX|Voyager|SPARCClassic|SPARCbook|SS-2|SS-1000|SS-2000]
+...@item -M [SS-4|SS-5|SS-10|SS-20|SS-600MP|LX|Voyager|SPARCClassic] [|SPARCbook|SS-2|SS-1000|SS-2000]
 
 Set the emulated machine type. Default is SS-5.
 
diff --git a/qemu-options.hx b/qemu-options.hx
index fd50add..8450b45 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -852,7 +852,7 @@ Load SMBIOS entry from binary file.
 @findex -smbios
 Specify SMBIOS type 0 fields
 
-...@item -smbios type=1[,manufactur...@var{str}][,produ...@var{str}][,versi...@var{str}][,seri...@var{str}][,uu...@var{uuid}][,s...@var{str}][,fami...@var{str}]
+...@item -smbios type=1[,manufactur...@var{str}][,produ...@var{str}] [,versi...@var{str}][,seri...@var{str}][,uu...@var{uuid}][,s...@var{str}] [,fami...@var{str}]
 Specify SMBIOS type 1 fields
 ETEXI
 
@@ -932,7 +932,7 @@ DEF("netdev", HAS_ARG, QEMU_OPTION_netdev,
 #endif
     "socket],id=str[,option][,option][,...]\n")
 STEXI
-...@item -net nic[,vl...@var{n}][,macad...@var{mac}][,mod...@var{type}][,na...@var{name}][,ad...@var{addr}][,vecto...@var{v}]
+...@item -net nic[,vl...@var{n}][,macad...@var{mac}][,mod...@var{type}] [,na...@var{name}][,ad...@var{addr}][,vecto...@var{v}]
 @findex -net
 Create a new Network Interface Card and connect it to VLAN @var{n} (@var{n}
 = 0 is the default). The NIC is an e1000 by default on the PC
@@ -1063,7 +1063,7 @@ processed and applied to -net user. Mixing them with the new configuration
 syntax gives undefined results. Their use for new applications is discouraged
 as they will be removed from future versions.
 
-...@item -net tap[,vl...@var{n}][,na...@var{name}][,f...@var{h}][,ifna...@var{name}][,scri...@var{file}][,downscri...@var{dfile}]
+...@item -net tap[,vl...@var{n}][,na...@var{name}][,f...@var{h}][,ifna...@var{name}] [,scri...@var{file}][,downscri...@var{dfile}]
 Connect the host TAP network interface @var{name} to VLAN @var{n}, use
 the network script @var{file} to configure it and the network script
 @var{dfile} to deconfigure it. If @var{name} is not provided, the OS
@@ -1083,7 +1083,7 @@ qemu linux.img -net nic,vlan=0 -net tap,vlan=0,ifname=tap0 \
                -net nic,vlan=1 -net tap,vlan=1,ifname=tap1
 @end example
 
-...@item -net socket[,vl...@var{n}][,na...@var{name}][,f...@var{h}][,liste...@var{host}]:@var{port}][,conne...@var{host}:@var{port}]
+...@item -net socket[,vl...@var{n}][,na...@var{name}][,f...@var{h}] [,liste...@var{host}]:@var{port}][,conne...@var{host}:@var{port}]
 
 Connect the VLAN @var{n} to a remote VLAN in another QEMU virtual
 machine using a TCP socket connection. If @option{listen} is
@@ -1103,7 +1103,7 @@ qemu linux.img -net nic,macaddr=52:54:00:12:34:57 \
                -net socket,connect=127.0.0.1:1234
 @end example
 
-...@item -net socket[,vl...@var{n}][,na...@var{name}][,f...@var{h}][,mca...@var{maddr}:@var{port}]
+...@item -net socket[,vl...@var{n}][,na...@var{name}][,f...@var{h}] [,mca...@var{maddr}:@var{port}]
 
 Create a VLAN @var{n} shared with another QEMU virtual
 machines using a UDP multicast socket, effectively making a bus for
@@ -1143,7 +1143,7 @@ qemu linux.img -net nic,macaddr=52:54:00:12:34:56 \
 /path/to/linux ubd0=/path/to/root_fs eth0=mcast
 @end example
 
-...@item -net vde[,vl...@var{n}][,na...@var{name}][,so...@var{socketpath}][,po...@var{n}][,gro...@var{groupname}][,mo...@var{octalmode}]
+...@item -net vde[,vl...@var{n}][,na...@var{name}][,so...@var{socketpath}] [,po...@var{n}][,gro...@var{groupname}][,mo...@var{octalmode}]
 Connect VLAN @var{n} to PORT @var{n} of a vde switch running on host and
 listening for incoming connections on @var{socketpath}. Use GROUP @var{groupname}
 and MODE @var{octalmode} to change default ownership and permissions for
-- 
1.5.6.5

Reply via email to