tech-pkg archive

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

Re: X11/XlibConf.h missing

Am 03.01.2009 um 02:28 schrieb Jeremy C. Reed:

Let's fix that test so xorg is xorg. See below.

We could change

.elif exists(${X11BASE}/lib/X11/config/xorgversion.def)


.elif exists(${X11BASE}/lib/X11/config/xorgversion.def) ||

Other items to trigger for could be the following directories:


What do you think would be the correct approach?

Checking for xorgconfig seems good too.

And or include/X11/XlibConf.h (like the subjectof this email)

And or check for one of the include/xorg or lib/xorg directories.

Do that and see if that works for you.

well, it's easy to have x11-links use instead of
However, as a consequence, since X11_TYPE is native and not modular, ../../x11/libX11/ does not add libX11 to BUILDLINK_PACKAGES. Further to that, X11/Xlib.h does not get added to x11-links's PLIST which causes e.g. x11/Xfixes to fail to compile, although the FreeBSD installation does ship with a /usr/X11R6/include/ X11/Xlib.h installed.
As a hack, if one adds


to and manually sets IS_BUILTIN.libX11=yes, things work.
This is of course not a fix.
The question thus remains whether is supposed to be used in the first place in case X11_TYPE is native, or even more broadly, whether it is correct to have X11_TYPE=native on a stock FreeBSD 7 installation. Depending on that answer, we can develop a correct fix.

The same issue applies to libXext, too, BTW. It appears that was not supposed to be used with X11_TYPE!=modular, was it?

Georg Schwarz  +49 151 11559652

Home | Main Index | Thread Index | Old Index