Update of bug #68567 (group groff):

                  Status:               Need Info => Confirmed
             Assigned to:                    deri => gbranden

    _______________________________________________________

Follow-up Comment #2:

There are two separate sources for the URW fonts. A separate package
containing the pfb and afm files, and a ghostscript package which just has the
pfb files.

Debian does the sensible thing which is to make the URW fonts package a
dependency on the ghostscript package and populate ghostscript Resource/Font
directory with links:-

dietpi@Hub:/home/dietpi $ ls -l
/usr/share/ghostscript/10.05.1/Resource/Font/Z003-MediumItalic 
lrwxrwxrwx 1 root root 55 Oct  5  2025
/usr/share/ghostscript/10.05.1/Resource/Font/Z003-MediumItalic ->
../../../../fonts/type1/urw-base35/Z003-MediumItalic.t1

Which resolves to :-

dietpi@Hub:/home/dietpi $ ls -l /usr/share/fonts/type1/urw-base35/Z*
-rw-r--r-- 1 root root 114253 Jun 16  2020
/usr/share/fonts/type1/urw-base35/Z003-MediumItalic.afm
-rw-r--r-- 1 root root 166540 Jun 16  2020
/usr/share/fonts/type1/urw-base35/Z003-MediumItalic.t1

Which is one of the directories configure searches, so on debian just having
ghostscript installed will ensure full gropdf operation. Other systems don't
use this approach and the ghostscript package includes the pfb fonts only.
Configure should only be looking for the full urw-fonts package not
ghostscript Resource/Font. If ghostscript is installed you have at least
"intermediate" and the directory will be found by BuildFoundries when it
parses the "gs -h" command. What configure should be doing is finding the full
URW fonts directory and if found setting $urwfontsdir. It should not be
looking for ghostscript provided fonts at all.

The problem is this line /usr/share/ghostscript/Resource/Font". We know that
if the only URW fonts found are the ones supplied in Ghostscript's Resource
font directory there are not going to be any AFMs. groff_have_urw_fonts should
only be set if the pfb files are found elsewhere. It is sufficient to just
have $GHOSTSCRIPT != "missing" to know that "intermediate" is available.

It was commit 70bb117ece09e which added this path erroneously, if it is
removed your test script will start to work. 

I have tested this by adding my ghostscript Resource/Font to groff.m4, hiding
real URW fonts where configure won't find them, and I get the same results as
manjaro. If I then remove the line from groff.m4 it then reports
"intermediate" and the check test works.

Commit 05e6d85 was the correct commit for Arch linux, the earlier commit was
the directory that ghostscript uses for fonts which configure should not be
looking at, it is only looking for the path to the URW fonts package, not
ghostscript.

Of course configure could look for afm files as well but it is unnecessary so
long as we don't include Resource/Font paths in the list, as I know you aspire
to the KISS principle, here's a patch which will make your check work on
Manjaro and Arch.

(file #58832)

    _______________________________________________________

Additional Item Attachment:

Name: Arch.patch                     Size: 1.5KiB
    <https://file.savannah.gnu.org/file/Arch.patch?file_id=58832>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-c36938be85ff6c1b727bc7dd7fd30e48f9142870.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68567>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to