<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>162542</bug_id>
          
          <creation_ts>2007-01-17 15:37 0000</creation_ts>
          <short_desc>portage doesn&apos;t fix CCACHE_DIR permissions w/ userpriv/usersandbox in FEATURES</short_desc>
          <delta_ts>2008-04-13 04:35:13 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Portage Development</product>
          <component>Core - External Interaction</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>InSVN, REGRESSION</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>200044</blocked>
    
    <blocked>216231</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>k@191a.net</reporter>
          <assigned_to>dev-portage@gentoo.org</assigned_to>
          <cc>andri@dot.ee</cc>
    
    <cc>ansla80@yahoo.com</cc>
    
    <cc>dirtyepic@gentoo.org</cc>
    
    <cc>jakub@gentoo.org</cc>
    
    <cc>steffen.bergner@bertelsmann.de</cc>

      

      
          <long_desc isprivate="0">
            <who>k@191a.net</who>
            <bug_when>2007-01-17 15:37:10 0000</bug_when>
            <thetext>I&apos;m using ccache and trying to check it&apos;s efficacy by doing 
# CCACHE_DIR=/var/tmp/ccache ccache -s as the ccache ebuild recommends. This works fine, as long as FEATURES in make.conf does not include userpriv or usersandbox. 

If only usersandbox is enabled, the following fields update:

1. cache hit
2. cache miss
3. autoconf compile/link
4. files in cache

If usersandbox is enabled, no fields update.

Reproducible: Always




emerge --info
bodhi ~ # emerge --info
Portage 2.1.2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r4 i686)
=================================================================
System uname: 2.6.19-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.8
Timestamp of tree: Wed, 17 Jan 2007 04:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r1
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=athlon-xp -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=athlon-xp -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict usersandbox&quot;
GENTOO_MIRRORS=&quot;http://gentoo.blueyonder.co.uk http://gentoo.mirrors.tds.net/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/&quot;
LINGUAS=&quot;en_GB en hi_IN hi&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;3dnow 3dnowext X a52 aac aalib alsa apache2 bash-completion berkdb bitmap-fonts bzip2 cairo cdda cddb cli cpudetection cracklib crypt dbus dhcp dlloader dri dts dv dvd encode ffmpeg flac fortran gdbm gif glitz gnutls gpm hal iconv ieee1394 imagemagick imlib isdnlog java javascript jbig jce jpeg kde kdeenablefinal kdexdeltas lame libcaca libg++ libnotify lm_sensors mad mikmod mmap mmx mmxext mng mp3 mp4 mpeg msn musicbrainz mysql ncurses network nls nptl nptlonly nsplugin nvidia offensive ogg opengl pam pcre perl php png ppds pppd python qt3 qt3support qt4 quicktime readline real reflection rtc samba sdl sensord session skins socks5 speex spell spl sqlite sse sse2 ssl startup-notification svg tcpd theora tiff tk truetype truetype-fonts type1-fonts udev unicode utempter vcd visualization vorbis win32codecs wmf x264 x86 xforms xinerama xorg xscreensaver xv xvid xvmc zlib&quot; ALSA_CARDS=&quot;ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en_GB en hi_IN hi&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nv nvidia vesa vga&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
--------------------------------------------------------------------------
make.conf
CFLAGS=&quot;-O2 -march=athlon-xp -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CXXFLAGS=&quot;${CFLAGS}&quot;
ACCEPT_KEYWORDS=~x86
FEATURES=&quot;parallel-fetch ccache metadata-transfer usersandbox&quot;
USE=&quot; 3dnow 3dnowext a52 aac aalib alsa apache2 bash-completion \
     bzip2 cairo cdda cddb cpudetection -cups dbus dhcp dts dv \
     dvd encode ffmpeg flac gif glitz gnutls hal ieee1394 \
     imagemagick imlib -ipv6 java javascript jbig jce jpeg kde \
     kdeenablefinal kdexdeltas lame libcaca libnotify lm_sensors \
     mad mikmod mmap mmx mmxext mng mp3 mp4 mpeg msn \
     musicbrainz mysql network nsplugin nvidia offensive ogg \
     opengl php png qt3 qt3support qt4 quicktime real rtc samba \
     sdl sensord skins socks5 speex spell sqlite sse sse2 \
     startup-notification svg theora tiff tk truetype utempter vcd \
     visualization vorbis win32codecs wmf X x264 xforms xinerama \
     xscreensaver xv xvid xvmc&quot;
#VIDEO_CARDS=&quot;-i810 -mga -s3virge -savage -sis -tdfx -trident -via&quot;
VIDEO_CARDS=&quot;nv nvidia vesa vga&quot;
MAKEOPTS=&quot;-j2&quot;
PORTAGE_ELOG_CLASSES=&quot;warn error log info&quot;
PORTAGE_ELOG_SYSTEM=&quot;save mail&quot;
LINGUAS=&quot;en_GB en hi_IN hi&quot;
#FETCHCOMMAND=&quot;/usr/bin/axel -a -o \${DISTDIR}/\${FILE} \${URI}&quot;
FETCHCOMMAND=&quot;/usr/bin/getdelta.sh \${URI}&quot;
#RESUMECOMMAND=&quot;/usr/bin/axel -a -o \${DISTDIR}/\${FILE} \${URI}&quot;
PORTAGE_TMPFS=&quot;/dev/shm&quot;
GENTOO_MIRRORS=&quot;http://gentoo.blueyonder.co.uk http://gentoo.mirrors.tds.net/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/&quot;
#EMERGE_DEFAULT_OPTS=with-bdeps
PORTDIR_OVERLAY=/usr/local/portage
#CCACHE_LOGFILE=/var/log/portage/ccache.log
CCACHE_SIZE=&quot;2048M&quot;
---------------------------------------------------------------------
/var/tmp/ccache has the following permissions:
drwxrwsr-x 18 root    portage 565248 Jan 17 20:52 ccache</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genone@gentoo.org</who>
            <bug_when>2007-01-20 16:32:52 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; If only usersandbox is enabled, the following fields update:
&gt; 
&gt; 1. cache hit
&gt; 2. cache miss
&gt; 3. autoconf compile/link
&gt; 4. files in cache
&gt; 
&gt; If usersandbox is enabled, no fields update.

There is a contradiction here, I assume one of those should be &quot;userpriv&quot; instead of &quot;usersandbox&quot;, but which one?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>k@191a.net</who>
            <bug_when>2007-01-20 18:48:49 0000</bug_when>
            <thetext>Whoops - my error. The comment should read like this:

I&apos;m using ccache and trying to check it&apos;s efficacy by doing 
# CCACHE_DIR=/var/tmp/ccache ccache -s as the ccache ebuild recommends. This
works fine, as long as FEATURES in make.conf does not include userpriv or
usersandbox. 

If only usersandbox is enabled, the following fields update:

1. cache hit
2. cache miss
3. autoconf compile/link
4. files in cache

If userpriv is enabled, no fields update.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>petebourner@yahoo.co.uk</who>
            <bug_when>2007-05-29 14:59:20 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Whoops - my error. The comment should read like this:
&gt; 
&gt; I&apos;m using ccache and trying to check it&apos;s efficacy by doing 
&gt; # CCACHE_DIR=/var/tmp/ccache ccache -s as the ccache ebuild recommends. This
&gt; works fine, as long as FEATURES in make.conf does not include userpriv or
&gt; usersandbox. 
&gt; 
&gt; If only usersandbox is enabled, the following fields update:
&gt; 
&gt; 1. cache hit
&gt; 2. cache miss
&gt; 3. autoconf compile/link
&gt; 4. files in cache
&gt; 
&gt; If userpriv is enabled, no fields update.
&gt; 

I&apos;ve just come across this bug also. The problem is that when the &apos;userpriv&apos; flag is enabled, portage drops the privileges to the &apos;portage&apos; user when compiling. Unfortunately, the permissions for the ccache cache folders are not set to allow writing by this user, but only to allow reading.

The workaround I&apos;m using is to change the permissions using:
chmod -R g+w /var/tmp/ccache

It works for me now. This shouldn&apos;t introduce any security problems, as you are already allowing the portage group to compile your packages.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nico@lifeisabug.com</who>
            <bug_when>2007-05-29 21:57:05 0000</bug_when>
            <thetext>I also had this problem, see http://forums.gentoo.org/viewtopic-p-4079380.html (german). I think someone should add &quot;If you are using ccache together with userfretch/usersandbox, please do a chmod -R g+w /var/tmp/ccache or ccache wont work&quot; to the ccache ebuild ewarn/einfo.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andri@dot.ee</who>
            <bug_when>2007-05-30 21:27:04 0000</bug_when>
            <thetext>Even though the current bug summary is unrelated to /var/tmp/ccache permissions, I can confirm, that for some reason the group write perm gets lost. While looking for the reason why Portage and ccache didn&apos;t work on my system (userpriv/usersandbox set the whole time), I often flushed the cache completely -- both
rm -r /var/tmp/ccache/*
and with
CCACHE_DIR=/var/tmp/ccache ccache -Cz,
yet that had no impact. Only later did I apply chmod g+w to the ccache dir&apos;s contents (emerging still appeared to create some empty tmp files).
I&apos;m quite certain /var/tmp/ccache itself was 2775 the whole time. After a few emerges with ccache finally &quot;working&quot;, I again saw some not group write perm&apos;ed files -- though I presume at that time they were owned by portage and not root.
But why some files were owned by root in the beginning is strange -- I&apos;ve used userpriv long before ccache was emerged, and after ccache I didn&apos;t not run any of my own compilations with ccache/nor had the CCACHE_DIR env-var set globally.
Issue needs reviewing, but I&apos;m a bit lazy at the moment to unmerge ccache and test everything cleanly :-)

Perhaps Portage runs ./configure occasionally under root with ccache support, and hence those root owned empty dirs?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>steffen.bergner@bertelsmann.de</who>
            <bug_when>2007-12-20 11:03:33 0000</bug_when>
            <thetext>It may help as another possibility: 
 chown -cR portage:portage /var/tmp/ccache</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-01-08 11:50:01 0000</bug_when>
            <thetext>`CCACHE_DIR=/var/tmp/ccache ccache -s` work perfectly fine w/ FEATURES=&quot;ccache userpriv usersandbox&quot; enabled. Been using it like this for ages.

Correct permissions have been set by portage since Bug 99120 was fixed - which is back in portage-2.0.53 days, years ago (i.e. 02755 portage:portage). 

Unfortunately, the permissions fix seems to have vanished somewhere, I can&apos;t see portage adjusting the permissions any more anywhere by a simple grep in /usr/$(get_libdir)/portage.

Looks like a Bug 99120 regression to me unless I&apos;ve missed something.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-01-08 11:51:35 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; (i.e. 02755 portage:portage). 

Sigh, typos--. I meant 02775 portage:portage obviously</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zmedico@gentoo.org</who>
            <bug_when>2008-01-10 23:09:34 0000</bug_when>
            <thetext>Created an attachment (id=140638)
detect userpriv permission problems and fix

If this patch is saved as /tmp/droppriv.patch then it can be applied as follows:

patch /usr/lib/portage/pym/portage.py /tmp/droppriv.patch</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zmedico@gentoo.org</who>
            <bug_when>2008-01-12 03:39:53 0000</bug_when>
            <thetext>This has been released in 2.1.4.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2008-04-04 17:39:01 0000</bug_when>
            <thetext>i don&apos;t think this is working correctly.  there are still a number of problems i&apos;m running into.

when portage creates CCACHE_DIR (with or without userpriv enabled) it sets it up as:

halo /var/cache/ccache # ll
total 4.0K
drwxrwsr-x 18 root portage 456 2008-04-04 11:11 .
drwxr-xr-x  8 root root    200 2008-04-04 11:10 ..
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 0
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 1
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 2
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 3
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 4
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 5
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 6
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 7
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 8
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 9
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 a
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 b
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 c
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 d
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 e
drwxr-sr-x  2 root portage  72 2008-04-04 11:10 f
-rw-r--r--  1 root portage  49 2008-04-04 11:11 stats

building as root works of course.  changing to userpriv does not cache any data and as an added bonus leaves piles of useless temp files behind when it finds it can&apos;t write to the hash dirs.


testcase:
(assuming CCACHE_DIR=/var/cache/ccache)

halo ~ # rm -r /var/cache/ccache
halo ~ # FEATURES=-userpriv emerge zlib
halo ~ # ccache -s
cache directory                     /var/cache/ccache
cache hit                              0
cache miss                            34
called for link                        4
not a C/C++ file                       1
unsupported compiler option            4
no input file                          1
files in cache                        68
cache size                           748 Kbytes
max cache size                       2.0 Gbytes
halo ~ # FEATURES=-userpriv emerge zlib
halo ~ # ccache -s
cache directory                     /var/cache/ccache
cache hit                             26
cache miss                            42
called for link                        8
not a C/C++ file                       2
unsupported compiler option            8
no input file                          2
files in cache                        84
cache size                           788 Kbytes
max cache size                       2.0 Gbytes
halo ~ # FEATURES=userpriv emerge zlib
halo ~ # ccache -s
cache directory                     /var/cache/ccache
cache hit                             26
cache miss                            42
called for link                        8
not a C/C++ file                       2
unsupported compiler option           12
no input file                          3
files in cache                        84
cache size                           788 Kbytes
max cache size                       2.0 Gbytes
halo ~ # FEATURES=userpriv emerge zlib
halo ~ # ccache -s
cache directory                     /var/cache/ccache
cache hit                             26
cache miss                            42
called for link                        8
not a C/C++ file                       2
unsupported compiler option           16
no input file                          4
files in cache                        84
cache size                           788 Kbytes
max cache size                       2.0 Gbytes
halo ~ # ll /var/cache/ccache/
total 13K
drwxrwsr-x 18 root    portage  536 2008-04-04 11:24 .
drwxr-xr-x  8 root    root     200 2008-04-04 11:23 ..
drwxr-sr-x  6 root    portage  168 2008-04-04 11:23 0
drwxr-sr-x  4 root    portage  120 2008-04-04 11:23 1
drwxr-sr-x  4 root    portage  120 2008-04-04 11:23 2
drwxr-sr-x  6 root    portage  168 2008-04-04 11:23 3
drwxr-sr-x  2 root    portage   72 2008-04-04 11:23 4
drwxr-sr-x  7 root    portage  192 2008-04-04 11:23 5
drwxr-sr-x  2 root    portage   72 2008-04-04 11:23 6
drwxr-sr-x  5 root    portage  144 2008-04-04 11:23 7
drwxr-sr-x  4 root    portage  120 2008-04-04 11:23 8
drwxr-sr-x  4 root    portage  120 2008-04-04 11:23 9
drwxr-sr-x  6 root    portage  168 2008-04-04 11:23 a
drwxr-sr-x  3 root    portage   96 2008-04-04 11:23 b
drwxr-sr-x  4 root    portage  120 2008-04-04 11:23 c
drwxr-sr-x  7 root    portage  192 2008-04-04 11:23 d
drwxr-sr-x  3 root    portage   96 2008-04-04 11:23 e
drwxr-sr-x  3 root    portage   96 2008-04-04 11:23 f
-rw-r--r--  1 root    portage   50 2008-04-04 11:24 stats
-rw-r--r--  1 portage portage 7.3K 2008-04-04 11:23 tmp.hash.halo.16191.o
-rw-r--r--  1 portage portage    0 2008-04-04 11:23 tmp.stderr.halo.16191


Setting group write permissions recursively on CCACHE_DIR would fix this.

I did this on a box with portage-2.1.4.4 installed, but I originally hit it with 2.2_pre5 so same problem there as well.


Portage 2.2_pre5 (default/linux/amd64/2008.0/developer, gcc-4.3.1-pre20080402, glibc-2.7-r2, 2.6.24-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r4 x86_64 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz
Timestamp of tree: Fri, 04 Apr 2008 04:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS=&quot;amd64 ~amd64&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -g -march=core2 -fomit-frame-pointer -pipe -fdirectives-only&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-O2 -g -march=core2 -fomit-frame-pointer -pipe -fdirectives-only&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;assume-digests ccache collision-protect cvs digest distlocks fixpackages metadata-transfer multilib-strict parallel-fetch preserve-libs sandbox sfperms sign strict unmerge-orphans userfetch userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;http://gentoo.mirrors.tera-byte.com/ http://gentoo.osuosl.org http://distfiles.gentoo.org&quot;
LANG=&quot;en_US.utf8&quot;
LDFLAGS=&quot;-Wl,-O1&quot;
LINGUAS=&quot;en&quot;
MAKEOPTS=&quot;-j4&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/layman/mozilla /home/dirtyepic/overlay /home/dirtyepic/svn/dirtyepic /home/dirtyepic/svn/gcc-porting&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zmedico@gentoo.org</who>
            <bug_when>2008-04-08 22:50:16 0000</bug_when>
            <thetext>Created an attachment (id=149140)
check permissions inside CCACHE_DIR

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>steffen.bergner@bertelsmann.de</who>
            <bug_when>2008-04-09 06:38:25 0000</bug_when>
            <thetext>e.g. 
chmod -cR g+w /var/tmp/ccache  
chown -cR portage:portage /var/tmp/ccache

if in &quot;/etc/env.d/99local&quot; -&gt; CCACHE_DIR=&quot;/var/tmp/ccache&quot;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zmedico@gentoo.org</who>
            <bug_when>2008-04-13 04:35:13 0000</bug_when>
            <thetext>This is fixed in 2.1.5_rc3.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>140638</attachid>
            <date>2008-01-10 23:09 0000</date>
            <desc>detect userpriv permission problems and fix</desc>
            <filename>droppriv.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IHB5bS9wb3J0YWdlLnB5Cj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHB5bS9wb3J0YWdlLnB5CShyZXZp
c2lvbiA5MTU2KQorKysgcHltL3BvcnRhZ2UucHkJKHdvcmtpbmcgY29weSkKQEAgLTQwMzgsNiAr
NDAzOCwxMSBAQAogCWRpcm1vZGUgID0gMDIwNzAKIAlmaWxlbW9kZSA9ICAgMDYwCiAJbW9kZW1h
c2sgPSAgICAwMgorCXJlc3RyaWN0ID0gbXlzZXR0aW5ncy5nZXQoIlBPUlRBR0VfUkVTVFJJQ1Qi
LCIiKS5zcGxpdCgpCisJZnJvbSBwb3J0YWdlX2RhdGEgaW1wb3J0IHNlY3Bhc3MKKwlkcm9wcHJp
diA9IHNlY3Bhc3MgPj0gMiBhbmQgXAorCQkidXNlcnByaXYiIGluIG15c2V0dGluZ3MuZmVhdHVy
ZXMgYW5kIFwKKwkJInVzZXJwcml2IiBub3QgaW4gcmVzdHJpY3QKIAlmb3IgbXlmZWF0dXJlLCBr
d2FyZ3MgaW4gZmVhdHVyZXNfZGlycy5pdGVyaXRlbXMoKToKIAkJaWYgbXlmZWF0dXJlIGluIG15
c2V0dGluZ3MuZmVhdHVyZXM6CiAJCQliYXNlZGlyID0gbXlzZXR0aW5nc1trd2FyZ3NbImJhc2Vk
aXJfdmFyIl1dCkBAIC00MDU0LDcgKzQwNTksMTMgQEAKIAkJCQkJIyBHZW5lcmFsbHksIHdlIG9u
bHkgd2FudCB0byBhcHBseSBwZXJtaXNzaW9ucyBmb3IKIAkJCQkJIyBpbml0aWFsIGNyZWF0aW9u
LiAgT3RoZXJ3aXNlLCB3ZSBkb24ndCBrbm93IGV4YWN0bHkgd2hhdAogCQkJCQkjIHBlcm1pc3Np
b25zIHRoZSB1c2VyIHdhbnRzLCBzbyBzaG91bGQgbGVhdmUgdGhlbSBhcy1pcy4KLQkJCQkJaWYg
bW9kaWZpZWQgb3Iga3dhcmdzWyJhbHdheXNfcmVjdXJzZSJdOgorCQkJCQlkcm9wcHJpdl9maXgg
PSBGYWxzZQorCQkJCQlpZiBkcm9wcHJpdjoKKwkJCQkJCXN0ID0gb3Muc3RhdChteWRpcikKKwkJ
CQkJCWlmIHN0LnN0X2dpZCAhPSBwb3J0YWdlX2dpZCBvciBcCisJCQkJCQkJbm90IHN0YXQuU19J
TU9ERShzdC5zdF9tb2RlKSAmIGRpcm1vZGU6CisJCQkJCQkJZHJvcHByaXZfZml4ID0gVHJ1ZQor
CQkJCQlpZiBtb2RpZmllZCBvciBrd2FyZ3NbImFsd2F5c19yZWN1cnNlIl0gb3IgZHJvcHByaXZf
Zml4OgogCQkJCQkJaWYgbW9kaWZpZWQ6CiAJCQkJCQkJd3JpdGVtc2coIkFkanVzdGluZyBwZXJt
aXNzaW9ucyByZWN1cnNpdmVseTogJyVzJ1xuIiAlIG15ZGlyLAogCQkJCQkJCQlub2lzZWxldmVs
PS0xKQo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>149140</attachid>
            <date>2008-04-08 22:50 0000</date>
            <desc>check permissions inside CCACHE_DIR</desc>
            <filename>userpriv.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IHB5bS9wb3J0YWdlLnB5Cj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHB5bS9wb3J0YWdlLnB5CShyZXZp
c2lvbiA5NzU5KQorKysgcHltL3BvcnRhZ2UucHkJKHJldmlzaW9uIDk3NjApCkBAIC00MjM0LDEy
ICs0MjM0LDM0IEBACiAJCQkJCWlmIGRyb3Bwcml2OgogCQkJCQkJc3QgPSBvcy5zdGF0KG15ZGly
KQogCQkJCQkJaWYgc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