Subject: pkg/24367: fonts/fontconfig uses pkgsrc-incompatible docbook detection scheme, thus may fail on some OS
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dotz@irc.pl>
List: netbsd-bugs
Date: 02/08/2004 20:13:24
>Number:         24367
>Category:       pkg
>Synopsis:       fonts/fontconfig uses pkgsrc-incompatible docbook detection scheme, thus may fail on some OS
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 08 20:14:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michal Pasternak
>Release:        Slackware 9.1
>Organization:
>Environment:
Linux slackware9 2.4.22 #6 Tue Sep 2 17:43:01 PDT 2003 i686 unknown unknown GNU/Linux

>Description:

fonts/fontconfig configure script wants docbook2html to build docs.

Normally this is not needed. Docs are pre-built and distributed in 
source tarball. HTML docs, manpages, tarball has them all.

In case of "vanilla" Slackware 9.1 with some docbook software installed 
in /usr, the build will fail (because Slackware-provided programs seem 
to have trouble). Full build log can be found at:

    http://pkgsrc.w.lub.pl/fonts.fontconfig.slackware-9.1.log

Slackware 9.1 docbook seems broken, or I haven't installed some other 
packages. That doesn't matter. I think it is quite no use to have the 
docs built on some platforms, and to not have them built on some other 
platforms, I suggest fixing fonts/fontconfig Makefile so the docs won't 
be built. There is no need for it, as I wrote before, they are in the source tarball.

>How-To-Repeat:
N/A
>Fix:
Add to fonts/fontconfig/Makefile:

CONFIGURE_ENV+=      HASDOCBOOK=no

See docbook detection in configure script, it looks for such variable.

After adding this single line, fontconfig on Slackware 9.1 builds okay.

This has no effect on NetBSD/FreeBSD, because fontconfig didn't built 
the docs (=> didn't found docbook, because fontconfig didn't need it).
>Release-Note:
>Audit-Trail:
>Unformatted: