Follow-up Comment #12, bug #68497 (group groff):

At 2026-07-06T04:05:47-0400, garavel wrote:
> Follow-up Comment #11, bug #68497 (group groff):
> Thanks for all your efforts... Until version 1.25 is out and
> propagated to Illumos/OpenIndiana, I wonder if there would be a
> temporary fix, different from replacing option -man by -mgan, which
> may slightly modify the format of my manual pages.
>
> Would it be possible for me, in the meantime, to patch directly (on
> OpenIndiana) the files
> /usr/share/lib/tmac/{an,ansun,ansun.tbl}
> in order to replace the problematic instructions .bd by an equivalent
> form accepted by version 1.24.1? Of course, this would be temporary,
> until version 1.25 arrives and restores everything.

Sure.  It should be a simple matter of commenting out the `bd` request
in the file(s).  Per the research Deri James and I have done in
bug #68256, it looks like the request was a no-op on Solaris troff (and
several others) anyway.

Here's an exhibit of things failing and then working with a patch on my
GNU/Linux box.


$ ~/groff-1.24.1/bin/groff -C HISTORY/MAN/openindiana-doctools-0.5.11/an
troff: ../src/roff/troff/input.cpp:2887: bool
token::is_usable_as_delimiter(bool, delimiter_context): Assertion `context !=
DELIMITER_GROFF_EXPRESSION' failed.
/home/branden/groff-1.24.1/bin/groff: error: troff: Aborted (core dumped)
$ diff -u HISTORY/MAN/openindiana-doctools-0.5.11/an{,.patched}
--- HISTORY/MAN/openindiana-doctools-0.5.11/an  2026-07-05 09:27:40.392532301
-0500
+++ HISTORY/MAN/openindiana-doctools-0.5.11/an.patched  2026-07-06
03:07:42.953095382 -0500
@@ -582,7 +582,7 @@
 .nr )p 0 1
 .ds ]I \\\\n(]
 .ds ]R \\\\n()
-.bd S 3 3
+.\"bd S 3 3
 .if t .ds R \(rg
 .if n .ds R (Reg.)
 .ds S \s10
$ ~/groff-1.24.1/bin/groff -C
HISTORY/MAN/openindiana-doctools-0.5.11/an.patched && echo SUCCESS
SUCCESS


Let me know if this works--or doesn't!



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68497>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to