Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't update portage
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1740

PostPosted: Fri Jan 14, 2011 2:31 pm    Post subject: Can't update portage Reply with quote

Code:

# qlist -Iv sys-apps/portage
sys-apps/portage-2.1.6.13


# emerge portage

These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy ">=dev-db/sqlite-3" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-db/sqlite-3.7.4 (masked by: EAPI 3)
- dev-db/sqlite-3.7.3 (masked by: EAPI 3)
- dev-db/sqlite-3.7.2 (masked by: EAPI 3)

The current version of portage supports EAPI '2'. You must upgrade to a
newer version of portage before EAPI masked packages can be installed.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
(dependency required by "dev-lang/python-2.6.6-r1" [ebuild])
(dependency required by "sys-apps/portage-2.1.9.25" [ebuild])
(dependency required by "portage" [argument])


Looks like I have a chicken and egg problem here. How do I update portage (followed by the rest of the system)?
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Fri Jan 14, 2011 2:48 pm    Post subject: Reply with quote

This may help:

Code:
emerge --nodeps portage


As it will ignore any dependencies that portage may need.

Rich
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Fri Jan 14, 2011 3:28 pm    Post subject: Reply with quote

See this recent [solved] thread which was the same problem.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Fri Jan 14, 2011 5:06 pm    Post subject: Reply with quote

Code:
eix -I  portage
[U] sys-apps/portage
     Available versions:  [P]2.1.6.7 2.1.6.13 2.1.8.3 2.1.9.24{tbz2} 2.1.9.25 (~)2.1.9.31 (~*)2.2.0_alpha15 **9999 {build doc epydoc +ipc linguas_pl python3 selinux}

So 2.1.6.13 is stable and current. Still you could try
Code:
emerge =portage-2.1.9.25 -1

Which should include support for EAPI 3.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1740

PostPosted: Fri Jan 14, 2011 7:24 pm    Post subject: Reply with quote

This is just getting worse and worse.

I can't upgrade portage without upgrading python.

Code:

$ qlist -Iv dev-lang/python
dev-lang/python-2.4.4-r6
dev-lang/python-2.5.4-r2


Code:

# emerge -1O python

These are the packages that would be merged, in order:

[ebuild  NS   ] dev-lang/python-2.6.6-r1 [2.4.4-r6, 2.5.4-r2] USE="berkdb ipv6 ncurses readline sqlite ssl threads (wide-unicode) xml -build -doc -examples -gdbm -tk -wininst" 0 kB

Total: 1 package (1 in new slot), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-lang/python-2.6.6-r1
 * Python-2.6.6.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                      [ ok ]
 * python-gentoo-patches-2.6.6-r1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                    [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                         [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                        [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                       [ ok ]
 * "bsddb" module is out-of-date and no longer maintained inside dev-lang/python. It has
 * been additionally removed in Python 3. You should use external, still maintained "bsddb3"
 * module provided by dev-python/bsddb3 which supports both Python 2 and Python 3.
>>> Unpacking source...
>>> Unpacking Python-2.6.6.tar.bz2 to /var/tmp/portage/dev-lang/python-2.6.6-r1/work
>>> Unpacking python-gentoo-patches-2.6.6-r1.tar.bz2 to /var/tmp/portage/dev-lang/python-2.6.6-r1/work
>>> Source unpacked in /var/tmp/portage/dev-lang/python-2.6.6-r1/work
>>> Preparing source in /var/tmp/portage/dev-lang/python-2.6.6-r1/work/Python-2.6.6 ...
 * Applying various patches (bugfixes/updates) ...
 *   01_all_static_library_location.patch ...                                                                                                                                 [ ok ]
 *   02_all_disable_modules_and_ssl.patch ...                                                                                                                                 [ ok ]
 *   03_all_add_portage_search_path.patch ...                                                                                                                                 [ ok ]
 *   04_all_libdir.patch ...                                                                                                                                                  [ ok ]
 *   05_all_verbose_building_of_extensions.patch ...                                                                                                                          [ ok ]
 *   06_all_dbm_automagic.patch ...                                                                                                                                           [ ok ]
 *   07_all_internal_expat.patch ...                                                                                                                                          [ ok ]
 *   08_all_non-zero_exit_status_on_failure.patch ...                                                                                                                         [ ok ]
 *   09_all_use_external_libffi.patch ...                                                                                                                                     [ ok ]
 *   10_all_rwx_mmap_issue5504.patch ...                                                                                                                                      [ ok ]
 *   21_all_distutils_c++.patch ...                                                                                                                                           [ ok ]
 *   22_all_turkish_locale.patch ...                                                                                                                                          [ ok ]
 *   23_all_arm_OABI.patch ...                                                                                                                                                [ ok ]
 *   61_all_process_data.patch ...                                                                                                                                            [ ok ]
 * Done with patching
 * Running eautoreconf in '/var/tmp/portage/dev-lang/python-2.6.6-r1/work/Python-2.6.6' ...
 * Running aclocal ...                                                                                                                                                        [ ok ]
 * Running autoconf ...                                                                                                                                                       [ ok ]
 * Running autoheader ...                                                                                                                                                     [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/python-2.6.6-r1/work/Python-2.6.6 ...
 * Disabled modules: __all__  gdbm _tkinter
gcc-config: error: could not run/locate 'i686-pc-linux-gnu-cpp'
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-fpectl --enable-shared --enable-ipv6 --with-threads --enable-unicode=ucs4 --infodir=${prefix}/share/info --mandir=${prefix}/share/man --with-libc= --with-system-ffi
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking machine type as reported by uname -m... i686
checking for --without-gcc... no
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: in `/var/tmp/portage/dev-lang/python-2.6.6-r1/work/Python-2.6.6':
configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/python-2.6.6-r1/work/Python-2.6.6/config.log
 *
 * ERROR: dev-lang/python-2.6.6-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_configure
 *             environment, line 5596:  Called econf '--with-fpectl' '--enable-shared' '--enable-ipv6' '--with-threads' '--enable-unicode=ucs4' '--infodir=${prefix}/share/info' '--mandir=${prefix}/share/man' '--with-libc=' '--with-system-ffi'
 *               ebuild.sh, line  534:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/dev-lang:python-2.6.6-r1:20110114-191651.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-2.6.6-r1/temp/environment'.
 *

>>> Failed to emerge dev-lang/python-2.6.6-r1, Log file:

>>>  '/var/log/portage/dev-lang:python-2.6.6-r1:20110114-191651.log'


Code:

# eselect gcc
!!! Error: Can't load module gcc
Killed
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1740

PostPosted: Fri Jan 14, 2011 7:45 pm    Post subject: Reply with quote

hielvc wrote:
So 2.1.6.13 is stable and current. Still you could try
Code:
emerge =portage-2.1.9.25 -1

Which should include support for EAPI 3.


Not even close.

Code:

# emerge =portage-2.1.9.25 -1

These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy ">=dev-db/sqlite-3" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-db/sqlite-3.7.4 (masked by: EAPI 3)
- dev-db/sqlite-3.7.3 (masked by: EAPI 3)
- dev-db/sqlite-3.7.2 (masked by: EAPI 3)

The current version of portage supports EAPI '2'. You must upgrade to a
newer version of portage before EAPI masked packages can be installed.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
(dependency required by "dev-lang/python-2.6.6-r1" [ebuild])
(dependency required by "sys-apps/portage-2.1.9.25" [ebuild])
(dependency required by "=portage-2.1.9.25" [argument])


Obviously, I tried removing sqlite, but that didn't get me anywhere either:

Code:

# USE=-sqlite emerge -1p =portage-2.1.9.25

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-libs/libffi-3.0.9  USE="-debug -static-libs -test" 715 kB
[ebuild     U ] sys-devel/libtool-2.2.6b [1.5.26] USE="-test% -vanilla" 722 kB
[ebuild  N    ] virtual/libffi-0  0 kB
[ebuild     U ] app-admin/eselect-1.2.11 [1.0.12] USE="-bash-completion -doc" 156 kB
[uninstall    ] app-admin/eselect-news-20080320
[blocks b     ] app-admin/eselect-news ("app-admin/eselect-news" is blocking app-admin/eselect-1.2.11)
[ebuild  N    ] app-admin/eselect-python-20100321  6 kB
[ebuild  NS   ] dev-lang/python-2.6.6-r1 [2.4.4-r6, 2.5.4-r2] USE="berkdb ipv6 ncurses readline ssl threads (wide-unicode) xml -build -doc -examples -gdbm -sqlite -tk -wininst" 0 kB
[ebuild     U ] sys-apps/portage-2.1.9.25 [2.1.6.13] USE="(ipc%*) -build -doc -epydoc -python3% (-selinux)" LINGUAS="-pl" 0 kB
[blocks B     ] <sys-apps/portage-2.1.9 ("<sys-apps/portage-2.1.9" is blocking dev-lang/python-2.6.6-r1)

Total: 7 packages (3 upgrades, 3 new, 1 in new slot, 1 uninstall), Size of downloads: 1,598 kB
Conflict: 2 blocks (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  ('ebuild', '/', 'dev-lang/python-2.6.6-r1', 'merge') pulled in by
    dev-lang/python:2.6 required by ('ebuild', '/', 'sys-apps/portage-2.1.9.25', 'merge')


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Fri Jan 14, 2011 8:32 pm    Post subject: Reply with quote

Well, looks like it is getting harder. portage-2.1.6.13 has remained in the tree for rescuing older systems and helping to provide an upgrade path. So, the most recent & best forum thread that shows how to upgrade an old system is this one. Look near end of the thread (page 2), he summarizes the steps that worked. It will involve emerging some binary pkgs from tinderbox which will give you a working toolchain capable of upgrading the rest of your system.

Oh, and check how old your kernel is, because the new coreutils breaks your system if your running an old kernel.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21490

PostPosted: Fri Jan 14, 2011 9:20 pm    Post subject: Reply with quote

hielvc wrote:
So 2.1.6.13 is stable and current. Still you could try
Code:
emerge =portage-2.1.9.25 -1

Which should include support for EAPI 3.
According to the output in the first post, Portage picked 2.1.9.25 on its own, then failed out due to the errors shown.

OP: please provide the output of emerge --info if you need any further assistance solving this. Also, take note that the post referenced by dol-sen assumes an x86 system and uses tinderbox binaries for x86 as a result. If you are on some other architecture, take care to grab binaries appropriate to that architecture instead.
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1740

PostPosted: Sat Jan 15, 2011 3:07 am    Post subject: Reply with quote

dol-sen wrote:
Well, looks like it is getting harder. portage-2.1.6.13 has remained in the tree for rescuing older systems and helping to provide an upgrade path.


Leaving it there (not working) doesn't help much. :(

dol-sen wrote:
It will involve emerging some binary pkgs from tinderbox which will give you a working toolchain capable of upgrading the rest of your system.


I actually managed (I thought) to upgrade the toolchain (before tackling portage).

Code:

emerge -1 linux-headers texinfo gettext binutils gcc glibc baselayout zlib


finished with no errors.

dol-sen wrote:
Oh, and check how old your kernel is, because the new coreutils breaks your system if your running an old kernel.


Code:

$ uname -a
Linux system 2.6.27-gentoo-r10 #1 Sun May 24 11:46:40 UTC 2009 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz GenuineIntel GNU/Linux


I have seen that later coreutils needs a "recent" kernel, but I have no idea what that (objectively) means.

Hu wrote:
OP: please provide the output of emerge --info if you need any further assistance solving this.


Code:

$ emerge --info
!!! No gcc found. You probably need to 'source /etc/profile'
!!! to update the environment of this terminal and possibly
!!! other terminals also.
Portage 2.1.6.13 (default/linux/x86/10.0/desktop/kde, [unavailable], glibc-2.11.2-r3, 2.6.27-gentoo-r10 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r10-i686-Intel-R-_Pentium-R-_4_CPU_1.70GHz-with-glibc2.0
Timestamp of tree: Fri, 14 Jan 2011 04:30:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.7
dev-lang/python:     2.4.4-r6, 2.5.4-r2
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
sys-devel/make:      3.81
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks fixpackages protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_NZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa ass audiofile berkdb bwscheduler bzip2 cairo caps cdio cdr cjk client consolekit cracklib crypt css cups cxx dbus dga directfb downloadorder dri dvd dvdnav encode exif expat fam fbcon ffmpeg flac gcj ggi gif glibc-omitfp gmp gphoto2 gpm gstreamer gtk hal handbook hardcoded-tables iconv idea imap imlib infowidget ipfilter ipv6 jabber javascript jbig joystick jpeg kde lcms libnotify libwww live lm_sensors logviewer lzma mad matroska mbox mdns-bundled memlimit mmx mmxext mp3 mpeg mudflap mysql nas ncurses netapi network nls no-old-linux nodrm nptl nptlonly ntp ogg opengl openmedia openmp oscar osdmenu pango pcre pdf perl pm-utils png ps qt3support raptor readline redland rss rtc scanfolder scanner sdl search semantic-desktop server shm silc smbclient smtp sndfile speex spell sse sse2 ssl stats svg sysfs tcpd theora threads threadsafe tiff timidity tremor truetype udev unicode upnp usb userlocales vcd vorbis webinterface x86 xcb xinerama xml xorg xv xvid yahoo zlib zrtp" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="intel" 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, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Yes, I tried sourcing /etc/profile.

It seems that my biggest immediate problem is that the system can't find gcc. I upgraded eselect to 1.2.11 (latest stable), and it didn't help.

Hu wrote:
Also, take note that the post referenced by dol-sen assumes an x86 system and uses tinderbox binaries for x86 as a result. If you are on some other architecture, take care to grab binaries appropriate to that architecture instead.


Yes, this is x86, but I would have noticed that and corrected it if it weren't. :)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21490

PostPosted: Sat Jan 15, 2011 3:37 am    Post subject: Reply with quote

I should have noticed this earlier. You tried to use eselect to manage the active gcc, but this is not the proper way to do it. You must use gcc-config to list or set the active gcc. I suspect that you somehow removed the active gcc, which is why any future calls to gcc now fail. Sourcing /etc/profile ensures that the running shell uses the gcc that is selected. However, since you have removed the gcc which is selected, sourcing does you no good. Reset your gcc to the one version that you have installed, then try a test build of a simple package that requires a working C compiler.
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sat Jan 15, 2011 3:55 am    Post subject: Reply with quote

Once you have gcc working again, you should be able to emerge python-2.6 which only needs EAPI=2 followed by portage. I would emerge them separately. Newer portage versions are much better at handling blocks automatically along with other use dependency problems. That and a few other feature improvements are the reason for the EAPI advances in the past few years. (The big reason there are so many upgrade problems with old portage installs these days).

Oh, and keep some binpkg's of your system pkgs before you do a bunch of upgrades. You may need to downgrade one or two along the way.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1740

PostPosted: Sat Jan 15, 2011 4:00 am    Post subject: Reply with quote

Hu wrote:
I should have noticed this earlier. You tried to use eselect to manage the active gcc, but this is not the proper way to do it. You must use gcc-config to list or set the active gcc.


Oops. You are right. Why does gentoo use eselect for everything except gcc?

Hu wrote:
I suspect that you somehow removed the active gcc, which is why any future calls to gcc now fail. Sourcing /etc/profile ensures that the running shell uses the gcc that is selected. However, since you have removed the gcc which is selected, sourcing does you no good. Reset your gcc to the one version that you have installed, then try a test build of a simple package that requires a working C compiler.


Well, I fixed the gcc problem, and tried emerging python-2.6.6-r1. That worked, so I should be on my way.

But:

Code:

emerge -C dev-lang/python-2.5.4-r2

 dev-lang/python
    selected: 2.5.4-r2
   protected: none
     omitted: 2.6.6-r1

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging dev-lang/python-2.5.4-r2...
 * The 'prerm' phase of the 'dev-lang/python-2.5.4-r2' package has failed
 * with exit value -1.
 *
 * The problem occurred while executing the ebuild file named
 * 'python-2.5.4-r2.ebuild' located in the '/var/db/pkg/dev-
 * lang/python-2.5.4-r2' directory. If necessary, manually remove the
 * environment.bz2 file and/or the ebuild file located in that directory.
 *
 * Removal of the environment.bz2 file is preferred since it may allow the
 * removal phases to execute successfully. The ebuild will be sourced and
 * the eclasses from the current portage tree will be used when necessary.
 * Removal of the ebuild file will cause the pkg_prerm() and pkg_postrm()
 * removal phases to be skipped entirely.
Traceback (most recent call last):
  File "/usr/bin/emerge", line 40, in <module>
    retval = _emerge.emerge_main()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 15751, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 13890, in action_uninstall
    valid_atoms, ldpath_mtimes, ordered=ordered)
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 12264, in unmerge
    scheduler=scheduler)
  File "/usr/lib/portage/pym/portage/__init__.py", line 6782, in unmerge
    ldpath_mtimes=ldpath_mtimes)
  File "/usr/lib/portage/pym/portage/dbapi/vartree.py", line 1376, in unmerge
    vartree=self.vartree)
  File "/usr/lib/portage/pym/portage/__init__.py", line 6266, in doebuild
    fd_pipes=fd_pipes, returnpid=returnpid)
  File "/usr/lib/portage/pym/portage/__init__.py", line 3462, in spawn
    buf.fromfile(f, buffsize)
IOError: [Errno 5] Input/output error


What happened here?
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sat Jan 15, 2011 4:06 am    Post subject: Reply with quote

Code:
  File "/usr/lib/portage/pym/portage/__init__.py", line 3462, in spawn
    buf.fromfile(f, buffsize)
IOError: [Errno 5] Input/output error


Run out of disk space or main memory? maybe clean things up a bit.

rm -r /var/tmp/portage
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1740

PostPosted: Sat Jan 15, 2011 4:12 am    Post subject: Reply with quote

No such luck.

Code:

# USE=-sqlite emerge portage

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-apps/portage-2.1.9.25 [2.1.6.13] USE="(ipc%*) -build -doc -epydoc -python3% (-selinux)" LINGUAS="-pl" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/portage-2.1.9.25
Traceback (most recent call last):
  File "/usr/bin/emerge", line 40, in <module>
    retval = _emerge.emerge_main()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 15814, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 14872, in action_build
    retval = mergetask.merge()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 10875, in merge
    rval = self._merge()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 11176, in _merge
    self._main_loop()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 11313, in _main_loop
    self._poll_loop()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 9667, in _poll_loop
    handler(f, event)
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 2427, in _output_handler
    buf.fromfile(files.process, self._bufsize)
IOError: [Errno 11] Resource temporarily unavailable
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9507
Location: beyond the rim

PostPosted: Sat Jan 15, 2011 4:15 am    Post subject: Reply with quote

curmudgeon wrote:
Hu wrote:
I should have noticed this earlier. You tried to use eselect to manage the active gcc, but this is not the proper way to do it. You must use gcc-config to list or set the active gcc.

Oops. You are right. Why does gentoo use eselect for everything except gcc?

Well, gcc-config is much older than eselect, and the attempt to rewrite it as an eselect module has failed miserably.
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1740

PostPosted: Sat Jan 15, 2011 4:16 am    Post subject: Reply with quote

dol-sen wrote:
Code:
  File "/usr/lib/portage/pym/portage/__init__.py", line 3462, in spawn
    buf.fromfile(f, buffsize)
IOError: [Errno 5] Input/output error


Run out of disk space or main memory? maybe clean things up a bit.

rm -r /var/tmp/portage


I don't think so. I have over a gigabyte of ram and am not running anything (not even X), and several gigabytes of disk space.

/var/tmp/portage is empty (or at least was before my subsequent attempt to emerge portage).
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sat Jan 15, 2011 4:24 am    Post subject: Reply with quote

did you eselect python-2.6 after the merge. Looking again, looks like it failed, due to removing the active python.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1740

PostPosted: Sat Jan 15, 2011 4:28 am    Post subject: Reply with quote

dol-sen wrote:
did you eselect python-2.6 after the merge. Looking again, looks like it failed, due to removing the active python.


I didn't explicitly select it, but it is active:

Code:

$ eselect python list
Available Python interpreters:
  [1]   python2.5
  [2]   python2.6 *
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sat Jan 15, 2011 5:00 am    Post subject: Reply with quote

I'm running out of ideas. To me it looks like a python problem. Perhaps py-2.6 didn't compile properly? If no one else comes up with a solution, try getting a python binary from tinderbox.

Does emerge --info show the new python?

Try calling emerge from python2.6
Code:
python2.6 /usr/bin/emerge --info
but I doubt that will change anything.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1740

PostPosted: Sat Jan 15, 2011 5:29 am    Post subject: Reply with quote

dol-sen wrote:
Does emerge --info show the new python?


Yes.

I can do emerge --info and emerge -f, but trying to actually emerge anything results in the same error as above.
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1213
Location: Massachusetts USA

PostPosted: Sat Jan 15, 2011 6:53 am    Post subject: Reply with quote

Try selecting python2.5 as the active python
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 885
Location: Germany

PostPosted: Sat Jan 15, 2011 7:16 am    Post subject: Reply with quote

Perhaps you should also run python-updater.
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sat Jan 15, 2011 10:13 am    Post subject: Reply with quote

Code:

<zmedico> dol-sen: that 's looks like bug 330937
<willikins> zmedico: https://bugs.gentoo.org/330937 "dev-lang/python-2.6.5_p20100801 breaks <sys-apps/portage-2.1.9"; Gentoo Linux, Development; RESO, FIXE; proteuss@sdf.lonestar.org:qa@g.o
<zmedico> dol-sen: >=python-2.6.6 should have blockers to prevent people from experiencing that
<zmedico> yeah, it has !!<sys-apps/portage-2.1.9
 user might have triggered the bug by using --nodeps


looks like you'll need to grab a binary portage if your python-2.5 is broken from trying to unmerge it. You can try to run your old portage from python-2.5 without eselecting it. If it fails,...
Code:
python2.5 emerge -1v portage

or

wget http://tinderbox.dev.gentoo.org/default-linux/x86/sys-apps/portage-2.1.9.25.tbz2


use the portage rescue guide to unpack it.
http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1740

PostPosted: Sat Jan 15, 2011 1:00 pm    Post subject: Reply with quote

Clad in Sky wrote:
Perhaps you should also run python-updater.


That failed miserably, because it wanted to re-emerge packages no longer in the tree (dev-libs/newt-0.52.2, for example).

OK. I got the binary portage (2.1.9.25) from tinderbox, shoved that in, and managed to emerge sys-apps/portage-2.1.9.25 (lots of complaints about file collisions, but it went through). Obviously the docs weren't kidding when they said that older versions would not work with < python 2.6.

Now, I am trying to re-emerge everything. I used the --keep-going option, but it stopped the first time an ebuild (libtool) failed, and I couldn't get it to resume, so I had to start over. :(

Lots of potential potholes ahead, but I will post follow-ups.

Dol-sen, your idea about using python 2.5 to update portage (once I have 2.6 on the system) probably would have worked, but I had installed the binary portage before I read it.
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sat Jan 15, 2011 4:18 pm    Post subject: Reply with quote

For anyone else reading this thread with similar problems.

You will want to upgrade to
Code:
emerge -1v =dev-lang/python-2.6.5-r3
emerge -1v portage


Python-2.6.5 does not have that problem with older portage's and will work with new portage as well. Afterwards you can update to python 2.66 or 2.7.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum