gbranden pushed a commit to branch master
in repository groff.

commit ca305fe164795f5669dcb45e4dc3a142940732ee
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Jan 29 03:04:10 2026 -0600

    [devpdf]: Add `urwfontsupport` to BuildFoundries.
    
    Propagate "configure" shell variable `urwfontsupport` into
    "BuildFoundries" script, quieting build-time warnings when URW font
    support is explicitly deconfigured.
    
    * m4/groff.m4 (GROFF_URW_FONTS_SUPPORT): `AC_SUBST` `urwfontsupport` so
      that it is defined in Makefiles.
    * font/devpdf/devpdf.am (BuildFoundries): Add `urwfontsupport` to set of
      sed(1) substitutions performed when generating target.
    * font/devpdf/util/BuildFoundries.pl: Add `urwfontsupport` scalar,
      taking value of corresponding sed substituion.
    
      (LoadFoundry): Suppress warning about unavailable font if
      `urwfontsupport` matches "no".
---
 ChangeLog                          | 15 +++++++++++++++
 font/devpdf/devpdf.am              |  1 +
 font/devpdf/util/BuildFoundries.pl | 10 +++++++---
 m4/groff.m4                        |  1 +
 4 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fff09ffba..fe1a4d27e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2026-01-29  G. Branden Robinson <[email protected]>
+
+       Propagate "configure" shell variable `urwfontsupport` into
+       "BuildFoundries" script, quieting build-time warnings when URW
+       font support is explicitly deconfigured.
+
+       * m4/groff.m4 (GROFF_URW_FONTS_SUPPORT): `AC_SUBST`
+       `urwfontsupport` so that it is defined in Makefiles.
+       * font/devpdf/devpdf.am (BuildFoundries): Add `urwfontsupport`
+       to set of sed(1) substitutions performed when generating target.
+       * font/devpdf/util/BuildFoundries.pl: Add `urwfontsupport`
+       scalar, taking value of corresponding sed substituion.
+       (LoadFoundry): Suppress warning about unavailable font if
+       `urwfontsupport` matches "no".
+
 2026-01-29  G. Branden Robinson <[email protected]>
 
        * m4/groff.m4 (GROFF_URW_FONTS_CHECK): Stop emptying shell
diff --git a/font/devpdf/devpdf.am b/font/devpdf/devpdf.am
index 6a83d99a8..af1a8c216 100644
--- a/font/devpdf/devpdf.am
+++ b/font/devpdf/devpdf.am
@@ -188,6 +188,7 @@ font/devpdf/util/BuildFoundries: \
                 -e "s|/usr/bin/perl|$(PERL)|" \
                 -e "s|[@]GHOSTSCRIPT[@]|$(GHOSTSCRIPT)|" \
                 -e "s|[@]PATH_SEPARATOR[@]|$(PATH_SEPARATOR)|" \
+                -e "s|[@]urwfontsupport[@]|$(urwfontsupport)|" \
                 -e "s|[@]VERSION[@]|$(VERSION)|" \
                 -e "s|[@]GROFF_FONT_DIR[@]|$(fontdir)|" \
                 $(devpdf_srcdir)/util/BuildFoundries.pl \
diff --git a/font/devpdf/util/BuildFoundries.pl 
b/font/devpdf/util/BuildFoundries.pl
index 0990dda26..f61ec069c 100644
--- a/font/devpdf/util/BuildFoundries.pl
+++ b/font/devpdf/util/BuildFoundries.pl
@@ -27,6 +27,7 @@ use Getopt::Long;
 use warnings;
 
 my $pathsep='@PATH_SEPARATOR@';
+my $urwfontsupport='@urwfontsupport@';
 
 my $check=0;
 my $dirURW='';
@@ -136,9 +137,12 @@ sub LoadFoundry
                        {
                            $gotf=0;
                            my $fns=join(', ',split('!',$r[5]));
-                           Warn("groff font '$gfont' will not be"
-                                . " available for PDF output; unable"
-                                . " to locate font file(s): $fns");
+                           if ($urwfontsupport ne 'no')
+                           {
+                             Warn("groff font '$gfont' will not be"
+                                  . " available for PDF output; unable"
+                                  . " to locate font file(s): $fns");
+                           }
                            $notFoundFont=1;
                            unlink $gfont;
                        }
diff --git a/m4/groff.m4 b/m4/groff.m4
index bef6622f5..7318ddfd1 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -325,6 +325,7 @@ AC_DEFUN([GROFF_URW_FONTS_SUPPORT], [
     [AS_HELP_STRING([--without-urw-fonts],
       [disable support for URW fonts])],
     [urwfontsupport="$withval"])
+  AC_SUBST(urwfontsupport)
 ])
 
 # Make URW font directory location configurable.

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to