Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264728 - revdep-rebuild from app-portage/gentoolkit-0.2.4.2-r1 does not work, complains of Incorrect permissions on /var/cache/revdep-rebuild
Summary: revdep-rebuild from app-portage/gentoolkit-0.2.4.2-r1 does not work, complain...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-03 07:20 UTC by Aniruddha Shankar
Modified: 2009-04-17 02:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aniruddha Shankar 2009-04-03 07:20:47 UTC
satori ~ # revdep-rebuild
* Configuring search environment for revdep-rebuild
* Incorrect permissions on /var/cache/revdep-rebuild
* or at least one file in /var/cache/revdep-rebuild.
* Please make sure it's not a symlink and then remove it.
 
 
satori ~ # ls -l /var/cache/
total 4164
drwxr-xr-x  3 root      portage      4096 Apr  3 12:20 edb
-rw-rw-r--  1 portage   portage   2117587 Apr  3 11:17 eix
-rw-rw-r--  1 portage   portage   2111404 Apr  3 11:12 eix.previous
drwxr-xr-x  2 root      root         4096 Mar  4 20:36 fontconfig
drwxr-xr-x  2 haldaemon haldaemon    4096 Mar 11 12:56 hald
drwx------  2 root      root         4096 Apr  3 12:04 ldconfig
drwxrwxr-x 27 root      man          4096 Jun 17  2008 man
drwx------  2 root      root         4096 Apr  3 12:19 revdep-rebuild
 
 
satori ~ # ls -la /var/cache/revdep-rebuild/
total 8
drwx------ 2 root root 4096 Apr  3 12:19 .
drwxr-xr-x 8 root root 4096 Apr  3 12:21 ..
-rw-r--r-- 1 root root    0 Apr  3 12:19 .keep_app-portage_gentoolkit-0


I have tried to change the permission to 777, i've tried to move the folder, i've tried everything I can think of for over an hour.

Reproducible: Always
Comment 1 Aniruddha Shankar 2009-04-03 07:28:47 UTC
satori ~ # emerge --info
Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r3 x86_64)
=================================================================                                        
System uname: Linux-2.6.28-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8200_@_2.66GHz-with-glibc2.2.5   
Timestamp of tree: Fri, 03 Apr 2009 05:30:01 +0000                                                       
ccache version 2.4 [enabled]                                                                             
app-shells/bash:     4.0_p10-r1                                                                          
dev-java/java-config: 2.1.7                                                                              
dev-lang/python:     2.5.4-r2                                                                            
dev-util/ccache:     2.4-r8                                                                              
dev-util/cmake:      2.6.3                                                                               
sys-apps/baselayout: 2.0.0                                                                               
sys-apps/openrc:     0.4.3-r1                                                                            
sys-apps/sandbox:    1.7                                                                                 
sys-devel/autoconf:  2.13, 2.63                                                                          
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                           
sys-devel/binutils:  2.19.1-r1                                                                           
sys-devel/gcc-config: 1.4.1                                                                              
sys-devel/libtool:   2.2.6a                                                                              
virtual/os-headers:  2.6.28-r1                                                                           
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                           
CBUILD="x86_64-pc-linux-gnu"                                                                             
CFLAGS="-march=core2 -O2 -pipe -ggdb"                                                                    
CHOST="x86_64-pc-linux-gnu"                                                                              
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"                                                  
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"                                                             
CXXFLAGS="-march=core2 -O2 -pipe -ggdb"                                                                                         
DISTDIR="/usr/portage/distfiles"                                                                                                
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.gg3.net/ "
LDFLAGS="-Wl,-O1"
LINGUAS="en hi hi_IN"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 audiofile bash-completion berkdb bittorrent bzip2 cairo caps captury cdparanoia chm cleartype cli cracklib crypt dbus dga dhcp dirac disk-partition djvu dri embedded encode equalizer exif extra fam ffmpeg fftw firefox flac fontconfig fortran fuse games gdbm gif git glitz gnutls google-gadgets gphoto2 gpm gs gsm gtk hal htmlhandbook iconv id3tag ieee1394 imagemagick imlib inotify isdnlog java jbig jingle jpeg jpeg2k kate kde kde4 kipi laptop lcms libass libcaca libnotify lm_sensors logitech-mouse lzo mad matroska midi mmap mmx mng mp3 mpeg msn mudflap multilib musepack mysql ncurses network nls nptl nptlonly nsplugin ogg openal opengl openmp oss pam pcre pdf perl plasma png pppd pulseaudio python qt4 readline reflection rle sasl schroedinger sdl sdl-image semantic-desktop session skins sndfile speex spell spl sse sse2 ssl ssse3 startup-notification subversion suid svg sysfs taglib tcpd theora threads tiff truetype unicode usb utils vim-syntax vorbis webkit x264 xcb xcomposite xft xine xinerama xml xorg xosd xscreensaver xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audiovia82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en hi hi_IN" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Aniruddha Shankar 2009-04-03 07:36:07 UTC
when I try it as a normal user, I get this:

kream@satori ~ $ revdep-rebuild
* You are not superuser. Adding --pretend to emerge options.
* Configuring search environment for revdep-rebuild
* Incorrect permissions on /tmp/revdep-rebuild.MBB953s3eY
* or at least one file in /tmp/revdep-rebuild.MBB953s3eY.
* Please make sure it's not a symlink and then remove it.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-08 18:01:21 UTC
Please post your `mount -v' output.
Comment 4 jijo 2009-04-10 10:24:37 UTC
I got same thing. mount -v out:

rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,noatime,errors=continue,data=ordered)
proc on /proc type proc (rw,nosuid,nodev,noexec)
rc-svcdir on /lib/rc/init.d type tmpfs (rw,nosuid,nodev,noexec,size=1024k,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
Comment 5 michael@smith-li.com 2009-04-11 14:04:34 UTC
Please give us the output of revdep-rebuild -d (debug) or run 

uid=$(python -c 'import os; import pwd; print pwd.getpwuid(os.getuid())[0]')
find /var/cache/revdep-rebuild -type d ! \( -user "$uid" -perm -0700 \)

and give us the output of that, or both :)

Thanks!
Comment 6 michael@smith-li.com 2009-04-17 02:39:16 UTC
I'll be removing the tempdir security checks.

This bug is moot now and it won't be possible to track down more information on what caused the problem. Please refer to bug 263661 and bug 203414.