Gentoo Archives: gentoo-dev

From: "Göktürk Yüksek" <gokturk@g.o>
To: base-system@g.o
Cc: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH v1] eclass/savedconfig.eclass: rewrite the ROFF macros
Date: Thu, 07 Nov 2019 23:56:24
Message-Id: 20191107235612.22154-1-gokturk@gentoo.org
1 man2html cannot cope with multi-character number-register names and
2 also doesn't recognize the square brackets in the '\n' escape
3 sequence. This breaks the autogenerated HTML output. Rename the
4 number-register from "step" to "R" and get rid of the square brackets.
5
6 Closes: https://bugs.gentoo.org/699476
7
8 Signed-off-by: Göktürk Yüksek <gokturk@g.o>
9 ---
10 eclass/savedconfig.eclass | 10 +++++-----
11 1 file changed, 5 insertions(+), 5 deletions(-)
12
13 diff --git a/eclass/savedconfig.eclass b/eclass/savedconfig.eclass
14 index dab2283fe0f..8f64c5b8edd 100644
15 --- a/eclass/savedconfig.eclass
16 +++ b/eclass/savedconfig.eclass
17 @@ -14,20 +14,20 @@
18 # so users can modify these config files and the ebuild will take it
19 # into account as needed.
20 #
21 -# @ROFF .nr step 1 1
22 +# @ROFF .nr R 1 1
23 # Typically you can create your own configuration files quickly by
24 # doing:
25 -# @ROFF .IP \n[step] 3
26 +# @ROFF .IP \nR 3
27 # Build the package with FEATURES=noclean USE=savedconfig.
28 -# @ROFF .IP \n+[step]
29 +# @ROFF .IP \n+R
30 # Go into the build dir and edit the relevant configuration system
31 # (e.g. `make menuconfig` or `nano config-header.h`). You can look
32 # at the files in /etc/portage/savedconfig/ to see what files get
33 # loaded/restored.
34 -# @ROFF .IP \n+[step]
35 +# @ROFF .IP \n+R
36 # Copy the modified configuration files out of the workdir and to
37 # the paths in /etc/portage/savedconfig/.
38 -# @ROFF .IP \n+[step]
39 +# @ROFF .IP \n+R
40 # Emerge the package with just USE=savedconfig to get the custom build.
41
42 inherit portability
43 --
44 2.24.0

Replies