On 5/04/2025 12:34 am, Felix Salfelder wrote:
On Fri, Apr 04, 2025 at 10:32:37PM +1100, Hugh McMaster wrote:
Previously, packages linking with freetype would check for and linked
against bzip2 manually. That's no longer necessary, with bzip2 finally
adding support for pkg-config.

Fantastic.

Sadly, some projects rely on the cutting edge without much need for it,
thus burning bridges gaining very little. A more adequate approach would
have been to

try {
        pkgconfig bzip2
} catch not_found_error {
        warning "using fallback bz2 config"
        // this has been working for many decades.
        LIBS += -lbz2
}

in a relevant spot.Perhaps not a freetype packaging issue, and not your
fault. Just my 2ct.

Yes, trying pkg-config and falling back to manual linking or calling *_config scripts is the correct approach. I've submitted many such patches upstream for various libraries (freetype, unixodbc, ICU).

Anyway, I'm glad everything has worked out.

Kind regards,

Hugh

Reply via email to