1 |
Apparently, though unproven, at 18:35 on Monday 31 January 2011, Andrei Brezan |
2 |
did opine thusly: |
3 |
|
4 |
> Hi list, |
5 |
> |
6 |
> First, i'm not an experienced user of gentoo, just started using it a |
7 |
> couple of months ago, I come from freebsd world which i find it to be |
8 |
> similar in many ways with the gentoo world. I have a really old server |
9 |
> on which I performed emerge --sync and after I had to eselect profile |
10 |
> set to hardened/linux/amd64. |
11 |
> |
12 |
> After this i wanted to: |
13 |
> |
14 |
> emerge -vp portage |
15 |
> !!! CONFIG_PROTECT is empty |
16 |
> These are the packages that would be merged, in order: |
17 |
> |
18 |
> Calculating dependencies... done! |
19 |
> [ebuild N ] dev-libs/libffi-3.0.9 USE="-debug -static-libs -test" |
20 |
> 715 kB |
21 |
> [ebuild U ] sys-devel/libtool-2.2.6b [1.5.26] USE="-test% -vanilla" |
22 |
> 722 kB |
23 |
> [ebuild N ] virtual/libffi-0 0 kB |
24 |
> [ebuild U ] app-admin/eselect-1.2.11 [1.0.12] USE="-bash-completion |
25 |
> -doc" 156 kB |
26 |
> [uninstall ] app-admin/eselect-news-20080320 |
27 |
> [blocks b ] app-admin/eselect-news ("app-admin/eselect-news" is |
28 |
> blocking app-admin/eselect-1.2.11) |
29 |
> [ebuild N ] app-admin/eselect-python-20100321 6 kB |
30 |
> [ebuild NS ] dev-lang/python-2.6.6-r1 [2.4.4-r13, 2.5.4-r2] |
31 |
> USE="berkdb gdbm ncurses readline ssl threads (wide-unicode) xml -build |
32 |
> -doc -examples -ipv6 -sqlite -tk -wininst" 0 kB |
33 |
> [ebuild U ] sys-apps/portage-2.1.9.25 [2.1.6.13] USE="(ipc%*) -build |
34 |
> -doc -epydoc -python3% (-selinux)" LINGUAS="-pl" 0 kB |
35 |
> [blocks B ] >=dev-lang/python-2.6.6:2.6 |
36 |
> (">=dev-lang/python-2.6.6:2.6" is blocking sys-apps/portage-2.1.6.13) |
37 |
> [blocks B ] <sys-apps/portage-2.1.9 ("<sys-apps/portage-2.1.9" is |
38 |
> blocking dev-lang/python-2.6.6-r1) |
39 |
> |
40 |
> Total: 7 packages (3 upgrades, 3 new, 1 in new slot, 1 uninstall), Size |
41 |
> of downloads: 1,598 kB |
42 |
> Conflict: 3 blocks (2 unsatisfied) |
43 |
> |
44 |
> * Error: The above package list contains packages which cannot be |
45 |
> * installed at the same time on the same system. |
46 |
> |
47 |
> ('ebuild', '/', 'dev-lang/python-2.6.6-r1', 'merge') pulled in by |
48 |
> dev-lang/python:2.6 required by ('ebuild', '/', |
49 |
> 'sys-apps/portage-2.1.9.25', 'merge') |
50 |
> |
51 |
> |
52 |
> For more information about Blocked Packages, please refer to the following |
53 |
> section of the Gentoo Linux x86 Handbook (architecture is irrelevant): |
54 |
> |
55 |
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked |
56 |
> |
57 |
> |
58 |
> This is my emerge --info: |
59 |
> !!! CONFIG_PROTECT is emptyPortage 2.1.6.13 (hardened/linux/amd64, |
60 |
> gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-hardened-r9 x86_64) |
61 |
> ================================================================= |
62 |
> System uname: |
63 |
> Linux-2.6.28-hardened-r9-x86_64-Intel-R-_Xeon-R-_CPU_E5520_@_2.27GHz-with-g |
64 |
> libc2.2.5 Timestamp of tree: Mon, 31 Jan 2011 10:30:01 +0000 |
65 |
> app-shells/bash: 3.2_p39 |
66 |
> dev-lang/python: 2.4.4-r13, 2.5.4-r2 |
67 |
> sys-apps/baselayout: 1.12.11.1 |
68 |
> sys-apps/sandbox: 1.6-r2 |
69 |
> sys-devel/autoconf: 2.13, 2.63 |
70 |
> sys-devel/automake: 1.4_p6, 1.5, 1.10.2, 1.11.1 |
71 |
> sys-devel/binutils: 2.18-r3 |
72 |
> sys-devel/gcc: 4.1.2 |
73 |
> sys-devel/gcc-config: 1.4.0-r4 |
74 |
> sys-devel/libtool: 1.5.26 |
75 |
> sys-devel/make: 3.81 |
76 |
> virtual/os-headers: 2.6.23-r3 |
77 |
> ACCEPT_KEYWORDS="amd64" |
78 |
> CBUILD="x86_64-pc-linux-gnu" |
79 |
> CFLAGS="-O3 -march=nocona -pipe" |
80 |
> CHOST="x86_64-pc-linux-gnu" |
81 |
> CONFIG_PROTECT="" |
82 |
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf |
83 |
> /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ |
84 |
> /etc/php/cli-php5/ext-active/ /etc/sandbox.d /etc/terminfo |
85 |
> /etc/udev/rules.d" |
86 |
> CXXFLAGS="-O3 -march=nocona -pipe" |
87 |
> DISTDIR="/usr/portage/distfiles" |
88 |
> FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox |
89 |
> sfperms strict unmerge-orphans userfetch" |
90 |
> GENTOO_MIRRORS="http://distfiles.gentoo.org |
91 |
> http://distro.ibiblio.org/pub/linux/distributions/gentoo" |
92 |
> LDFLAGS="-Wl,-O1 -Wl,--as-needed" |
93 |
> PKGDIR="/usr/portage/packages" |
94 |
> PORTAGE_CONFIGROOT="/" |
95 |
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times |
96 |
> --compress --force --whole-file --delete --stats --timeout=180 |
97 |
> --exclude=/distfiles --exclude=/local --exclude=/packages" |
98 |
> PORTAGE_TMPDIR="/var/tmp" |
99 |
> PORTDIR="/usr/portage" |
100 |
> SYNC="rsync://rsync.gentoo.org/gentoo-portage" |
101 |
> USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri gdbm gpm |
102 |
> hardened iconv justify mmx modules mudflap multilib ncurses nls nptl |
103 |
> nptlonly openmp pam pcre perl pic pppd python readline session sse sse2 |
104 |
> ssl sysfs tcpd urandom xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp |
105 |
> atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 |
106 |
> fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx |
107 |
> via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare |
108 |
> dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter |
109 |
> mmap_emul mulaw multi null plug rate route share shm softvol" |
110 |
> APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon |
111 |
> authn_dbm authn_default authn_file authz_dbm authz_default |
112 |
> authz_groupfile authz_host authz_owner authz_user autoindex cache cgi |
113 |
> cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter |
114 |
> file_cache filter headers include info log_config logio mem_cache mime |
115 |
> mime_magic negotiation rewrite setenvif speling status unique_id userdir |
116 |
> usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory |
117 |
> rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm |
118 |
> earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea |
119 |
> ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf |
120 |
> superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse |
121 |
> evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 |
122 |
> lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" |
123 |
> RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel |
124 |
> mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa |
125 |
> via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 |
126 |
> ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq |
127 |
> steal rawnat logmark ipmark dhcpmac delude chaos account" |
128 |
> Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, |
129 |
> LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, |
130 |
> PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY |
131 |
> |
132 |
> I tried with --nodeps for both portage which complains about python |
133 |
> version and doesn't want to install and for python itself i get: |
134 |
> |
135 |
> x86_64-pc-linux-gnu-gcc -pthread -Wl,-O1 -Wl,--as-needed -L. -Xlinker |
136 |
> -export-dynamic -o python \ |
137 |
> Modules/python.o \ |
138 |
> -L. -lpython2.6 -lpthread -ldl -lutil -lm |
139 |
> running build |
140 |
> running build_ext |
141 |
> error: /ffi.h: No such file or directory |
142 |
> make: *** [sharedmods] Error 1 |
143 |
> * |
144 |
> * ERROR: dev-lang/python-2.6.6-r1 failed. |
145 |
> * Call stack: |
146 |
> * ebuild.sh, line 49: Called src_compile |
147 |
> * environment, line 5556: Called _eapi2_src_compile |
148 |
> * ebuild.sh, line 634: Called die |
149 |
> * The specific snippet of code: |
150 |
> * emake || die "emake failed" |
151 |
> * The die message: |
152 |
> * emake failed |
153 |
> * |
154 |
> * If you need support, post the topmost build error, and the call |
155 |
> stack if relevant. |
156 |
> * A complete build log is located at |
157 |
> '/var/tmp/portage/dev-lang/python-2.6.6-r1/temp/build.log'. |
158 |
> * The ebuild environment file is located at |
159 |
> '/var/tmp/portage/dev-lang/python-2.6.6-r1/temp/environment'. |
160 |
> * |
161 |
> |
162 |
> >>> Failed to emerge dev-lang/python-2.6.6-r1, Log file: |
163 |
> >>> '/var/tmp/portage/dev-lang/python-2.6.6-r1/temp/build.log' |
164 |
> |
165 |
> * Messages for package dev-lang/python-2.6.6-r1: |
166 |
> |
167 |
> * "bsddb" module is out-of-date and no longer maintained inside |
168 |
> dev-lang/python. It has |
169 |
> * been additionally removed in Python 3. You should use external, |
170 |
> still maintained "bsddb3" |
171 |
> * module provided by dev-python/bsddb3 which supports both Python 2 |
172 |
> and Python 3. |
173 |
> * |
174 |
> * ERROR: dev-lang/python-2.6.6-r1 failed. |
175 |
> * Call stack: |
176 |
> * ebuild.sh, line 49: Called src_compile |
177 |
> * environment, line 5556: Called _eapi2_src_compile |
178 |
> * ebuild.sh, line 634: Called die |
179 |
> * The specific snippet of code: |
180 |
> * emake || die "emake failed" |
181 |
> * The die message: |
182 |
> * emake failed |
183 |
> * |
184 |
> * If you need support, post the topmost build error, and the call |
185 |
> stack if relevant. |
186 |
> * A complete build log is located at |
187 |
> '/var/tmp/portage/dev-lang/python-2.6.6-r1/temp/build.log'. |
188 |
> * The ebuild environment file is located at |
189 |
> '/var/tmp/portage/dev-lang/python-2.6.6-r1/temp/environment'. |
190 |
> |
191 |
> Is it possible to update this system? If yes please shed some light or |
192 |
> point me in the right direction. |
193 |
|
194 |
It's certainly possible to update the old machine, but the real question is, |
195 |
do you want to go through all that effort? |
196 |
|
197 |
You will probably have to deal with multiple situations that follow this |
198 |
pattern: |
199 |
|
200 |
some package version X needs to be upgraded to version x+2. But there's some |
201 |
other package that prevents you doing this immediately as there are blockers |
202 |
in place. So you upgrade the other package, then upgrade the first one to |
203 |
version X+1. Then do it all again to finally get the first package to version |
204 |
X+2 |
205 |
|
206 |
You also have python-2.4 in there which needs to go to 2.6. Ouch. I have |
207 |
horrible visions of running python-updater multiple times.... |
208 |
|
209 |
Gentoo shares its roots with FreeBSD but running Gentoo daily is always more |
210 |
involved than with FreeBSD, especially cases like this. You cannot just |
211 |
upgrade from eg Gentoo-5 to Gentoo-6 as these concepts do not exist. |
212 |
|
213 |
It is so much easier to just backup your data files and re-install, then |
214 |
restore the data. It'll take a few hours, trying to upgrade might take days. |
215 |
|
216 |
If you want to try, start with "emerge -avuND system", get that to complete |
217 |
and take it from there. |
218 |
|
219 |
|
220 |
|
221 |
-- |
222 |
alan dot mckinnon at gmail dot com |