View previous topic :: View next topic |
Author |
Message |
garion911 Tux's lil' helper
Joined: 04 Jun 2002 Posts: 88
|
Posted: Sat Jul 27, 2002 5:18 pm Post subject: Possible way to save time compiling? |
|
|
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 |
|
|
garion911 Tux's lil' helper
Joined: 04 Jun 2002 Posts: 88
|
Posted: Sat Jul 27, 2002 5:50 pm Post subject: |
|
|
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 |
|
|
garion911 Tux's lil' helper
Joined: 04 Jun 2002 Posts: 88
|
Posted: Mon Jul 29, 2002 3:55 am Post subject: |
|
|
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 |
|
|
|