I updated my PPC install last night and this morning I came to 'dispatch-conf' and got the following error...
Code: Select all
# dispatch-conf
Traceback (most recent call last):
File "/usr/sbin/dispatch-conf", line 22, in <module>
import portage
File "//usr/lib/portage/pym/portage/__init__.py", line 96, in <module>
from portage.data import ostype, lchown, userland, secpass, uid, wheelgid, \
File "//usr/lib/portage/pym/portage/data.py", line 101, in <module>
mystatus, myoutput = getstatusoutput("id -G portage")
File "/usr/lib/python2.5/commands.py", line 53, in getstatusoutput
pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
OSError: [Errno 9] Bad file descriptor
Code: Select all
# emerge -uDNa world
Traceback (most recent call last):
File "/usr/bin/emerge", line 29, in <module>
import _emerge
File "//usr/lib/portage/pym/_emerge/__init__.py", line 26, in <module>
import portage
File "//usr/lib/portage/pym/portage/__init__.py", line 96, in <module>
from portage.data import ostype, lchown, userland, secpass, uid, wheelgid, \
File "//usr/lib/portage/pym/portage/data.py", line 101, in <module>
mystatus, myoutput = getstatusoutput("id -G portage")
File "/usr/lib/python2.5/commands.py", line 53, in getstatusoutput
pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
OSError: [Errno 9] Bad file descriptor
Code: Select all
...
# Ditto but preserving the exit status.
# Returns a pair (sts, output)
#
def getstatusoutput(cmd):
"""Return (status, output) of executing cmd in a shell."""
import os
pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r') <<< Problem line
text = pipe.read()
sts = pipe.close()
if sts is None: sts = 0
if text[-1:] == '\n': text = text[:-1]
return sts, text
...
Code: Select all
# genlop -l | grep python
Tue Jun 9 10:19:44 2009 >>> dev-python/numeric-24.2-r6
Tue Jun 9 12:39:31 2009 >>> dev-python/pycairo-1.8.2
Tue Jun 9 13:28:11 2009 >>> dev-python/pygobject-2.16.1
Tue Jun 9 14:45:28 2009 >>> dev-python/pygtk-2.14.1
Wed Jun 10 17:03:36 2009 >>> dev-lang/python-2.5.4-r2
Thu Jun 11 00:34:43 2009 >>> dev-python/pyxml-0.8.4-r1
Fri Jun 12 11:07:27 2009 >>> dev-python/pyrex-0.9.8.5
Fri Jun 12 11:24:48 2009 >>> dev-python/dbus-python-0.82.4
Fri Jun 12 12:14:05 2009 >>> dev-python/notify-python-0.1.1-r1
Tue Jun 16 00:57:02 2009 >>> dev-python/gnome-python-base-2.22.3
Tue Jun 16 00:58:06 2009 >>> dev-python/gconf-python-2.22.3
Tue Jul 28 23:39:57 2009 >>> app-admin/eselect-python-20090606
Tue Jul 28 23:50:47 2009 >>> dev-lang/python-2.5.4-r3
Code: Select all
$ more /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="powerpc-unknown-linux-gnu"
MAKEOPTS="-j2"
## Lets try out unstable
#ACCEPT_KEYWORDS="~ppc"
## Mirrors in the UK
GENTOO_MIRRORS="http://gentoo.virginmedia.com http://www.mirrorservice/sites/www.ibiblio.org/gentoo/"
#SYNC="rsync.uk.gentoo.org/gentoo-portage"
SYNC="rsync.gentoo.org/gentoo-portage"
## USE flags
USE="alsa bash-completion cups dbus emacs evdev exif geoip gimp gtk2 hal jpeg -kde -mozilla mpd mp3 ogg opengl pdf
perl png postgres qt scanner sqlite real tiff usb vorbis X xulrunner"
## Input
INPUT_DEVICES="evdev keyboard mouse joystick"
## Portage Overlay Directory
PORTDIR_OVERLAY="/usr/portage/local/"
## Emerge defaults
EMERGE_DEFAULT_OPTS="--verbose --keep-going"
## Portage features
FEATURES="nodoc parallel-fetch ccache"
## Linguas flag
LINGUAS="en_GB"
Thanks in advance,
slack




