Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293808 - app-portage/portato dependency on dev-python/shm
Summary: app-portage/portato dependency on dev-python/shm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-20 07:33 UTC by Nikitas Skembris
Modified: 2010-03-31 15:55 UTC (History)
1 user (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 Nikitas Skembris 2009-11-20 07:33:55 UTC
App-portage/portato depends on dev-python/shm only if [userpriv] USE flag is *not* set

Portato, when run with simple user privileges, will always fail with an unhandled error about missing shm, if dev-python/shm is not installed.

If I understand the situation correctly, I suggest either:

1) Putting a dependency on dev-python/shm only if USE flag [userpriv] *is* set and moving /usr/bin/portato to /usr/sbin/portato, to make clear that portato is not supposed to run as a non-root user

or

2) Just making dependency on dev-python/shm unconditional.

Reproducible: Always

Steps to Reproduce:
1.# USE=userpriv emerge portato
2.$ portato 
Actual Results:  
Traceback (most recent call last):
  File "/usr/bin/portato", line 20, in <module>
    start()
  File "/usr/lib64/python2.6/site-packages/portato/__init__.py", line 90, in start
    import shm_wrapper as shm
ImportError: No module named shm_wrapper
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib64/python2.6/site-packages/portato/listener.py", line 134, in close
    if self._sig is not None:
AttributeError: 'Listener' object has no attribute '_sig'
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib64/python2.6/site-packages/portato/listener.py", line 134, in close
    if self._sig is not None:
AttributeError: 'Listener' object has no attribute '_sig'


emerge --info
Portage 2.2_rc49 (default/linux/amd64/10.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.31-gentoo-r2-jaheira x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r2-jaheira-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7200_@_2.53GHz-with-gentoo-2.1.6
Timestamp of tree: Tue, 17 Nov 2009 07:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.5.4-r3, 2.6.3, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.1.6
sys-apps/openrc:     0.5.0-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
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.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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/gentoo-release /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildsyspkg ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict suidctl unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US el"
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/layman/zugaina /usr/local/portage/layman/trauma /usr/local/portage/layman/games /usr/local/portage/layman/vmware /usr/local/portage/layman/sunrise /usr/local/portage/layman/perl-experimental /usr/local/portage/layman/akoya /usr/local/portage/layman/enlightenment /usr/local/portage/layman/science /usr/local/portage/layman/mozilla /usr/local/portage/layman/oss-overlay /usr/local/portage/layman/x11 /usr/local/portage/layman/python /usr/local/portage/layman/pythonhead /usr/local/portage/layman/vps /usr/local/portage/nske"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alac alsa amd64 amr amrnb amrwb berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dhcpcd divx dmx doc dri dts dvd dvdr dvdread eds emboss encode esd evo examples faac faad fam fax ffmpeg firefox flac fortran freetype gdbm gif gnome gnome-keyring gnutls gpm gstreamer gtk h224 h323 hal hpn iconv imagemagick inotify jpeg kde lame libnotify mad matroska mikmod mmap mmx mmxext modules mp3 mp4 mpeg mudflap multilib nautilus ncurses net network networkmanager nls nptl nptlonly nvidia ogg ogm opengl openmp oss oss4 pam pcre pdf perl plugins png policykit postscript ppds pppd pulseaudio python python3 qt3support qt4 quicktime radio readline reflection sdl session sip spell spl sqlite srt sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads thunar tiff truetype unicode usb vdpau vhook vorbis wav wavpack wmf x264 xcomposite xine xinerama xml xorg xprint xrandr xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8X0 ca0106 hda-intel" 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US el" USERLAND="GNU" VIDEO_CARDS="nouveau vesa nv nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 René 'Necoro' Neumann 2009-11-20 16:16:36 UTC
Thanks for your report. Adding shm unconditionally is probably the most useful way here.

As portato also needs a bump, I combined this with bug #292389.

See there for the ebuild patch.
Comment 2 René 'Necoro' Neumann 2010-03-06 09:48:32 UTC
Fixed with 0.13.1 ebuild - can be closed now