Package: uuid-dev
Version: 2.40.1-8
Severity: minor
Tags: patch

Dear Maintainer,

   * What led up to the situation?

     Checking for defects with

[test-]groff -mandoc -t -K utf8 -ww -b -z <man page>

  [test-groff is a script in the repository for "groff"]

   * What was the outcome of this action?

troff: backtrace: file '<stdin>':10
troff:<stdin>:10: warning: macro 'Aq' not defined

   * What outcome did you expect instead?

     No output (warnings).

-.-

  Remarks and a patch are in the attachments.

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.7.12-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), 
LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages uuid-dev depends on:
ii  libc6-dev [libc-dev]  2.38-12
ii  libuuid1              2.40.1-8

uuid-dev recommends no packages.

uuid-dev suggests no packages.

-- no debconf information
  Any program (person), that produces man pages, should check its content for
defects by using

groff -mandoc -t -ww -b -z [ -K utf8 | k ] <man page>

  The same goes for man pages that are used as an input.

  For a style guide use

  mandoc -T lint

-.-

  So any generator should check its products with the above mentioned
'groff' and additionally with 'nroff ...'.

  This is just a simple quality control measure.

  The generator may have to be corrected to get a better man page,
the source file may, and any additional file may.

-.-

The difference between the formatted outputs can be seen with:

  nroff -mandoc <file1> > <out1>
  nroff -mandoc <file2> > <out2>
  diff -u <out1> <out2>

and for groff, using

"printf '%s\n%s\n' '.kern 0' '.ss 12 0' | groff -mandoc -Z - "

instead of "nroff -mandoc"

  Add the option "-t", if the file contains a table.

  Read the output of "diff -u" with "less -R" or similar.

-.-.

  If "man" (man-db) is used to check the manual for warnings,
the following must be set:

  The option "-warnings=w"

  The environmental variable:

export MAN_KEEP_STDERR=yes (or any non-empty value)

  or

  (produce only warnings):

export MANROFFOPT="-ww -z"

export MAN_KEEP_STDERR=yes (or any non-empty value)

-.-.

Output from "mandoc -T lint uuid.3": (possibly shortened list)

mandoc: uuid.3:10:61: WARNING: undefined string, using "": Aq
mandoc: uuid.3:21:9: ERROR: skipping insecure request: mso
mandoc: uuid.3:28:4: ERROR: skipping unknown macro:  LINKSTYLE blue R < >
mandoc: uuid.3:33:2: WARNING: skipping paragraph macro: sp after SH
mandoc: uuid.3:36:2: WARNING: skipping paragraph macro: sp after SH
mandoc: uuid.3:37:278: STYLE: input text line longer than 80 bytes: The UUID 
library is ...
mandoc: uuid.3:39:294: STYLE: input text line longer than 80 bytes: The UUIDs 
generated ...
mandoc: uuid.3:41:2: WARNING: skipping paragraph macro: sp after SH
mandoc: uuid.3:42:107: STYLE: input text line longer than 80 bytes: This 
library generat...
mandoc: uuid.3:45:2: WARNING: skipping paragraph macro: sp after SH
mandoc: uuid.3:48:2: WARNING: skipping paragraph macro: sp after SH
mandoc: uuid.3:58:2: WARNING: skipping paragraph macro: sp after SH
mandoc: uuid.3:62:2: WARNING: skipping paragraph macro: sp after SH
mandoc: uuid.3:63:111: STYLE: input text line longer than 80 bytes: The 
\fBlibuuid\fP li...

-.-.

Lines containing '\c':

42:This library generates UUIDs compatible with OSF DCE 1.1, and hash based 
UUIDs V3 and V5 compatible with \c
59:For bug reports, use the issue tracker at \c
63:The \fBlibuuid\fP library is part of the util\-linux package since version 
2.15.1. It can be downloaded from \c



Wrong distance between sentences.

  Separate the sentences and subordinate clauses; each begins on a new
line.  See man-pages(7) ("Conventions for source file layout") and
"info groff" ("Input Conventions").

  The best procedure is to always start a new sentence on a new line,
at least, if you are typing on a computer.

Remember coding: Only one command ("sentence") on each (logical) line.

E-mail: Easier to quote exactly the relevant lines.

Generally: Easier to edit the sentence.

Patches: Less unaffected text.

Search for two adjacent words is easier, when they belong to the same line,
and the same phrase.

  The amount of space between sentences in the output can then be
controlled with the ".ss" request.

N.B.

  The number of lines affected can be too large to be in the patch.

37:The UUID library is used to generate unique identifiers for objects that may 
be accessible beyond the local system. This library generates UUIDs compatible 
with those created by the Open Software Foundation (OSF) Distributed Computing 
Environment (DCE) utility \fBuuidgen\fP(1).
39:The UUIDs generated by this library can be reasonably expected to be unique 
within a system, and unique across all systems. They could be used, for 
instance, to generate unique HTTP cookies across multiple web servers without 
communication between the servers, and without fear of a name clash.
46:Theodore Y. Ts\(cqo
63:The \fBlibuuid\fP library is part of the util\-linux package since version 
2.15.1. It can be downloaded from \c

-.-.

Test nr. 32:

Split lines longer than 80 characters into two or more lines.
Appropriate break points are the end of a sentence and a subordinate
clause; after punctuation marks.

N.B.

  The number of lines affected can be too large to be in the patch.


Line 37, length 278

The UUID library is used to generate unique identifiers for objects that may be 
accessible beyond the local system. This library generates UUIDs compatible 
with those created by the Open Software Foundation (OSF) Distributed Computing 
Environment (DCE) utility \fBuuidgen\fP(1).

Line 39, length 294

The UUIDs generated by this library can be reasonably expected to be unique 
within a system, and unique across all systems. They could be used, for 
instance, to generate unique HTTP cookies across multiple web servers without 
communication between the servers, and without fear of a name clash.

Line 42, length 107

This library generates UUIDs compatible with OSF DCE 1.1, and hash based UUIDs 
V3 and V5 compatible with \c

Line 63, length 111

The \fBlibuuid\fP library is part of the util\-linux package since version 
2.15.1. It can be downloaded from \c

Line 64, length 85

.URL "https://www.kernel.org/pub/linux/utils/util\-linux/"; "Linux Kernel 
Archive" "."


-.-.

Output from "test-groff -b -mandoc -rF0 -rHY=0 -K utf8 -t -ww -z ":

troff: backtrace: file '<stdin>':10
troff:<stdin>:10: warning: macro 'Aq' not defined
troff: backtrace: file '<stdin>':65
troff:<stdin>:65: warning: macro '.' not defined

--- uuid.3      2024-06-08 21:28:36.102121313 +0000
+++ uuid.3.new  2024-06-08 22:54:45.395442660 +0000
@@ -7,9 +7,9 @@
 .\"    Source: util-linux 2.40.1
 .\"  Language: English
 .\"
-.TH "UUID" "3" "2024-01-31" "util\-linux 2.40.1" "Programmer\*(Aqs Manual"
 .ie \n(.g .ds Aq \(aq
 .el       .ds Aq '
+.TH "UUID" "3" "2024-01-31" "util\-linux 2.40.1" "Programmer\*(Aqs Manual"
 .ss \n[.ss] 0
 .nh
 .ad l
@@ -30,22 +30,28 @@
 .SH "NAME"
 uuid \- DCE compatible Universally Unique Identifier library
 .SH "SYNOPSIS"
-.sp
 \fB#include <uuid.h>\fP
 .SH "DESCRIPTION"
+The UUID library is used to generate unique identifiers for objects that may
+be accessible beyond the local system.
+This library generates UUIDs compatible with those created by the Open
+Software Foundation (OSF)
+Distributed Computing Environment (DCE) utility \fBuuidgen\fP(1).
 .sp
-The UUID library is used to generate unique identifiers for objects that may 
be accessible beyond the local system. This library generates UUIDs compatible 
with those created by the Open Software Foundation (OSF) Distributed Computing 
Environment (DCE) utility \fBuuidgen\fP(1).
-.sp
-The UUIDs generated by this library can be reasonably expected to be unique 
within a system, and unique across all systems. They could be used, for 
instance, to generate unique HTTP cookies across multiple web servers without 
communication between the servers, and without fear of a name clash.
+The UUIDs generated by this library can be reasonably expected to be unique
+within a system,
+and unique across all systems.
+They could be used, for instance,
+to generate unique HTTP cookies across multiple web servers without
+communication between the servers,
+and without fear of a name clash.
 .SH "CONFORMING TO"
-.sp
-This library generates UUIDs compatible with OSF DCE 1.1, and hash based UUIDs 
V3 and V5 compatible with \c
+This library generates UUIDs compatible with OSF DCE 1.1, and hash based
+UUIDs V3 and V5 compatible with
 .URL "https://tools.ietf.org/html/rfc4122"; "RFC\-4122" "."
 .SH "AUTHORS"
-.sp
-Theodore Y. Ts\(cqo
+Theodore Y.\& Ts\(cqo
 .SH "SEE ALSO"
-.sp
 \fBuuid_clear\fP(3),
 \fBuuid_compare\fP(3),
 \fBuuid_copy\fP(3),
@@ -55,10 +61,11 @@ Theodore Y. Ts\(cqo
 \fBuuid_time\fP(3),
 \fBuuid_unparse\fP(3)
 .SH "REPORTING BUGS"
-.sp
-For bug reports, use the issue tracker at \c
+For bug reports, use the issue tracker at
 .URL "https://github.com/util\-linux/util\-linux/issues"; "" "."
 .SH "AVAILABILITY"
-.sp
-The \fBlibuuid\fP library is part of the util\-linux package since version 
2.15.1. It can be downloaded from \c
-.URL "https://www.kernel.org/pub/linux/utils/util\-linux/"; "Linux Kernel 
Archive" "."
\ No newline at end of file
+The \fBlibuuid\fP library is part of the util\-linux package since version
+2.15.1.
+It can be downloaded from
+.URL "https://www.kernel.org/pub/linux/utils/util\-linux/"; "Linux Kernel \
+Archive" "."

Reply via email to