* [gentoo-user] about ccache permission adjusting
@ 2005-11-19 13:33 sempsteen
2005-11-19 18:11 ` Richard Fish
0 siblings, 1 reply; 4+ messages in thread
From: sempsteen @ 2005-11-19 13:33 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2130 bytes --]
Hi,
I've changed my CFLAGS settings and merged ccache for later works. Now i'm
updating my system with "emerge -e world". During merge i realize that
ccache is adjusting permissions for 4 times per package; before merge,
before unmerge of existing packages, after unmerge and after merge. It's
something like this:
--- !targe sym /usr/lib/libglib-2.0.so <http://2.0.so>
* Adjusting permissions on ccache in /root/.ccache
>>> original instance of package unmerged safely.
* Adjusting permissions on ccache in /root/.ccache
>>> Regenerating /etc/ld.so.cache...
>>> dev-libs/glib-2.6.5 merged.
* Adjusting permissions on ccache in /root/.ccache
>>> clean: No packages selected for removal.
>>> emerge (133 of 405) x11-libs/pango-1.8.1-r1 to /
* Adjusting permissions on ccache in /root/.ccache
My question is about this adjusting process, each adjusting process longs
about 5 to 6 seconds. For whole update this makes 135 to 162 minutes and if
this really is only an permission adjusting process i thought this is just
loosing time. Can you help to understand this and if there is a setting for
this that i've missed would you show me?
-----------------------
My make.conf file
-----------------------
CFLAGS="-march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer
-momit-leaf-frame-pointer -fno-ident"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de
http://mirror.aiya.ru/pub/gentoo/ http://ftp.citkit.ru/pub/Linux/gentoo
http://ftp.ankara.edu.tr/gentoo/"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="-3dfx -3dnow -3dnowext -afs -aim -qt -kde -ipv6 -nsplugin -doc -debug
-spell -arts oss esd unicode gnome alsa mmx sse sse2 nls X gtk gtk2"
PORT_LOGDIR=/home/portage/logs
CLEAN_DELAY=0
FEATURES="ccache"
CCACHE_SIZE="2G"
CCACHE_DIR="/root/.ccache"
[-- Attachment #2: Type: text/html, Size: 3633 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] about ccache permission adjusting
2005-11-19 13:33 [gentoo-user] about ccache permission adjusting sempsteen
@ 2005-11-19 18:11 ` Richard Fish
2005-11-19 19:08 ` sempsteen
0 siblings, 1 reply; 4+ messages in thread
From: Richard Fish @ 2005-11-19 18:11 UTC (permalink / raw
To: gentoo-user
On 11/19/05, sempsteen <sempsteen@gmail.com> wrote:
> Hi,
> I've changed my CFLAGS settings and merged ccache for later works. Now i'm
> updating my system with "emerge -e world". During merge i realize that
> ccache is adjusting permissions for 4 times per package; before merge,
> before unmerge of existing packages, after unmerge and after merge. It's
> something like this:
>
> --- !targe sym /usr/lib/libglib-2.0.so
> * Adjusting permissions on ccache in /root/.ccache
> >>> original instance of package unmerged safely.
First, there is no need to post your message multiple times. Gmail
doesn't show your own postings to mailing lists, so you will not see
your message until someone resonds. Also, you should only post in
plain text...no HTML/Rich formatting.
The Adjusting permissions is done in /usr/lib/portage/pym/portage.py.
Basically, it makes sure that the ccache directory is owned by
root:portage, and is group writable. If you use userpriv, it does the
same thing, but for owner portage:portage.
Actually, there is a problem in the code in that it also looks for the
SETGUID bit, but doesn't set it. So if you want to avoid this, you
can set the SETGUID bit with:
chmod -R 02770 /root/.ccache
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] about ccache permission adjusting
2005-11-19 18:11 ` Richard Fish
@ 2005-11-19 19:08 ` sempsteen
0 siblings, 0 replies; 4+ messages in thread
From: sempsteen @ 2005-11-19 19:08 UTC (permalink / raw
To: gentoo-user
>> First, there is no need to post your message multiple times.
I didn't know that i sent it multiple times?. I've sent one to
"gentoo-user@lists.gentoo.org" by mistake and when i figure out this i
wrote another one to "gentoo-user@gentoo.org". From your message i see
that both are the same way. I'm realy sorry about this.
>> Also, you should only post in plain text...no HTML/Rich formatting.
You're right, sorry again. I'll never do that again.
And thank for your considerations and answer.
On 11/19/05, Richard Fish <bigfish@asmallpond.org> wrote:
> On 11/19/05, sempsteen <sempsteen@gmail.com> wrote:
> > Hi,
> > I've changed my CFLAGS settings and merged ccache for later works. Now i'm
> > updating my system with "emerge -e world". During merge i realize that
> > ccache is adjusting permissions for 4 times per package; before merge,
> > before unmerge of existing packages, after unmerge and after merge. It's
> > something like this:
> >
> > --- !targe sym /usr/lib/libglib-2.0.so
> > * Adjusting permissions on ccache in /root/.ccache
> > >>> original instance of package unmerged safely.
>
> First, there is no need to post your message multiple times. Gmail
> doesn't show your own postings to mailing lists, so you will not see
> your message until someone resonds. Also, you should only post in
> plain text...no HTML/Rich formatting.
>
> The Adjusting permissions is done in /usr/lib/portage/pym/portage.py.
> Basically, it makes sure that the ccache directory is owned by
> root:portage, and is group writable. If you use userpriv, it does the
> same thing, but for owner portage:portage.
>
> Actually, there is a problem in the code in that it also looks for the
> SETGUID bit, but doesn't set it. So if you want to avoid this, you
> can set the SETGUID bit with:
>
> chmod -R 02770 /root/.ccache
>
> -Richard
>
> --
> gentoo-user@gentoo.org mailing list
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] about ccache permission adjusting
@ 2005-11-19 10:59 sempsteen
0 siblings, 0 replies; 4+ messages in thread
From: sempsteen @ 2005-11-19 10:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1812 bytes --]
Hi,
I've changed my CFLAGS settings and merged ccache for future works. Now i'm
updating my system with "emerge -e world". During merge i realize that
ccache is adjusting permissions before and after for all packages, it's
something like this:
>>> media-libs/libsdl-1.2.8-r1 merged.
* Adjusting permissions on ccache in /root/.ccache
>>> clean: No packages selected for removal.
>>> emerge (105 of 405) media-libs/jpeg-6b-r5 to /
* Adjusting permissions on ccache in /root/.ccache
My question is about this adjusting process, each adjusting process longs
about 4 to 5 seconds. For whole update this makes 54 to 67.5 minutes and if
this really is only an permission adjusting process i thought this is just
loosing time. Can you help to understand this and if there is a settings for
this that i missed would you show me?
-----------------------
My make.conf file
-----------------------
CFLAGS="-march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer
-momit-leaf-frame-pointer -fno-ident"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de
http://mirror.aiya.ru/pub/gentoo/ http://ftp.citkit.ru/pub/Linux/gentoo
http://ftp.ankara.edu.tr/gentoo/"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="-3dfx -3dnow -3dnowext -afs -aim -qt -kde -ipv6 -nsplugin -doc -debug
-spell -arts oss esd unicode gnome alsa mmx sse sse2 nls X gtk gtk2"
PORT_LOGDIR=/home/portage/logs
CLEAN_DELAY=0
FEATURES="ccache"
CCACHE_SIZE="2G"
CCACHE_DIR="/root/.ccache"
[-- Attachment #2: Type: text/html, Size: 2635 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-11-19 19:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-19 13:33 [gentoo-user] about ccache permission adjusting sempsteen
2005-11-19 18:11 ` Richard Fish
2005-11-19 19:08 ` sempsteen
-- strict thread matches above, loose matches on Subject: below --
2005-11-19 10:59 sempsteen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox