pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/57517: inconsistent freetype2 and fontconfig
The following reply was made to PR pkg/57517; it has been noted by GNATS.
From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/57517: inconsistent freetype2 and fontconfig
Date: Sun, 23 Jul 2023 02:50:59 +0000
On Mon, Jul 10, 2023 at 02:35:00PM +0000, Izumi Tsutsui wrote:
> NetBSD 9.3 has:
> - freetype2 2.10.4 and /usr/X11R7/lib/libfreetype.so.19.0
> - fontconfig 2.13.1 and /usr/X11R7/lib/libfontconfig.so.2.3
>
> pkgsrc-2023Q2 has:
> - freetype2 2.13.0 in pkgsrc/graphics/freetype2/Makefile
> and BUILDLINK_API_DEPENDS in buildlink3.mk is also 2.13.0
> https://github.com/NetBSD/pkgsrc/commit/5c74c638
> - fontconfig 2.14.2 in pkgsrc/fonts/fontconfig/Makefile
> and also requires freetypes>=2.13.0 via buildlink3.mk,
> but BUILDLINK_API_DEPENDS in buildlink3.mk is 2.11.91
> https://github.com/NetBSD/pkgsrc/blob/da7caf4f/fonts/fontconfig/buildlink3.mk#L8
>
> This causes mungled libfreetype2 dependencies, for example,
> libcairo.so installed from pkgsrc/graphics/cairo requires:
> [snip]
I see the same thing on oldish current and with pkgsrc HEAD. readelf
-d on libcairo shows
0x0000000000000001 (NEEDED) Shared library: [libfreetype.so.6]
0x0000000000000001 (NEEDED) Shared library: [libfontconfig.so.2]
and I have
libfreetype.so.19 in /usr/X11R7/lib
libfreetype.so.6 in /usr/pkg/lib
libfontconfig.so.2 in /usr/X11R7/lib
libfontconfig.so.1 in /usr/pkg/lib
that is, it's linked against pkgsrc libfreetype, but base
libfontconfig.
The package itself thinks it's using pkgsrc libfontconfig:
% pkg_info -n cairo | grep fontconfig
fontconfig>=2.14.1nb1
which is what's supposed to happen; as soon as we're using pkgsrc
freetype2, everything that depends on it, which means fontconfig, is
forced to USE_BUILTIN=no.
In cairo itself, I get
% make show-var VARNAME=IS_BUILTIN.fontconfig
yes
% make show-var VARNAME=USE_BUILTIN.fontconfig
no
but...
% make show-var VARNAME=BUILDLINK_PREFIX.fontconfig
/usr/X11R7
which is all wrong, and predictably the libraries that are actually
buildlinked are then the wrong ones. How it got that way, IDK, but
that's the problem.
Do you see the same thing? I'd expect so...
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index