NetBSD Problem Report #55921

From www@netbsd.org  Mon Jan 11 09:54:58 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 325371A9217
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 11 Jan 2021 09:54:58 +0000 (UTC)
Message-Id: <20210111095456.7F5A61A9245@mollari.NetBSD.org>
Date: Mon, 11 Jan 2021 09:54:56 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
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
>Release:        
>Organization:
Bielefeld University
>Environment:
>Description:
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
.else
MESON_ARGS+=            -Dgraphite=disabled
.endif

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 hb-graphite2.cc.

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).
>How-To-Repeat:

>Fix:
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: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.