pkgsrc-Bugs archive

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

Re: pkg/53007: wm/blackbox70 (or x11/x11-links) Xft.h: fatal error: ft2build.h: No such file or directory



The following reply was made to PR pkg/53007; it has been noted by GNATS.

From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/53007: wm/blackbox70 (or x11/x11-links) Xft.h: fatal error:
 ft2build.h: No such file or directory
Date: Sun, 6 May 2018 08:29:29 +0000

 On Sun, May 06, 2018 at 01:35:01AM +0000, Robert Elz wrote:
  >    |  Otherwise nothing you've reported offers much help, unfortunately,
  >    |  except that the problem is likely *something* in the configury not
  >    |  finding and adding the right -I and -l options for freetype.
  >  
  >  Yes, could be, though do note that it does all work when outside
  >  pkgsrc, so I'd suspect something in the pkgsrc machinery is
  >  getting it wrong,  but I have no idea how any of that actually works,
  >  so I don't know where to start looking.
 
 Right, well, it's gotten complex over the years... anyway, I just dug
 around a bit more, and it seems that for me, the -I flag (and also the
 -D_REENTRANT) comes from the *Xft* pkgconfig file:
 
 the bb70 configure script prints
    checking for xft_CFLAGS... -I/usr/X11R7/include -D_REENTRANT -I/usr/X11R7/include/freetype2 
 and it gets it like this:
    % pkg-config --cflags "xft >= 2.0.0."
    -I/usr/X11R7/include -D_REENTRANT -I/usr/X11R7/include/freetype2 
    % 
 
 which means that the immediate thing different between your machine
 and mine is that because of this:
 
  : PREFER_PKGSRC+=fontconfig
 
 yours is using libXft from pkgsrc.
 
 And i see a critical problem: libXft's bl3 isn't included.
 
 Try this:
 
 --- Makefile    1 Apr 2018 21:09:32 -0000       1.11
 +++ Makefile    6 May 2018 08:28:43 -0000
 @@ -24,5 +24,6 @@
  
  .include "../../converters/libiconv/buildlink3.mk"
  .include "../../x11/libX11/buildlink3.mk"
 +.include "../../x11/libXft/buildlink3.mk"
  .include "../../x11/libXt/buildlink3.mk"
  .include "../../mk/bsd.pkg.mk"
 
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index