Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Possible way to save time compiling?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
garion911
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2002
Posts: 88

PostPosted: Sat Jul 27, 2002 5:18 pm    Post subject: Possible way to save time compiling? Reply with quote

While trying to install a program earlier today (had no ebuild, so it was the old ./configure;make;su -c "make install" process), it had some interesting documentation on setting up a global config.cache file. So after some searching on the web, I discovered that it you add a file, /usr/share/config.site, and setup a directory or 2, that you can cache all the results from your ./configure commands (which is a large chunk of the software out there). It certainly seems to save time. Here's what I did:

make a file called /usr/share/config.site with the following contents:

Code:

cache_file="/var/cache/configure/config.cache"
# A cache file is only valid for one C compiler.
CC=gcc


The I created the directory:
Code:

mkdir /var/cache/configure


I'm about to go and start re-emerging a few file to see if it always snags from that cache file. It certainly would be nice. Imagine save on that QT test. Seems to take forever sometimes.
Back to top
View user's profile Send private message
garion911
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2002
Posts: 88

PostPosted: Sat Jul 27, 2002 5:50 pm    Post subject: Reply with quote

Well, it seems that the latest version of portage does not allow any modification of files outside its work directory (which would explain my problem with ccache). So I guess this won't work. Though I do suppose that if you run the configure on your own, and have it cached then...

Maybe the portage folks could add a config file for allowed files/directories(for ccache) to be modified outside the build tree?
Back to top
View user's profile Send private message
garion911
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2002
Posts: 88

PostPosted: Mon Jul 29, 2002 3:55 am    Post subject: Reply with quote

Replying to myself again. I just tried this with portage 2.0.21, and it seems to work. Maybe things are different in 2.0.21 with the access-denied bit? Or maybe the ebuilds are setup differently? Don't know. Could some others please try this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum