On Tue, 05 Dec 2006 23:39:47 +0100, Hisham Muhammad <[EMAIL PROTECTED]>  
wrote:

> On 12/5/06, André Detsch <[EMAIL PROTECTED]> wrote:
>> On 12/5/06, Jonas Karlsson <[EMAIL PROTECTED]> wrote:
>> > I'm just trying to build Xorg 7.1 and one thing that strikes me is  
>> that I
>> > think that Compile spend more time at symlinking (and running  
>> ldconfig)
>> > after each sub app has compiled then actully compiling the apps.  
>> Wouldn't
>> > it be possible to set PATH and LD_LIBRARY_PATH to include the actual
>> > directory, /Programs/Foo/1.2/bin and /Programs/Foo/1.2/lib  
>> respectively,
>> > during the compilation of a meta recipe, instead of running  
>> symlinkprogram
>> > each time?
>>
>> Sounds a good idea. Can you implement this and test with the Xorg
>> recipe? Please ensure the changes do not affect regular (non-meta)
>> recipes.
>
> Won't work. PATH and LD_LIBRARY_PATH won't be enough. The proto stuff
> installs headers. Then you'll have to handle C_INCLUDE_PATH. And if
> something uses C++, then CPLUS_INCLUDE_PATH and so on and so on and so
> on. It's hackish. And then some other recipe in the future may look
> for share/ stuff which won't work unless properly symlinked. Doing
> this is asking for meta-recipes to break in mysterious ways.
>
"and so on and so on and so on."
I can only see that there are six variables to take care of (PATH,  
MANPATH, INFOPATH, LD_LIBRARY_PATH, C_INCLUDE_PATH and CPLUS_INCLUDE_PATH)  
of which two have to have two entries bin/sbin and lib/libexec.
Of cource shared messes things up, but one can choose only to symlink that.

> Instead, add a new flag "do_symlink=no" and set that on sub-recipes
> that you can test and ensure that they don't need to be symlinked in
> an intermediate step. This is the safest approach and will result in
> the desired speedups. For example, you can skip symlinking on all
> proto's and only symlink in the last one, so that when libs are
> compiled, the proto headers are linked (yes, this depends on a proper
> order for includes in the main recipe, but order is already relevant).
>
You're funny. :)
You want me to go through 200+ recipes one by one and see which don't need  
symlinking and which needs it? Perhaps if I got paid ;)

It seems like I have to do it the old way and hope that it goes through  
the entire batch during the night.

-- 
/Jonas

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to