Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338588 - quickpkg should be usable by non-root users & non-portage group
Summary: quickpkg should be usable by non-root users & non-portage group
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 335925
  Show dependency tree
 
Reported: 2010-09-24 18:39 UTC by SpanKY
Modified: 2010-09-26 07:28 UTC (History)
0 users

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 SpanKY gentoo-dev 2010-09-24 18:39:01 UTC
since all of the gcc package is world readable, this should work fine as a non-root user and non-portage group:
$ PKGDIR=$PWD/pkgs quickpkg sys-devel/gcc

instead, we get:
Traceback (most recent call last):
  File "/usr/sbin/quickpkg", line 241, in <module>
    retval = quickpkg_main(options, args, eout)
  File "/usr/sbin/quickpkg", line 78, in quickpkg_main
    dblnk.lockdb()
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1168, in lockdb
    self._lock_vdb = lockdir(self.dbroot)
  File "/usr/lib64/portage/pym/portage/locks.py", line 32, in lockdir
    return lockfile(mydir,wantnewlockfile=1)
  File "/usr/lib64/portage/pym/portage/locks.py", line 77, in lockfile
    raise PermissionDenied(func_call)
portage.exception.PermissionDenied: open('/var/db/.pkg.portage_lockfile')

and no, i do not have a "/var/db/.pkg.portage_lockfile" for whatever reason



Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34 x86_64)
=================================================================
System uname: Linux-2.6.34-x86_64-AMD_Opteron-tm-_Processor_252-with-gentoo-1.12.13
Timestamp of tree: Fri, 24 Sep 2010 01:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 1.3.7-r1, 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.16.1-r3, 2.17-r1, 2.18-r3, 2.20.1-r1
sys-devel/gcc:       3.3.6-r1, 3.4.5-r1, 3.4.6-r1, 4.1.0-r1, 4.1.1-r3, 4.1.2, 4.3.2-r3, 4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8 -Wimplicit-function-declaration"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildsyspkg ccache collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,-z,relro"
LINGUAS="en de en_GB en_US"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
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 /usr/portage/local/layman/nouveau"
SYNC="rsync://gentoo/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 asf aspell audiofile berkdb branding bzip2 cairo cddb cdparanoia cdr chm cli console consolekit cracklib crypt css cups curl cvs cxx dbus doc dri dts dv dvb dvd dvdr dvdread emboss encode exif fam fbcon ffmpeg firefox flac fontconfig fortran fpx gcj gd gdbm gif glitz glut gmp gphoto2 gpm graphviz gs gsm gtk gtk2 hal httpd iconv idea ieee1394 imagemagick iproute2 ipv6 irda jadetex javascript jbig joystick jpeg jpeg2k kde kerberos lame lcms ldap libcaca libnotify lirc live lzo mad madwifi matroska mikmod ming mjpeg mmx mmxext mng mod modplug modules mp3 mp4 mpeg mplayer mudflap multilib multislot mysql ncurses network nls nptl nptlonly nsplugin ntfs nvidia ogg openal openexr opengl openmp openntpd pango pcre pdf perl php png ppds pppd python qt qt3support qt4 readline reflection reiserfs rss rtsp samba sasl scanner sdl session shout skins slp sndfile snmp socks5 speex spell sql sqlite sse sse2 ssl startup-notification stream subversion svg sysfs tcl tcpd tga theora threads tiff tk truetype unicode upnp usb v4l v4l2 vaapi vcd vdr vorbis webkit wideband wifi wma wmf wxwindows x264 xanim xcb xcomposite xfs xine xinerama xinetd xml xorg xosd xpm xprint xrandr xscreensaver xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="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" 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 cgi cgid 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de en_GB en_US" LIRC_DEVICES="sir" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia nv vga sisusb" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Zac Medico gentoo-dev 2010-09-26 07:28:29 UTC
This is fixed in 2.1.9.11 and 2.2_rc87.