u/Entire-Benefit-7183

▲ 10 r/NetBSD

Help needed: How to get pkgsrc to use builtin/native libraries?

  1. Hello,
  2. I am once again asking for help on this subreddit. Sorry to bother you all, but I really can't figure this one out!
  3. I am attempting to build CDE on NetBSD/vax 11.0 . CDE seems to require fontconfig, and it obviously requires Motif. Motif in turn requires Xft2, which itself requires fontconfig. Building fontconfig is impossible due to the Python dependency.
  4. I would be able to build Motif if I could convince pkgsrc to use the libXft included with the base system. For some reason, pkgsrc refuses. I have checked the version numbers; `2.3.8nb1` is required, and `make show-var VARNAME=BUILTIN_PKG.libXft` returns `2.3.9`. This should work, right? `2.3.9` is greater than `2.3.8nb1`!
  5. I've tried all sorts of things to get it to work, mostly editing `mk.conf` over and over again. Here is my current version:
  6. DEPENDS_TARGET=bin-install
  7. UPDATE_TARGET=bin-install
  8. X11_TYPE= native
  9. PREFER_NATIVE= yes
  10. USE_BUILTIN.fontconfig= yes
  11. USE_BUILTIN.freetype2= yes
  12. USE_BUILTIN.libXft= yes
  13. PREFER_PKGSRC= no
  14. IS_BUILTIN.libXft= yes
  15. BUILTIN_PKG.libXft= libXft-2.3.9
  16. USE_BUILTIN.libXft= yes
  17. Thank you again for your help!
reddit.com
u/Entire-Benefit-7183 — 3 days ago