pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/55921: print/xetex fails to compile on Solaris 11/sparc, graphite2 missing in harfbuzz



>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?



Home | Main Index | Thread Index | Old Index