[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem building latest git source

From: G. Branden Robinson
Subject: Re: Problem building latest git source
Date: Thu, 7 Jul 2022 23:54:11 -0500

[content warning: this message is a bug hunt]

Hi Deri,

At 2022-07-07T16:30:43+0100, Deri wrote:
> On Thursday, 7 July 2022 05:48:33 BST G. Branden Robinson wrote:
> > Deri, can you throw any light on this stuff?
> One possibility is that somehow it is running the currently installed
> groff, rather than test-groff, so it would be looking at the download
> file in /usr/share/groff/1.23.0/font/devpdf rather than the new
> download just created within the build directory.

This appears to be close.  When creating font/devpdf/download, we are at
pains to set up the $PATH.

However, neither this target nor BuildFoundries itself has a dependency
on "afmtodit", so BuildFoundries will happily run without it present at
all, or just as happily run the one on the system, which could be very
old.  (That's bad because I'd like to change afmtodit to no longer
require the map file as a mandatory operand.[1])

So I've just pushed some commits that do the following things.

1. Add this dependency of "BuildFoundries" on "afmtodit".

2. Add an option to BuildFoundries to treat these warnings about URW
   font generation as fatal.

3. Have our Makefile pass the script that option.

There is another issue I've been hitting.  My builds still work fine in
my general-purpose development environment, but fail in my Debian
bullseye chroot with no optional dependencies _except_ the URW fonts.

With the added paranoia above, that build fails as follows.

  GEN      font/devpdf/download
BuildFoundries: notice: Copied grops font AB...
BuildFoundries: notice: Copied grops font ABI...
BuildFoundries: notice: Copied grops font ZD...
BuildFoundries: notice: Copied grops font EURO...
BuildFoundries: error: cannot locate AFM file for font 'U-AB'
make: *** [Makefile:14572: font/devpdf/download] Error 2

In this failing build tree, I added an ad hoc diagnostic to report the
search path.  I'll quote the directory detected by my configure script
and that output.

checking for URW fonts in Type 1/PFB format... found in 
BuildFoundries: notice: search path: 
BuildFoundries: error: cannot locate AFM file for font 'U-AB'

I observe that the detected directory,
/usr/share/fonts/type1/urw-base35/, is NOT making it into this search
path.  (/usr/share/fonts/afm/urw-base35 is close, but no cigar.)

But my Foundry file exists and _does_ have this directory in it.

$ grep urw-base35 font/devpdf/Foundry

Is something perhaps wrong with the way BuildFoundries is reading these
data in?

Anyway, the directory sniffed out by 'configure' _does_ have AFM files
in it.

$ ls /usr/share/fonts/type1/urw-base35/*.afm | head

So it looks to me like something got disconnected here.



Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]