Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396665 - app-admin/python-updater-0.10 does not update from /usr/lib/python3.1 to /usr/lib/python3.2
Summary: app-admin/python-updater-0.10 does not update from /usr/lib/python3.1 to /usr...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-01 11:13 UTC by Juergen Rose
Modified: 2016-11-04 19:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
The python-updater.log corresponding to Comment 4 (python-updater.log,48.43 KB, text/plain)
2012-01-02 18:18 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2012-01-01 11:13:19 UTC
I try to setup a new system. Now three versions of python are installed:

root@wildcat:/root(155)# qlist -Iv dev-lang/python
dev-lang/python-2.7.2-r3
dev-lang/python-3.1.4-r3
dev-lang/python-3.2.2
root@wildcat:/root(157)# eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.1
  [3]   python3.2
root@wildcat:/root(158)# du -s /usr/lib/python*
107968  /usr/lib/python2.7
81744   /usr/lib/python3.1
47484   /usr/lib/python3.2


I supposed, that python-updater will reinstall the packages, which are installed under python3.1 as python3.2 packages, so reducing the contents of /usr/lib/python3.1 directory and increasing the contents of the /usr/lib/python3.2 directory. But python-updater says that nothing is to reinstalled:

root@wildcat:/root(159)# python-updater 
 * Starting Python Updater...
 * Main active version of Python:    2.7
 * Active version of Python 2:       2.7
 * Active version of Python 3:       3.1
 * Globally supported Python ABIs in installed repositories:
 *   gentoo:                         2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   science:                        2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   x-cpan:                         2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   x-g-octave:                     2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   x-portage:                      2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 * No packages need to be reinstalled.



root@wildcat:/root(160)# qlist -Iv python-updater
app-admin/python-updater-0.10
Comment 1 Juergen Rose 2012-01-01 11:17:06 UTC
root@wildcat:/root(161)# emerge --info
Portage 2.1.10.44 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r1, 3.1.6-gentoo x86_64)
=================================================================
System uname: Linux-3.1.6-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Sun, 01 Jan 2012 07:30:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.2
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r1
Repositories: gentoo science x-portage x-cpan x-g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.1 cadsoft Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY="/var/lib/layman/science /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit R X Xaw3d a52 aac acl acpi afs alsa amd64 ao apache2 applet archive arpack asf aspell assistant atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth boost bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit cracklib crypt css cups curl cxx daap db dbase dbi dbm dbus declarative designer devhelp device-mapper dga dia djvu dri ds2490 ds9097 ds9097u dv dvb dvd dvdr dvi dynamicplugin eds elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpx fts3 fuse gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp ginac git glade glib glpk gml gmp gmtsuppl gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gs gsl gsm gstreamer gtk gudev guile hddtemp hdf hdf5 hdri http httpd hvm hwdb iconv icq icu id3 ide imagemagick imap innodb inotify ipv6 ithreads jabber jadetex jbig john jpeg jpeg2k kdrive kerberos kpathsea kqemu kvm lame lapack laptop latex latex3 lcms ldap libffi libgda libnotify libsamplerate lua lzo mad mail maildir mapnik math matroska mkl mmx mng modules mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking networkmanager nfs nls nptl nptlonly nsplugin ntp numpy obex objc ocaml ocr octave odbc ogdi ogg ole openexr opengl openmp overview pam pcre pda pdf perl plotutils plugins png policykit portaudio posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio python python-bindings q16 q32 qhull qt4 quicktime readline reiserfs reports rle romio rpc rrdcgi rrdtool samba sasl science sdk sdl secure-delete semantic-desktop session sip slang slp smbclient smp sms sndfile snmp soup sox speex spell sql sqlite sse sse2 ssl ssse3 subtitles subversion suexec svg svm swig sysfs szip t1lib tcl tcpd tex texmacs tgif theora thinkpad threads thunderbird tidy tiff tk tools truetype udev unicode usb userlocales vaapi video virtualbox vorbis wav webdav webdav-serf webkit wifi wmf wxwidgets xattr xcb xemacs xext xft xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc yaml zlib zvbi" 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-wt220u" 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" LINGUAS="de fr" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i810" 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, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 teidakankan 2012-01-01 12:00:52 UTC
Try:

thor family # eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.1
  [3]   python3.2

thor family # eselect python list --python2
Available Python 2 interpreters:
  [1]   python2.7 *

thor family # eselect python list --python3
Available Python 3 interpreters:
  [1]   python3.1 *
  [2]   python3.2

thor family # eselect python set --python3  2

thor family # eselect python list --python3
Available Python 3 interpreters:
  [1]   python3.1
  [2]   python3.2 *

Then:

thor family # python-updater
Comment 3 Arfrever Frehtes Taifersar Arahesis 2012-01-02 14:48:17 UTC
Show output of:
qfile -v /usr/lib64/python3.1

Attach output of:
python-updater -v -v -v
Comment 4 Juergen Rose 2012-01-02 18:16:49 UTC
One 'emerge -uvDNe world' later I did with respect Comment 3 without trying the hints of Comment2:

root@wildcat:/root(70)# qfile -v /usr/lib64/python3.1
app-portage/g-octave-0.4.1-r2 (/usr/lib64/python3.1)
app-portage/gentoolkit-0.3.0.4-r5 (/usr/lib64/python3.1)
dev-python/argparse-1.2.1 (/usr/lib64/python3.1)
dev-python/numpy-1.6.1-r1 (/usr/lib64/python3.1)
dev-python/cython-0.15.1 (/usr/lib64/python3.1)
dev-python/setuptools-0.6.24 (/usr/lib64/python3.1)
dev-python/pyparsing-1.5.6 (/usr/lib64/python3.1)
dev-python/pygobject-3.0.3 (/usr/lib64/python3.1)
dev-python/docutils-0.8.1 (/usr/lib64/python3.1)
dev-python/pycairo-1.10.0-r2 (/usr/lib64/python3.1)
sys-libs/libcap-ng-0.6.6 (/usr/lib64/python3.1)
sys-apps/file-5.10 (/usr/lib64/python3.1)
dev-lang/python-3.1.4-r3 (/usr/lib64/python3.1)

root@wildcat:/root(72)# python-updater -v -v -v 2>&1 | tee python-updater.log
 * Starting Python Updater...
 * Main active version of Python:    2.7
 * Active version of Python 2:       2.7
 * Active version of Python 3:       3.1
 * Globally supported Python ABIs in installed repositories:
 *   gentoo:                         2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   science:                        2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   x-cpan:                         2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   x-g-octave:                     2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   x-portage:                      2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 * Check "manual" enabled.
 * Check "need_rebuild" enabled.
...
 * Checking x11-wm/mutter-3.2.1:0
 * Checking x11-wm/twm-1.0.7:0
 * No packages need to be reinstalled.


root@wildcat:/root(73)# du -s /usr/lib/python*
107976  /usr/lib/python2.7
81744   /usr/lib/python3.1
47484   /usr/lib/python3.2

root@wildcat:/root(75)# du -s /usr/lib/python3.1/* | sort -n | tail
632     /usr/lib/python3.1/multiprocessing
1004    /usr/lib/python3.1/xml
1032    /usr/lib/python3.1/email
1156    /usr/lib/python3.1/pydoc_data
1832    /usr/lib/python3.1/lib2to3
2304    /usr/lib/python3.1/distutils
2792    /usr/lib/python3.1/encodings
3176    /usr/lib/python3.1/lib-dynload
11300   /usr/lib/python3.1/test
42852   /usr/lib/python3.1/site-packages

root@wildcat:/root(77)# du -s /usr/lib/python3.1/site-packages/* | sort -n | tail
144     /usr/lib/python3.1/site-packages/pyparsing.py
180     /usr/lib/python3.1/site-packages/pyparsing.pyc
180     /usr/lib/python3.1/site-packages/pyparsing.pyo
236     /usr/lib/python3.1/site-packages/g_octave
1128    /usr/lib/python3.1/site-packages/gi
1608    /usr/lib/python3.1/site-packages/setuptools
2000    /usr/lib/python3.1/site-packages/gentoolkit
5580    /usr/lib/python3.1/site-packages/docutils
9720    /usr/lib/python3.1/site-packages/Cython
20996   /usr/lib/python3.1/site-packages/numpy
Comment 5 Juergen Rose 2012-01-02 18:18:52 UTC
Created attachment 297713 [details]
The python-updater.log corresponding to Comment 4
Comment 6 Arfrever Frehtes Taifersar Arahesis 2012-01-02 18:23:51 UTC
Run `eselect python set --python3 python3.2` as said in comment #2 and try python-updater again.
Comment 7 Juergen Rose 2012-01-02 19:29:34 UTC
Thanks Arfrever and Teidakankan for your help. It looks, if all is now OK:

root@wildcat:/usr/local/portage/media-gfx(90)# eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.1
  [3]   python3.2
root@wildcat:/usr/local/portage/media-gfx(91)# eselect python list --python3
Available Python 3 interpreters:
  [1]   python3.1
  [2]   python3.2 *
root@wildcat:/usr/local/portage/media-gfx(92)# python-updater -v -v -v 2>&1 | tee python-updater.log
 * Starting Python Updater...
 * Main active version of Python:    2.7
 * Active version of Python 2:       2.7
 * Active version of Python 3:       3.2
 * Globally supported Python ABIs in installed repositories:
 *   gentoo:                         2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   science:                        2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   x-cpan:                         2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   x-g-octave:                     2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 *   x-portage:                      2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7
 * Check "manual" enabled.
 * Check "need_rebuild" enabled.
...
 * Checking x11-wm/metacity-2.34.1:0
 * Checking x11-wm/mutter-3.2.1:0
 * Checking x11-wm/twm-1.0.7:0
 * emerge -Dv1 --keep-going app-portage/g-octave:0 app-portage/gentoolkit:0 dev-python/argparse:0 dev-python/cython:0 dev-python/docutils:0 dev-python/numpy:0 dev-python/pycairo:0 dev-python/pygobject:3 dev-python/pyparsing:0 dev-python/setuptools:0 sys-apps/file:0 sys-libs/libcap-ng:0

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

Calculating dependencies  ....... done!
[ebuild   R    ] dev-python/setuptools-0.6.24  0 kB
[ebuild   R    ] sys-apps/file-5.10  USE="python zlib -static-libs" 0 kB
...
[ebuild   R    ] dev-python/numpy-1.6.1-r1  USE="lapack -doc -test" 0 kB
[ebuild   R    ] dev-python/cython-0.15.1  USE="examples numpy -doc" 0 kB

Total: 12 packages (12 reinstalls), Size of downloads: 0 kB
...
>>> dev-python/cython-0.15.1 merged.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

root@wildcat:/usr/local/portage/media-gfx(93)# du -s /usr/lib/python*
107976  /usr/lib/python2.7
38900   /usr/lib/python3.1
90688   /usr/lib/python3.2


root@wildcat:/usr/local/portage/media-gfx(95)# emerge -p --depclean =python-3.1*

Calculating dependencies... done!
>>> Calculating removal order...

>>> These are the packages that would be unmerged:

 dev-lang/python
    selected: 3.1.4-r3 
   protected: none 
     omitted: 2.7.2-r3 3.2.2 

All selected packages: dev-lang/python-3.1.4-r3

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

Packages installed:   1034
Packages in world:    39
Packages in system:   41
Required packages:    1033
Number to remove:     1