[bug #68567] [devpdf] build on Manjaro Linux 23 finds wrong/inadequate URW fonts, causing test failure

Deri James <[email protected]> Mon, 27 Jul 2026 11:08:11 -0400 (EDT)
Newsgroups gmane.comp.printing.groff.bugs
Message-ID <[email protected]>
--8323329-424238335-1785164891=:4143269
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

Update of bug #68567 (group groff):=0A=0A                  Status:         =
      Need Info =3D> Confirmed=0A             Assigned to:                 =
   deri =3D> gbranden=0A=0A    ____________________________________________=
___________=0A=0AFollow-up Comment #2:=0A=0AThere are two separate sources =
for the URW fonts. A separate package=0Acontaining the pfb and afm files, a=
nd a ghostscript package which just has the=0Apfb files.=0A=0ADebian does t=
he sensible thing which is to make the URW fonts package a=0Adependency on =
the ghostscript package and populate ghostscript Resource/Font=0Adirectory =
with links:-=0A=0Adietpi@Hub:/home/dietpi $ ls -l=0A/usr/share/ghostscript/=
10.05.1/Resource/Font/Z003-MediumItalic =0Alrwxrwxrwx 1 root root 55 Oct  5=
  2025=0A/usr/share/ghostscript/10.05.1/Resource/Font/Z003-MediumItalic ->=
=0A../../../../fonts/type1/urw-base35/Z003-MediumItalic.t1=0A=0AWhich resol=
ves to :-=0A=0Adietpi@Hub:/home/dietpi $ ls -l /usr/share/fonts/type1/urw-b=
ase35/Z*=0A-rw-r--r-- 1 root root 114253 Jun 16  2020=0A/usr/share/fonts/ty=
pe1/urw-base35/Z003-MediumItalic.afm=0A-rw-r--r-- 1 root root 166540 Jun 16=
  2020=0A/usr/share/fonts/type1/urw-base35/Z003-MediumItalic.t1=0A=0AWhich =
is one of the directories configure searches, so on debian just having=0Agh=
ostscript installed will ensure full gropdf operation. Other systems don't=
=0Ause this approach and the ghostscript package includes the pfb fonts onl=
y.=0AConfigure should only be looking for the full urw-fonts package not=0A=
ghostscript Resource/Font. If ghostscript is installed you have at least=0A=
"intermediate" and the directory will be found by BuildFoundries when it=0A=
parses the "gs -h" command. What configure should be doing is finding the f=
ull=0AURW fonts directory and if found setting $urwfontsdir. It should not =
be=0Alooking for ghostscript provided fonts at all.=0A=0AThe problem is thi=
s line /usr/share/ghostscript/Resource/Font". We know that=0Aif the only UR=
W fonts found are the ones supplied in Ghostscript's Resource=0Afont direct=
ory there are not going to be any AFMs. groff_have_urw_fonts should=0Aonly =
be set if the pfb files are found elsewhere. It is sufficient to just=0Ahav=
e $GHOSTSCRIPT !=3D "missing" to know that "intermediate" is available.=0A=
=0AIt was commit 70bb117ece09e which added this path erroneously, if it is=
=0Aremoved your test script will start to work. =0A=0AI have tested this by=
 adding my ghostscript Resource/Font to groff.m4, hiding=0Areal URW fonts w=
here configure won't find them, and I get the same results as=0Amanjaro. If=
 I then remove the line from groff.m4 it then reports=0A"intermediate" and =
the check test works.=0A=0ACommit 05e6d85 was the correct commit for Arch l=
inux, the earlier commit was=0Athe directory that ghostscript uses for font=
s which configure should not be=0Alooking at, it is only looking for the pa=
th to the URW fonts package, not=0Aghostscript.=0A=0AOf course configure co=
uld look for afm files as well but it is unnecessary so=0Along as we don't =
include Resource/Font paths in the list, as I know you aspire=0Ato the KISS=
 principle, here's a patch which will make your check work on=0AManjaro and=
 Arch.=0A=0A(file #58832)=0A=0A    ________________________________________=
_______________=0A=0AAdditional Item Attachment:=0A=0AName: Arch.patch     =
                Size: 1.5KiB=0A    <https://file.savannah.gnu.org/file/Arch=
.patch?file_id=3D58832>=0A=0A=0A    AGPL NOTICE=0A=0AThese attachments are =
served by Savane. You can download the corresponding=0Asource code of Savan=
e at=0Ahttps://savannah.gnu.org/source/savane-c36938be85ff6c1b727bc7dd7fd30=
e48f9142870.tar.gz=0A=0A=0A    ____________________________________________=
___________=0A=0AReply to this item at:=0A=0A  <https://savannah.gnu.org/bu=
gs/?68567>=0A=0A_______________________________________________=0AMessage s=
ent via Savannah=0Ahttps://savannah.gnu.org/=0A
--8323329-424238335-1785164891=:4143269
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCamd0WwAKCRCqLAuaBUf3
TkHXAQDw5aOqOTHyp4PpuqmNuxlY/ZYUnKWMiO3rD/StNifHhgD/Ut8ExswKB114
ZueFFMg6rmmX6fjmV+cQVri48yc8PA0=
=U6ep
-----END PGP SIGNATURE-----

--8323329-424238335-1785164891=:4143269--