* Re: [gentoo-user] emerge on really old tree
@ 2011-01-31 19:57 99% ` Alan McKinnon
0 siblings, 0 replies; 1+ results
From: Alan McKinnon @ 2011-01-31 19:57 UTC (permalink / raw
To: gentoo-user
Apparently, though unproven, at 18:35 on Monday 31 January 2011, Andrei Brezan
did opine thusly:
> Hi list,
>
> First, i'm not an experienced user of gentoo, just started using it a
> couple of months ago, I come from freebsd world which i find it to be
> similar in many ways with the gentoo world. I have a really old server
> on which I performed emerge --sync and after I had to eselect profile
> set to hardened/linux/amd64.
>
> After this i wanted to:
>
> emerge -vp portage
> !!! CONFIG_PROTECT is empty
> 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-r13, 2.5.4-r2]
> USE="berkdb gdbm ncurses readline ssl threads (wide-unicode) xml -build
> -doc -examples -ipv6 -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 ] >=dev-lang/python-2.6.6:2.6
> (">=dev-lang/python-2.6.6:2.6" is blocking sys-apps/portage-2.1.6.13)
> [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: 3 blocks (2 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
>
>
> This is my emerge --info:
> !!! CONFIG_PROTECT is emptyPortage 2.1.6.13 (hardened/linux/amd64,
> gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-hardened-r9 x86_64)
> =================================================================
> System uname:
> Linux-2.6.28-hardened-r9-x86_64-Intel-R-_Xeon-R-_CPU_E5520_@_2.27GHz-with-g
> libc2.2.5 Timestamp of tree: Mon, 31 Jan 2011 10:30:01 +0000
> app-shells/bash: 3.2_p39
> dev-lang/python: 2.4.4-r13, 2.5.4-r2
> sys-apps/baselayout: 1.12.11.1
> sys-apps/sandbox: 1.6-r2
> sys-devel/autoconf: 2.13, 2.63
> sys-devel/automake: 1.4_p6, 1.5, 1.10.2, 1.11.1
> sys-devel/binutils: 2.18-r3
> sys-devel/gcc: 4.1.2
> sys-devel/gcc-config: 1.4.0-r4
> sys-devel/libtool: 1.5.26
> sys-devel/make: 3.81
> virtual/os-headers: 2.6.23-r3
> ACCEPT_KEYWORDS="amd64"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-O3 -march=nocona -pipe"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT=""
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf
> /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
> /etc/php/cli-php5/ext-active/ /etc/sandbox.d /etc/terminfo
> /etc/udev/rules.d"
> CXXFLAGS="-O3 -march=nocona -pipe"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox
> sfperms strict unmerge-orphans userfetch"
> GENTOO_MIRRORS="http://distfiles.gentoo.org
> http://distro.ibiblio.org/pub/linux/distributions/gentoo"
> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
> 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="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri gdbm gpm
> hardened iconv justify mmx modules mudflap multilib ncurses nls nptl
> nptlonly openmp pam pcre perl pic pppd python readline session sse sse2
> ssl sysfs tcpd urandom xorg 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" 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="keyboard mouse
> evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
> lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3"
> RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel
> mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa
> via vmware voodoo" 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,
> LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS,
> PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
>
> I tried with --nodeps for both portage which complains about python
> version and doesn't want to install and for python itself i get:
>
> x86_64-pc-linux-gnu-gcc -pthread -Wl,-O1 -Wl,--as-needed -L. -Xlinker
> -export-dynamic -o python \
> Modules/python.o \
> -L. -lpython2.6 -lpthread -ldl -lutil -lm
> running build
> running build_ext
> error: /ffi.h: No such file or directory
> make: *** [sharedmods] Error 1
> *
> * ERROR: dev-lang/python-2.6.6-r1 failed.
> * Call stack:
> * ebuild.sh, line 49: Called src_compile
> * environment, line 5556: Called _eapi2_src_compile
> * ebuild.sh, line 634: Called die
> * The specific snippet of code:
> * emake || die "emake failed"
> * The die message:
> * emake failed
> *
> * If you need support, post the topmost build error, and the call
> stack if relevant.
> * A complete build log is located at
> '/var/tmp/portage/dev-lang/python-2.6.6-r1/temp/build.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/tmp/portage/dev-lang/python-2.6.6-r1/temp/build.log'
>
> * Messages for package dev-lang/python-2.6.6-r1:
>
> * "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.
> *
> * ERROR: dev-lang/python-2.6.6-r1 failed.
> * Call stack:
> * ebuild.sh, line 49: Called src_compile
> * environment, line 5556: Called _eapi2_src_compile
> * ebuild.sh, line 634: Called die
> * The specific snippet of code:
> * emake || die "emake failed"
> * The die message:
> * emake failed
> *
> * If you need support, post the topmost build error, and the call
> stack if relevant.
> * A complete build log is located at
> '/var/tmp/portage/dev-lang/python-2.6.6-r1/temp/build.log'.
> * The ebuild environment file is located at
> '/var/tmp/portage/dev-lang/python-2.6.6-r1/temp/environment'.
>
> Is it possible to update this system? If yes please shed some light or
> point me in the right direction.
It's certainly possible to update the old machine, but the real question is,
do you want to go through all that effort?
You will probably have to deal with multiple situations that follow this
pattern:
some package version X needs to be upgraded to version x+2. But there's some
other package that prevents you doing this immediately as there are blockers
in place. So you upgrade the other package, then upgrade the first one to
version X+1. Then do it all again to finally get the first package to version
X+2
You also have python-2.4 in there which needs to go to 2.6. Ouch. I have
horrible visions of running python-updater multiple times....
Gentoo shares its roots with FreeBSD but running Gentoo daily is always more
involved than with FreeBSD, especially cases like this. You cannot just
upgrade from eg Gentoo-5 to Gentoo-6 as these concepts do not exist.
It is so much easier to just backup your data files and re-install, then
restore the data. It'll take a few hours, trying to upgrade might take days.
If you want to try, start with "emerge -avuND system", get that to complete
and take it from there.
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2011-01-31 16:35 [gentoo-user] emerge on really old tree Andrei Brezan
2011-01-31 19:57 99% ` Alan McKinnon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox