Trying to emerge mozilla-1.0-r2 with XFT enabled will stop during compilation complaining about missing header files in mozilla/other-licenses/Xft/Xrender solution: needed header files are present in /usr/X11R6/include/X11/extensions patches for mozilla-1.0-r2.ebuild provided below: 1) create a new file in /usr/portage/net-www/mozilla/files named mozilla-1.0-xft-headers.patch contents: ------------------------>> diff -u Xrender.sav/Xrenderint.h Xrender/Xrenderint.h --- Xrender.sav/Xrenderint.h Mon Jul 1 09:45:00 2002 +++ Xrender/Xrenderint.h Mon Jul 1 09:48:14 2002 @@ -30,10 +30,10 @@ #define NEED_REPLIES #include <X11/Xlibint.h> #include <X11/Xutil.h> -#include "Xext.h" /* in ../include */ +#include <X11/extensions/Xext.h> #include "extutil.h" /* in ../include */ -#include "Xrender.h" -#include "renderproto.h" +#include <X11/extensions/Xrender.h> +#include <X11/extensions/renderproto.h> extern XExtensionInfo XRenderExtensionInfo; extern char XRenderExtensionName[]; <<------------------------ 2) apply this patch to /usr/portage/net-www/mozilla/mozilla-1.0-r2.ebuild ------------------------>> --- mozilla-1.0-r2.ebuild.sav Tue Jun 25 01:05:28 2002 +++ mozilla-1.0-r2.ebuild Mon Jul 1 09:29:05 2002 @@ -66,6 +66,12 @@ # cd ${S} # patch -p0 <${FILESDIR}/${P}-xft.patch || die # fi + + # Fix a header problem compiling Mozilla with XFT + if [ -n "${MOZ_ENABLE_XFT}" ] ; then + cd ${S}/other-licenses/Xft + patch -p0 <${FILESDIR}/${P}-xft-headers.patch || die + fi } src_compile() { <<------------------------ Hope this help Bye, Alessandro
Our -r2 dont support Xft compiling. It have the patch commented, but that is it. To really get it working, you need libXft-2.0 from CVS XFree86, and then it still is a problem, as it compiles, but then fails to link in all deps at runtime. The patch you suggest, also is not needed, as you just add symlinks to that dir for the headers it needs. Until a new XFree86 revision, we wont thus then support the Blizzard Xft patches, and will only use Xft via Freetype2.
Martin: i didn't enable Xft on my own: i previously used mozilla-1.0rc3 and it worked fine, then emerge --update world made me upgrade to mozilla-1.0 and i found it didn't compile due to the bug I reported. I only have freetype2 enabled on my gentoo setup so i do not know.... btw, can you please clarify me which symlinks should I setup to avoid the patch? thank you in advance! PS: with the patch I posted above, mozilla successfully compiles and work with gtk2 and Xft...and it works like a charme! if you need i can post a screenshot. Alex
Whaa, what happens if you have too many bugs and not enouth time :P Weird, I have only gotten your problem with adding the Blizzard Xft patches which use Xft-2.0 in the CVS versions of Xfree. Did you maybe add the gtk+-2.0 patch ? Default moz will not link to gtk+-2.0. Also, as I said, just adding the symlinks to the Xrender directory also works, and is a bit easier to maintain. Thus, if it is a unchanged -r2, and you have this problem, ill gladly add the needed fixes
Martin: yesterday I reinstalled Gentoo due to other problems and switching to gentoo-1.2 (i was using 1.1a before) solved all my problems: xfree, kde and mozilla emerge without problems. In particular, since mozilla successfully emerged, my patch is not needed anymore ;) Btw, please note that having gtk+-2.0.x installed in gentoo will cause Mozilla to be automatically compiled (i mean: i didn't modified anything, i used emerge rsync's ebuild files) with XFT support... i love it: it works like a charme :) so, this bug can be closed i guess Bye, Alex