Hi Helmut,

On 29/12/2025 9:43 pm, Helmut Grohne wrote:
On Mon, Dec 29, 2025 at 09:34:55AM +0100, Helmut Grohne wrote:
freetype added a new build-dependency on libharfbuzz-dev. On the
surface, this looks great. Unfortunately, freetype is part of the
build-closure of build-essential and therefore part of architecture
bootstrap and must be careful about dependencies being added.
Chris made me aware of:

| Enable dynamic loading of the HarfBuzz library, avoiding the
| well-known circular dependency problem.

This is interesting indeed and we might simply skip the entire mess via
--with-harfbuzz=dynamic.

How about that? Patch attached.

Sorry about this mess. I misread upstream's changes about dynamic loading of HarfBuzz.

The upstream docs [1] and code [2,3] make it somewhat clear that the HarfBuzz library is not required at compile-time.

I'll upload a revised version of FreeType shortly. Downstream users wanting to use HarfBuzz functions can do so, using dynamic loading.

There shouldn't be any other changes required, so bootstrap won't be impacted.

Hugh

[1] https://freetype.org/

[2] https://gitlab.freedesktop.org/freetype/freetype/-/blob/master/include/freetype/config/ftoption.h?ref_type=heads#L296

[3] https://gitlab.freedesktop.org/freetype/freetype/-/blob/master/docs/CHANGES?ref_type=heads#L31

Reply via email to