Re: groff 1.24.0.rc2 on NetBSD

"G. Branden Robinson" <[email protected]>
Newsgroups gmane.comp.printing.groff.general
Message-ID <20260127190551.buyx2oa2lfntne6d@illithid>
At 2026-01-27T18:52:25+0100, Bruno Haible wrote:
> On NetBSD 10.0, on the console (with TERM=wsvt25), the build with
> --without-urw-fonts succeeds, but there are 3 test failures. Log is attached.
> 
> FAIL: src/preproc/tbl/tests/boxed-TH-tables-work-on-utf8-device.sh

This is the same as the lone OpenBSD test failure;[1] fixed in my
working copy.

> FAIL: tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh
> FAIL: tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh

Another blunder on my part.

diff --git a/ChangeLog b/ChangeLog
index 6c89507c6..69bea9494 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-01-27  G. Branden Robinson <[email protected]>
+
+       * tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh:
+       * tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh: Fix
+       regex to correctly quote a closing parenthesis _not_ used as an
+       ERE grouping operator.  Fixes spurious test failures on NetBSD.
+       Sadly, neither GNU grep 3.6 nor 3.12.14 warned me of my mistake.
+       Thanks to Bruno Haible for the report.
+
 2026-01-27  G. Branden Robinson <[email protected]>

        * src/preproc/tbl/tests/boxed-TH-tables-work-on-utf8-device.sh:
diff --git a/tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh b/tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh
index 10219e573..0b2ff586a 100755
--- a/tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh
+++ b/tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh
@@ -68,7 +68,7 @@ echo "$output" \

 echo "checking that external links are not rewritten" >&2
 echo "$output" \
-  | grep -Eq '^ *301[[:space:]]+x X pdf: markstart .*/URI \(man:baz\(1\))' \
+  | grep -Eq '^ *301[[:space:]]+x X pdf: markstart .*/URI \(man:baz\(1\)\)' \
   || wail

 test -z "$fail"
diff --git a/tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh b/tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh
index 72d0fd98a..9d97c42e1 100755
--- a/tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh
+++ b/tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh
@@ -125,7 +125,7 @@ echo "$output2" \

 echo "checking that external links are not rewritten" >&2
 echo "$output2" \
-  | grep -Eq '^ *278[[:space:]]+x X pdf: markstart .*/URI \(man:baz\(1\))' \
+  | grep -Eq '^ *278[[:space:]]+x X pdf: markstart .*/URI \(man:baz\(1\)\)' \
   || wail

 test -z "$fail"

Regards,
Branden

[1] https://lists.gnu.org/archive/html/groff/2026-01/msg00128.html
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAml5DIgACgkQ0Z6cfXEm
bc7vcg/+Pw9LqhWawsPz+YFAD21lFMLWyTUCtfXfy1n0GT6G8O8UvFOicXPfpF3N
iErxJovsUUv+HprR32+UMVJMLezRRJXGyXis+eIHX25GYwYDe3VSgBhkhN2mGoyh
mdf4iMF+46nMufV89gKgoq/8bSxEsG8onSWHHBz4WkOgTX5WLVKQPma3AL6C3h+r
LAeJCwsgJhbZM8BmrtDJD7eZ/PSacyerQ+Ua+FpiL5m+S9x6zIYXsKvxdK2IS4wO
JxYQFzhZdRwuM3zztfqYZ1Y2i72ZxL17mH2x4CvjF0vOPaBS++DnfAmn6cY0JUUm
NVBiZG4CffXLCP9tDHONV+KMBMe6y8FiwRZMCCn7+vkI1liR7zpb8WP2dvrDRpkL
nIBLhXj+kM83tOopM/zly4plsUAyTWPq5QczPY1TUnle00KjLDNMovCswwfCqQxZ
kS8H1SFYzWmemA1QB2SZSB3Zws0ECfiEslIfxSCNuepDLxGXZJif/X4maI2aX/Hq
2/JcnAy/Snf5wzSK5ZT4RZDCJFlg8riiapD7VGU1OH/u7qeEAk68M5T7/7rDateC
UAEmIux03e9WpZUQdp0yZj4mxsGNbOdE3dRt9jPP8QQ/PFPq8gVA0Z44JHj6xi3O
IFxHMxBTa7Mi2wlpIXe1huyvcKCxAtUjfdEjYUN+YaK1s62xiPU=
=7WNS
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.