We have a few packages in the distribution (often involving Tk) that don't seem to build at all with a non-Apple X11, e.g. sparky-py*, due to the lack of a "/usr/include/X11 -> /usr/X11R6/include/X11" symlink The failure mode is as follows (and it's generally applicable): ... g++ -O3 -ffast-math -fPIC -fno-common -Wno-long-double -I/sw/include -c /sw/src/fink.build/sparky-py24-3.112-1000/sparky/c++/winsystem-unix.cc In file included from /sw/src/fink.build/sparky-py24-3.112-1000/sparky/c++/winsystem-unix.cc:6: /sw/include/tk.h:83:23: error: X11/Xlib.h: No such file or directory ... Many packages can be fixed to see the X11 headers via setting a FLAGS variable:
SetCPPFLAGS: /usr/X11R6/include -or sometimes (e.g. xcircuit)- SetCFLAGS: /usr/X11R6/include However, there are some packages where this doesn't work (I tried with sparky, to no avail). What follows is the .info for a package that gets around this problem by copying header files from /usr/X11R6/include/X11 into %p/include/X11. The dependencies are such that it shouldn't be installable when Apple's X11 is in place, but will work for Fink's xfree86 and xorg, or even a handbuilt xfree86 or xorg (and if those do create the symlink, I can remove the system-xfree86 dependency). It is intended for build-time use, and is marked as BuildDependsOnly. Let me know what you think. I'd like to add it. ------------------ Package: applex11compat Version: 0.1 Revision: 1 Description: Copy X11 headers over to %p/include/X11 Type: nosource License: Public Domain Maintainer: Alexander Hansen <[EMAIL PROTECTED]> BuildDepends: xfree86 | xorg | system-xfree86 ( >=2:4.5-1 ) Conflicts: system-xfree86 ( << 2:4.5-1 ) BuildDependsOnly: true CompileScript: echo "No compile needed" InstallScript: << # !/bin/sh -ev /usr/bin/install -d %i/include/X11 /usr/bin/install -d %i/include/X11/ICE /usr/bin/install -d %i/include/X11/PM /usr/bin/install -d %i/include/X11/SM /usr/bin/install -d %i/include/X11/extensions /usr/bin/install -d %i/include/X11/fonts /usr/bin/install /usr/X11R6/include/X11/*.h %i/include/X11 /usr/bin/install /usr/X11R6/include/X11/ICE/*.h %i/include/X11/ICE /usr/bin/install /usr/X11R6/include/X11/PM/*.h %i/include/X11/PM /usr/bin/install /usr/X11R6/include/X11/SM/*.h %i/include/X11/SM /usr/bin/install /usr/X11R6/include/X11/extensions/*.h %i/include/X11/extensions /usr/bin/install /usr/X11R6/include/X11/fonts/*.h %i/include/X11/fonts << DescDetail: << Copy the header files over from /usr/X11R6/include/X11 to %p/include/X11 when using Xorg or XFree86 for packages where a *FLAGS variable to allow for the lack of a /usr/include/X11 symlink in Fink's X11 packages doesn't suffice. << -- Alexander K. Hansen akh AT finkproject DOT org Fink User Liaison and Documenter ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel