Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183377 - python updater disappears when upgrading to 2.5
Summary: python updater disappears when upgrading to 2.5
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-27 09:11 UTC by Paul Hewlett
Modified: 2009-09-14 20:22 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 Paul Hewlett 2007-06-27 09:11:20 UTC
I need to upgrade to python 2.5 (which I know is hard-masked). I added python 2.5 to the package.unmask and package.keywords and did an update. Everything went well and I then ran python-updater as requested at the end of the emerge.
python-updater reported that it had failed to emerge the packages paste,pylons and pastescript. This was because I have the 'doc' USE flag globally set and these packages fail with an argument list incompatibility to pydoc.py (but that is another bug 168715). When I added -doc for these packages in package.use and reran
emerge --newuse --update --deep --with-bdeps y --world, python-2.3 was emerged and /usr/sbin/python-updater disappeared.

I did a "equery depends '=dev-lang/python-2.3*'" to discover that zope 2.7.8-2.8.9.1 all depend explicitly on python-2.3. There were 5 versions of zope on my PC which seems a bit strange. A "equery depends zope" reveals that I had emerged plone at some stage. However plone did not depend explicitly on any particular version of zope. So this report highlights a number of issues:

1. zope depends explicitly on python 2.3
2. 5 versions of zope exist simultaneously even though there is no apparent explicit dependency on these different versions. Also I am fastidious about running emerge --depclean,emerge --clean and revdep-rebuild when I do updates.
3. emerging python-2.3 deletes /usr/sbin/python-updater (supposedly)
4. dev-libs/boost-1.33.1-r1 explicitly depends on python-2.4 (I noticed this)

I fixed the problem by doing the following

   emerge --unmerge zope zope-config plone
   emerge --depclean
   emerge --clean
   revdep-rebuild -i
   emerge python

This led to a further error. the emerge of python 2.5 finishes with :

 * Byte compiling python modules for python-2.5 .. ...
Compiling /usr/lib/python2.5/site-packages/Cheetah/NameMapper.py ...
  File "/usr/lib/python2.5/site-packages/Cheetah/NameMapper.py", line 146
    from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /usr/lib/python2.5/site-packages/Cheetah/Tests/NameMapper.py ...
  File "/usr/lib/python2.5/site-packages/Cheetah/Tests/NameMapper.py", line 15
    from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /usr/lib/python2.5/site-packages/Cheetah/NameMapper.py ...
  File "/usr/lib/python2.5/site-packages/Cheetah/NameMapper.py", line 146
    from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /usr/lib/python2.5/site-packages/Cheetah/Tests/NameMapper.py ...
  File "/usr/lib/python2.5/site-packages/Cheetah/Tests/NameMapper.py", line 15
    from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file
                                                                                                                                           [ !! ]
This file is part of the cheetah package. I edited the file and moved the offending from statement to just before the __author__ declaration and the error disappeared . 

5. Cheetah does not compile with python 2.5

Then I executed

    emerge python-updater 
    /usr/sbin/python-updater

python-updater re-emerged a number of packages including clearsilver. Which led to another bug - I can execute python-updater any number of times and it will always re-emerge clearsilver.So

6. python-updater always emerges clearsilver.

So that makes 6 faults.

I have reported this in the hope that it will help the python herd make progress on getting to python 2.5. If anyone needs me to do something on my PC plesae let me know.
chipper portage # emerge --info
Portage 2.1.2.7 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.20-hardened-r2 i686)
=================================================================
System uname: 2.6.20-hardened-r2 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 21 Jun 2007 22:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/src/asterisk"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsyncproxy/gentoo-portage"
USE="X alsa apache2 arts avahi berkdb bitmap-fonts cairo cdr cgi cli cracklib crypt cups dba dbm dbus doc dri dvd dvdr eds emboss encode esd fam firefox fortran gdbm gif gnutls gpm gstreamer hal hardened iconv ipv6 isdnlog java java5 javascript jpeg kde kerberos ldap libg++ mad mbrola midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre perl pic png ppds pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl srvdir ssl tcpd truetype truetype-fonts type1-fonts unicode utempter vorbis win32codecs x86 xattr xinerama xml xorg xv xvnc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-27 09:17:15 UTC
Please, don't mix 6 totally different issues in one bug; this will just get nowhere. (On that note, stuff that requires python-2.3 *only* needs to die).

Also, mixing stable packages with package.masked python won't get you very far for sure.
Comment 2 Radoslaw Stachowiak (RETIRED) gentoo-dev 2007-09-01 17:17:18 UTC
ad 1 and ad2

thats a planned behaviour. I'm removing net-zope herd as this is by design. feel free to open _separate_ bug on zope.