Subject: Re: Browsers on NetBSD sparc
To: Michael Lorenz <macallan@NetBSD.org>
From: Laurens Vets <laurens@daemon.be>
List: port-sparc
Date: 06/02/2005 14:05:29
>>>And about libfontconfig and friends - putting something like this
>>>into your mk.conf may help:
>>>USE_BUILTIN.fontconfig?=yes
>>>PREFER_fontconfig?=native
>>>
>>>this should keep pkgsrc from building its own libfontconfig and make
>>>it use the one that comes with X. I guess the crashes come from
>>>compiling with the headers from one libfontconfig but linking
>>>against the other for whatever reason. Of course you'd have to
>>>recompile everything using libfontconfig so its usefulness may be
>>>limited. Something similar for Xft2 and freetype2 would probably be
>>>a good idea too. since these libraries depend on each other.
>>
>>I added the above 2 variables to mk.conf. I'm now trying to rebuild 
>>mozilla-gtk2.  However, upon installing Xft2, I get the following
>>error now:
>>
>><...>
>>checking for freetype-config... freetype-config
>>checking for fontconfig >= 2.2... Requested 'fontconfig >= 2.2' but 
>>version of F
>>ontconfig is 1.0.1
>>configure: error: Library requirements (fontconfig >= 2.2) not met; 
>>consider adj
>>usting the PKG_CONFIG_PATH environment variable if your libraries are
>>in a nonstandard prefix so pkg-config can find them.
>>*** Error code 1
>>
>>Stop.
>>make: stopped in /usr/pkgsrc/fonts/Xft2
>>===>
>>===> There was an error during the ``configure'' phase.
>>===> Please investigate the following for more information:
>>===>      * config.log
>>===>      * /usr/pkgsrc/fonts/Xft2/work/.work.log
>>===>
>>*** Error code 1
>><...>
>>
>>So does this mean that I still need to use the pkgsrc fontconfig?
> 
> No, it means when you use fontconfig from XFree86 you should also use
> its freetype2 and Xft2:
> 
> USE_BUILTIN.freetype2?=yes
> PREFER_freetype2?=native
> USE_BUILTIN.Xft2?=yes
> PREFER_Xft2?=native
> 
> I just finished building XFCE4 and KDE3 with these settings ( on macppc
> though ) - works fine, I only had to run fc-cache by hand once.
> 
> Since this requires XFree which sparc doesn't (officially) have we
> should probably discuss this to another list.

Hmm, so this won't work on sparc?  Hence, me trying to rebuild 
mozilla-gtk2 is actually fruitless? :)

On which list should this be discussed then, netbsd-bugs?

Not being able to run a 'decent' browser on sparc kinda sucks :/

Laurens