gbranden pushed a commit to branch master
in repository groff.

commit 3a5621a3119ec4fa6b7d348eb48547e923eeed0e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Dec 18 16:09:46 2025 -0600

    [devpdf]: Fix Savannah #67683.
    
    * font/devpdf/devpdf.am: Fix "BuildFoundries" failure if the URW fonts
      can't be found in its built-in search path.  If the macro
      `HAVE_URW_FONTS` is defined, define new macro
      `buildfoundries_extra_arg` so as to construct a `--dirURW=` argument;
      otherwise, make `buildfoundries_extra_arg` empty.
    
      (font/devpdf/download): Interpolate `buildfoundries_extra_arg` macro
      when running "BuildFoundries" command.
    
    Fixes <https://savannah.gnu.org/bugs/?67683>.
---
 ChangeLog             | 12 ++++++++++++
 font/devpdf/devpdf.am |  7 +++++++
 2 files changed, 19 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index ebbd6bc05..1fb03831d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -196,6 +196,18 @@
        Fixes <https://savannah.gnu.org/bugs/?67770>.  Continues commit
        d330127900, 6 December.
 
+2025-12-18  G. Branden Robinson <[email protected]>
+
+       * font/devpdf/devpdf.am: Fix "BuildFoundries" failure if the URW
+       fonts can't be found in its built-in search path.  If the macro
+       `HAVE_URW_FONTS` is defined, define new macro
+       `buildfoundries_extra_arg` so as to construct a `--dirURW=`
+       argument; otherwise, make `buildfoundries_extra_arg` empty.
+       (font/devpdf/download): Interpolate `buildfoundries_extra_arg`
+       macro when running "BuildFoundries" command.
+
+       Fixes <https://savannah.gnu.org/bugs/?67683>.
+
 2025-12-18  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (token::description): Size the buffer
diff --git a/font/devpdf/devpdf.am b/font/devpdf/devpdf.am
index 8005fdea9..7f264b59c 100644
--- a/font/devpdf/devpdf.am
+++ b/font/devpdf/devpdf.am
@@ -224,12 +224,19 @@ endif
 $(devpdffont_descriptions_for_urw) $(DEFAULT_BASE35_FONTS) \
   $(URW_BASE35_FONTS): font/devpdf/download
 
+if HAVE_URW_FONTS
+buildfoundries_extra_arg=--dirURW=$(urwfontsdir)
+else
+buildfoundries_extra_arg=
+endif
+
 font/devpdf/download: $(devpdffontencdata) $(devpdffontmapdata) \
   $(devpdffont_descriptions_from_devps) \
   font/devpdf/DESC font/devpdf/Foundry font/devpdf/util/BuildFoundries
        $(AM_V_GEN)$(MKDIR_P) $(top_builddir)/font/devpdf \
        && 
PATH="$(abs_top_builddir)$(GROFF_PATH_SEPARATOR)$(abs_top_builddir)/build-aux$(GROFF_PATH_SEPARATOR)$(PATH)"
 \
        $(abs_top_builddir)/font/devpdf/util/BuildFoundries \
+         $(buildfoundries_extra_arg) \
          --download $(abs_top_srcdir)/font/devpdf/download.in \
          $(abs_top_builddir)/font/devpdf \
          '$(abs_top_srcdir)/font/devpdf:$(abs_top_builddir)/font/devpdf' \

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

Reply via email to