gbranden pushed a commit to branch master
in repository groff.
commit 2c1f9e3683d8dc80746101f743773c911652c4a8
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Oct 28 19:31:59 2026 -0500
[mm,pdfmom]: Tweak autopsy subroutine diagnostic.
* contrib/mm/mmroff.pl (autopsy):
* src/utils/pdfmom/pdfmom.pl (autopsy): If the wait status of the groff
command we tried to run is -1, report the name of the groff command we
actually tried to run, not "groff" literally.
---
ChangeLog | 6 ++++++
contrib/mm/ChangeLog | 6 ++++++
contrib/mm/mmroff.pl | 2 +-
src/utils/pdfmom/pdfmom.pl | 2 +-
4 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1314d1688..dbdb9cda6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-10-28 G. Branden Robinson <[email protected]>
+
+ * src/utils/pdfmom/pdfmom.pl (autopsy): If the wait status of
+ the groff command we tried to run is -1, report the name of the
+ groff command we actually tried to run, not "groff" literally.
+
2026-10-25 G. Branden Robinson <[email protected]>
[troff]: Fix Savannah #68837.
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 4e736aa36..9d52c2b8f 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,9 @@
+2026-10-28 G. Branden Robinson <[email protected]>
+
+ * mmroff.pl (autopsy): If the wait status of the groff command
+ we tried to run is -1, report the name of the groff command we
+ actually tried to run, not "groff" literally.
+
2026-10-28 G. Branden Robinson <[email protected]>
* mmroff.pl: Adopt pdfmom(1)'s method of locating the groff
diff --git a/contrib/mm/mmroff.pl b/contrib/mm/mmroff.pl
index a38615ed3..22f30dc92 100644
--- a/contrib/mm/mmroff.pl
+++ b/contrib/mm/mmroff.pl
@@ -47,7 +47,7 @@ sub autopsy
my $finding;
if ($waitstatus == -1) {
- $finding = "cannot run groff: $!\n";
+ $finding = "cannot run $groff: $!\n";
}
elsif ($? & 127) {
$finding = sprintf("$groff died with signal %d, %s core dump\n",
diff --git a/src/utils/pdfmom/pdfmom.pl b/src/utils/pdfmom/pdfmom.pl
index 140ddebae..9f30bab48 100644
--- a/src/utils/pdfmom/pdfmom.pl
+++ b/src/utils/pdfmom/pdfmom.pl
@@ -66,7 +66,7 @@ sub autopsy
my $finding;
if ($waitstatus == -1) {
- $finding = "unable to run groff: $!\n";
+ $finding = "unable to run $groff: $!\n";
}
elsif ($? & 127) {
$finding = sprintf("$groff died with signal %d, %s core dump\n",
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit