pkgsrc-Users archive

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

Re: pkgsrc picking up wrong fontconfig





On 30/08/2019 01:51, David H. Gutteridge wrote:
On Thu, 29 Aug 2019, at 15:35:26 -0400, Greg Troxel wrote:
Building librsvg (for emacs, a different story for a different
thread!)
fails on netbsd-8 i386 with:

   checking for    cairo >= 1.15.12                cairo-png >=
1.15.12            freetype2 >= 20.0.14            gdk-pixbuf-2.0 >=
2.20  gio-2.0 >= 2.24.0                       glib-2.0 >= 2.48.0
                libxml-2.0 >= 2.9.0             pangocairo >=
1.38.0            pangoft2 >= 1.38.0                    libcroco-0.6
= 0.6.1... no
   configure: error: Package requirements (        cairo >=
1.15.12                cairo-png >= 1.15.12            freetype2 >=
20.0.14            gdk-pixbuf-2.0 >= 2.20  gio-2.0 >= 2.24.0
                glib-2.0 >= 2.48.0              libxml-2.0 >=
2.9.0             pangocairo >= 1.38.0            pangoft2 >=
1.38.0                    libcroco-0.6 >= 0.6.1) were not met:

   Package dependency requirement 'fontconfig >= 2.11.91' could not be
satisfied.
   Package 'fontconfig' has version '2.11.1', required version is '>=
2.11.91'

   Consider adjusting the PKG_CONFIG_PATH environment variable if you
   installed software in a non-standard prefix.

   Alternatively, you may set the environment variables LIBRSVG_CFLAGS
   and LIBRSVG_LIBS to avoid the need to call pkg-config.
   See the pkg-config man page for more details.
   *** Error code 1


As far as I can tell something must have changed in pkgsrc fairly
recently, at least since Q2, but it feels like the last two weeks, to
provoke this -- does anybody know that is?

I'm afraid I don't have a decent answer for you, but I can tell you that
it occurred on or before the 20th, since I was privately emailed about
this around then, and reproduced it then.

http://mail-index.netbsd.org/pkgsrc-changes/2019/08/21/msg196209.html
I started trying to find the full explanation, but simply haven't had
the time vs. other things. But the pango.pc file now installed by that
package expects fontconfig >= 2.11.91. On its own, I can't say why
that's a problem.

My last successful 8.1 build (with rsvg) was on 11th Aug. I've done too many manual builds since then to have the logs to confirm that the failed build on the 18th was caused by this issue as I do also see occasional random rust build failures (usually due to rust deadlocking). I've even seen rust deadlock with /dev/random linked to /dev/urandom so its not the randomness problem that's causing that deadlock.

The problem seems to be that although pkgsrc compiles and installs fontconfig 2.13 it seems to by default prefer the OLDER base system fontconfig over the one from pkgsrc. This seems like a bug to me. If we have a package dep that only the pkgsrc fontconfig can provide then pkgsrc should take it over the native one.

Mike


Home | Main Index | Thread Index | Old Index