NetBSD Problem Report #55921

From  Mon Jan 11 09:54:58 2021
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 325371A9217
	for <>; Mon, 11 Jan 2021 09:54:58 +0000 (UTC)
Message-Id: <>
Date: Mon, 11 Jan 2021 09:54:56 +0000 (UTC)
Subject: print/xetex fails to compile on Solaris 11/sparc, graphite2 missing in harfbuzz
X-Send-Pr-Version: www-1.0

>Number:         55921
>Category:       pkg
>Synopsis:       print/xetex fails to compile on Solaris 11/sparc, graphite2 missing in harfbuzz
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 11 09:55:00 +0000 2021
>Originator:     Joern Clausen
Bielefeld University
Compiling print/xetex on Solaris/sparc fails with

xetexdir/XeTeXLayoutInterface.cpp:43:10: fatal error: hb-graphite2.h: No such file or directory
   43 | #include <hb-graphite2.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.

On Solaris/i86, compilation of this package succeeds.

The reason is this snippet from font/harfbuzz/Makefile.common:

PLIST_VARS+=            graphite2
.if ${LIBRSVG_TYPE} == "rust"
MESON_ARGS+=            -Dgraphite=enabled
PLIST.graphite2=        yes
MESON_ARGS+=            -Dgraphite=disabled

On i86, harfbuzz is installed with the missing header file, but not on Sparc.

This change in xetex's Makefile

-CONFIGURE_ARGS+=       --with-system-graphite2
+#CONFIGURE_ARGS+=      --with-system-graphite2
+CONFIGURE_ARGS+=        --disable-graphite2

is not successful, it seems xetex has a hard dependency on graphite2.

Removing the conditionals from font/harfbuzz/Makefile.common, the package seems to compile on Solaris/sparc, despite some deprecation warning from

So I wonder if the conditional '.if ${LIBRSVG_TYPE} == "rust"' is correct. NB: Both on i86 and Sparc, graphics/graphite2 has been successfully compiled and installed. But on neither platform, graphics/librsvg was installed. There is a native version of librsvg present on both, but I don't see any use of it (i.e. "ldd" on the shared objects of harfbuzz or graphite2 does not show a dependency).

Remove/rework the logic connecting harfbuzz, graphite2 and rust/librsvg?

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.