diff --git a/en_US.ISO8859-1/books/porters-handbook/book.sgml b/en_US.ISO8859-1/books/porters-handbook/book.sgml index c6314888b5..341ff4b695 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.sgml +++ b/en_US.ISO8859-1/books/porters-handbook/book.sgml @@ -4810,6 +4810,23 @@ USE_XLIB= yes + + Getting fake <envar>DISPLAY</envar> using Xvfb + + Some applications require a working X11 display for compilation to + succeed. This pose a problem for the FreeBSD package building + cluster, which operates headless. When the following canonical hack + is used, the package cluster will start the virtual framebuffer + X server. The working DISPLAY is then passed + to the build. + + .if defined(PACKAGE_BUILDING) +BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \ + ${X11BASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT} +.endif + + +