URL: <https://savannah.gnu.org/bugs/?67618>
Summary: [gropdf] build tree's pdfmom runs the system's
groff, not the build's
Group: GNU roff
Submitter: gbranden
Submitted: Tue 21 Oct 2025 07:46:39 PM UTC
Category: Driver gropdf
Severity: 3 - Normal
Item Group: Incorrect behaviour
Status: In Progress
Privacy: Public
Assigned to: gbranden
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 21 Oct 2025 07:46:39 PM UTC By: G. Branden Robinson <gbranden>
Writing regression tests for pdfmom's link-rewriting mechanism revealed this
problem when doing a distribution build ("make dist").
...
make[4]: Entering directory '/home/branden/src/GIT/groff/build'
PASS: contrib/gdiffmk/tests/runtests.sh
GEN contrib/hdtbl/examples/test-hdtbl.sh
..
FAIL: tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh
...
FAIL: tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh
...
FAIL: tmac/tests/doc_Xr-internal-hyperlinks-work-with-pdfmom.sh
...
PASS: tmac/tests/s_vertical-margins-are-correct.sh
============================================================================
Testsuite summary for GNU roff 1.23.0.4097-d6aa2
============================================================================
# TOTAL: 287
# PASS: 279
# SKIP: 0
# XFAIL: 5
# FAIL: 3
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to http://savannah.gnu.org/bugs/?group=groff
============================================================================
make[4]: *** [Makefile:13145: test-suite.log] Error 1
...
This small patch to _pdfmom_ makes the problem obvious.
diff --git a/src/devices/gropdf/pdfmom.pl b/src/devices/gropdf/pdfmom.pl
index ec9bf101f..6301947e8 100644
--- a/src/devices/gropdf/pdfmom.pl
+++ b/src/devices/gropdf/pdfmom.pl
@@ -140,6 +140,8 @@ while (my $c=shift)
elsif ($c eq '-v' or $c eq '--version')
{
print "GNU pdfmom (groff) version @VERSION@\n";
+ my $waitstatus = system("groff -T$dev --version");
+ abort(autopsy($?)) unless $waitstatus == 0;
exit;
}
elsif (substr($c,0,1) eq '-')
Running _pdfmom_ as patched with the `--version` option, it's even more
obvious.
$ ./build/pdfmom --version
GNU pdfmom (groff) version 1.23.0.4097-d6aa2
GNU groff version 1.23.0
Copyright (C) 2022 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file
named COPYING.
called subprograms:
GNU troff (groff) version 1.23.0
GNU gropdf (groff) version 1.23.0
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67618>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
