Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 384525

Summary: app-admin/python-updater-0.9{,-r1} constantly rebuilds a few packages
Product: Gentoo Linux Reporter: Marcin Mirosław <bug>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: alexanderyt, alexpro, ao, buchner.johannes, carenas, dadok, halcon, hsggebhardt, j6yNRdsH5Fc3, jekarlson, lsching17, neil, netbox253
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: output from python-updater -v -v -v -- -pv
patch for python-updater skip packages without python support

Description Marcin Mirosław 2011-09-26 14:00:17 UTC
Python-updated constantly tries to rebuild some packages. After emerge <thoose packages> nest run of python-updater wants to emerge the same packages.

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

# eselect python show
python2.7

# eselect python show --ABI
2.7


Reproducible: Always




# emerge --info
Portage 2.1.10.11 (default/linux/amd64/10.0/server, gcc-4.5.3, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 26 Sep 2011 08:00:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-portage cadera
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl en"
MAKEOPTS="-j8"
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 bzip2 cli cracklib crypt cups cxx device-mapper dri fortran glibc-omitfp gpm iconv mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre pppd readline session slang smp snmp sse sse2 sse3 ssl ssse3 sysfs tcpd truetype unicode urandom vhosts xml 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 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" 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 dummy v4l" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marcin Mirosław 2011-09-26 14:10:01 UTC
Created attachment 287777 [details]
output from python-updater -v -v -v -- -pv
Comment 2 Jesus Rivero (RETIRED) gentoo-dev 2011-09-30 17:23:32 UTC
Hi Marcin, 

Have you tried disabling some of the python-updater checks?
Please refer to the CHECKS sections in python-updater man page and reopen if that does not fix the issue.

Best regards,
Comment 3 Neil Bothwick 2011-10-17 08:44:15 UTC
I am seeing the same behaviour here, and you can add net-analyzer/rrdtool to the list of continually rebuilt packages. This is on amd64 and ~amd64 systems, running python-updater 0.9 and 0.9-r1 respectively.
Comment 4 Marcin Mirosław 2011-10-17 10:03:12 UTC
Hi Jesus,
i've never had such problem. Python packages used on my host are rather the same. Imho some checks doesn't work correctly, python-updater always wants to rebuild some packages without real reason. (on x86 the same situatuation)
Comment 5 Arfrever Frehtes Taifersar Arahesis 2011-10-23 05:53:26 UTC
The best solution seems to be for python-updater to check if dependency on Python has been enabled in given packages, and skip PYTHON_ABIS check if this dependency is disabled. Reliable checking of dependencies requires new syntax of PYTHON_DEPEND, which is available in Progress Overlay. About 6 lines of _python_check_run-time_dependency() function from python.eclass would have to be copied into python-updater. use() function defined in python-updater would check USE variable from environment.bz2.

E.g. dev-vcs/subversion needs Python at run time with USE="ctypes-python" or USE="python", which can be expressed using:
PYTHON_DEPEND="ctypes-python? ( <<>> ) python? ( <<>> )".
In this case, _PYTHON_DEPEND_CHECKS_CODE variable (which is generated during parsing of PYTHON_DEPEND in _python_parse_dependencies_in_new_EAPIs() and evaluated in _python_check_run-time_dependency()) would be:
"if use ctypes-python; then return 0; fi; if use python; then return 0; fi"

The fix for this issue would work only for EAPIs with new syntax of PYTHON_DEPEND. This issue is rather major since recent disabling of "python" USE flag in gentoo-x86 profiles, but only packages with conditional dependency on Python would have to be quickly ported to EAPI >=4 to benefit from the fix.
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2011-10-23 16:25:53 UTC
Reopening per Arfrever's request and as I see it in my box this bug is still valid
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2011-10-23 16:28:32 UTC
*** Bug 387997 has been marked as a duplicate of this bug. ***
Comment 8 Johannes Buchner 2011-12-30 20:29:49 UTC
Looks like you already have figured out the issue plus solution, but just for illustration here is what I see:

myhost ~ # python-updater -v
 * Starting Python Updater...
 * Main active version of Python:  2.7
 * Active version of Python 2:     2.7
 * Active version of Python 3:     3.1
 * check "shared_linking" enabled.
 * check "static_linking" enabled.
 * check "pylibdir" enabled.
 * check "manual" enabled.
 * check "need_rebuild" enabled.
 *   Adding to list: dev-libs/libxslt:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 *   Adding to list: media-libs/lcms:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 *   Adding to list: sys-apps/file:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 3.1 ]
 *   Adding to list: sys-libs/cracklib:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 * emerge -Dv1 --keep-going dev-libs/libxslt:0 media-libs/lcms:0 sys-apps/file:0 sys-libs/cracklib:0

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

Calculating dependencies... done!
[ebuild   R    ] sys-apps/file-5.09  USE="zlib -python -static-libs" 0 kB
[ebuild   R    ] media-libs/lcms-1.19  USE="jpeg tiff zlib -python -static-libs" 0 kB
[ebuild   R    ] sys-libs/cracklib-2.8.16  USE="nls -python" 0 kB
[ebuild   R    ] dev-libs/libxslt-1.1.26-r2  USE="crypt -debug -python -static-libs" 0 kB
Comment 9 nzqr 2012-02-28 21:18:16 UTC
Same thing for me:

# python-updater -v -p
 * Starting Python Updater...
 * Main active version of Python:    2.7
 * Active version of Python 2:       2.7
 * Active version of Python 3:       (None)
 * 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 2.7-pypy-1.8
 * Check "manual" enabled.
 * Check "need_rebuild" enabled.
 * Check "pylibdir" enabled.
 * Check "PYTHON_ABIS" enabled.
 * Check "shared_linking" enabled.
 * Check "static_linking" enabled.
 *   Adding to list: dev-libs/libxslt:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 *   Adding to list: sys-apps/file:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 * emerge -Dv1 --keep-going -p dev-libs/libxslt:0 sys-apps/file:0

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

Calculating dependencies... done!
[ebuild   R    ] sys-apps/file-5.11  USE="-python -static-libs -zlib" 0 kB
[ebuild   R    ] dev-libs/libxslt-1.1.26-r3  USE="-crypt -debug -python -static-libs" 0 kB

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
Comment 10 Alexey Prokopchuk 2012-03-13 23:24:30 UTC
Created attachment 305265 [details]
patch for python-updater skip packages without python support
Comment 11 Alexey Prokopchuk 2012-03-13 23:25:16 UTC
In my opinion, python-updater must skip packages without python bindings/support instead of trying to rebuild them.

This behavior appears due to incomplete verification of matching old and new python ABI versions: when old ABI version is empty, python-updater assumes it not equal to new and includes package to rebuild list. Attached patch can solve this problem.

With best regards.
Comment 12 Mike Gilbert gentoo-dev 2012-03-14 03:37:48 UTC
*** Bug 408087 has been marked as a duplicate of this bug. ***
Comment 13 Dyweni 2012-05-06 03:41:29 UTC
(In reply to comment #11)
> In my opinion, python-updater must skip packages without python
> bindings/support instead of trying to rebuild them.
> 
> This behavior appears due to incomplete verification of matching old and new
> python ABI versions: when old ABI version is empty, python-updater assumes
> it not equal to new and includes package to rebuild list. Attached patch can
> solve this problem.
> 
> With best regards.

I agree with this change.

I see the same thing:


# python-updater -v -- -p
 * Starting Python Updater...
 * Main active version of Python:    3.2
 * Active version of Python 2:       2.7
 * Active version of Python 3:       3.2
 * Globally supported Python ABIs in installed repositories:
 *   desktop-effects:                2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7 2.7-pypy-1.8
 *   gentoo:                         2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7 2.7-pypy-1.8
 *   x-portage:                      2.4 2.5 2.6 2.7 3.1 3.2 2.5-jython 2.7-pypy-1.7 2.7-pypy-1.8
 * Check "manual" enabled.
 * Check "need_rebuild" enabled.
 * Check "pylibdir" enabled.
 * Check "PYTHON_ABIS" enabled.
 * Check "shared_linking" enabled.
 * Check "static_linking" enabled.
 *   Adding to list: app-misc/g15daemon:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 3.2 ]
 *   Adding to list: dev-libs/libxslt:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 *   Adding to list: gnome-extra/libgsf:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 *   Adding to list: media-libs/lcms:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 *   Adding to list: sys-apps/file:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 3.2 ]
 *   Adding to list: sys-libs/cracklib:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 * emerge -Dv1 --keep-going app-misc/g15daemon:0 dev-libs/libxslt:0 gnome-extra/libgsf:0 media-libs/lcms:0 sys-apps/file:0 sys-libs/cracklib:0 -p

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

Calculating dependencies... done!
[ebuild   R    ] sys-apps/file-5.09  USE="zlib -python -static-libs" 0 kB
[ebuild   R    ] sys-libs/cracklib-2.8.16  USE="nls -python" 0 kB
[ebuild   R    ] app-misc/g15daemon-1.9.5.3-r5  USE="-perl -python -static-libs" 0 kB
[ebuild   R    ] media-libs/lcms-1.19  USE="jpeg zlib -python -static-libs -tiff" 0 kB
[ebuild   R    ] dev-libs/libxslt-1.1.26-r3  USE="crypt -debug -python -static-libs" 0 kB
[ebuild   R    ] gnome-extra/libgsf-1.14.22  USE="bzip2 -doc -gtk -python" 0 kB

Total: 6 packages (6 reinstalls), Size of downloads: 0 kB
Comment 14 Fab 2012-05-18 09:01:24 UTC
I can confirm that the issue is fixed for me after applying the patch from comment #10 on python-updater-0.10.
Comment 15 Marc Schiffbauer gentoo-dev 2012-11-05 17:46:36 UTC
Any news on this? I am still seeing the same issue...
Comment 16 Tino 2013-01-14 23:09:51 UTC
And still with 0.10...
Comment 17 pier 2013-01-27 09:22:54 UTC
Confirm the issue here too:
 emerge --info
Portage 2.1.11.31 (default/linux/amd64/10.0/desktop, gcc-4.5.4, glibc-2.15-r3, 3.4.4 x86_64)
=================================================================
System uname: Linux-3.4.4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Sat, 26 Jan 2013 17:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.6.8, 2.7.3-r2, 3.1.5, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo science zugaina kde-sunset x-portage
ACCEPT_KEYWORDS="amd64 x86"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /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="-O2 -pipe -march=core2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" http://distfiles.gentoo.org http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/"
LANG="it_IT@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/zugaina /var/lib/layman/kde-sunset /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aiglx alsa amd64 amr apm arts avi berkdb blas bluetooth branding bzip2 cairo caps ccache cdda cddb cdparanoia cdr cdrom cleartype cli consolekit corefonts cracklib crypt css cups curl cxx dga directfb dri dts dvd dvdr dvdread emacs emboss encode exif expat extensions extras fam fbcon fbdev ffmpeg fftw firefox flac fltk fortran gcj gdbm gif glitz glut glx gpm gs gtk hddtemp hdf5 httpd iconv ipv6 java jpeg kpathsea lcms ldap libnotify libwww lm_sensors logitech-mouse mad mmx mng modules mp3 mp4 mpeg mpi mpi-threads mplayer mudflap multilib mysql ncurses nls nptl nsplugin objc objc++ objc-gc ogg oggvorbis openal opengl openmp oss pam pango pcre pdf png policykit postscript ppds preview-latex qt3support qt4 quicktime readline reiserfs romio samba scanner sdl sensord session slang sound sox spell sse sse2 ssl startup-notification stream svg tcltk tcpd tetex threads tiff tk truetype type1 udev udisks unicode upower usb v4l v4l2 vcd vesa vorbis wavpack wifi wma wma123 wmf wxwidgets wxwindows x264 xcb xml xorg xplanet xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump" 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="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 18 Shin 2013-02-15 11:57:38 UTC
same issue here with python-updater 0.10-r2, always rebuild the same 20 packages:

python-updater -v:
 * [1;34mStarting Python Updater...[0m
 * [1;36mMain active version of Python:    2.7[0m
 * [1;36mActive version of Python 2:       2.7[0m
 * [1;36mActive version of Python 3:       3.2[0m
 * [1;36mGlobally supported Python ABIs in installed repositories:[0m
 *   [1;36mgentoo:                         2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0[0m
 *   [1;36mmy_local_overlay:               2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0[0m
 * Check "manual" enabled.
 * Check "need_rebuild" enabled.
 * Check "pylibdir" enabled.
 * Check "PYTHON_ABIS" enabled.
 * Check "shared_linking" enabled.
 * Check "static_linking" enabled.
 *   Adding to list: dev-java/java-config:2
 *     check: pylibdir [ Installed file under old Python include/library directory ]
 *   Adding to list: dev-libs/boost:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 3.2 ]
 *   Adding to list: dev-libs/libgamin:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 *   Adding to list: dev-libs/libxslt:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 *   Adding to list: dev-python/beautifulsoup:4
 *     check: pylibdir [ Installed file under old Python include/library directory ]
 *   Adding to list: dev-python/dbus-python:0
 *     check: pylibdir [ Installed file under old Python include/library directory ]
 *   Adding to list: dev-python/lxml:0
 *     check: pylibdir [ Installed file under old Python include/library directory ]
 *   Adding to list: dev-python/markupsafe:0
 *     check: pylibdir [ Installed file under old Python include/library directory ]
 *   Adding to list: dev-python/pyatspi:0
 *     check: pylibdir [ Installed file under old Python include/library directory ]
 *   Adding to list: dev-python/pycairo:0
 *     check: pylibdir [ Installed file under old Python include/library directory ]
 *   Adding to list: dev-python/pygobject:3
 *     check: pylibdir [ Installed file under old Python include/library directory ]
 *   Adding to list: dev-python/pyxdg:0
 *     check: pylibdir [ Installed file under old Python include/library directory ]
 *   Adding to list: dev-python/setuptools:0
 *     check: pylibdir [ Installed file under old Python include/library directory ]
 *   Adding to list: dev-util/gdbus-codegen:0
 *     check: pylibdir [ Installed file under old Python include/library directory ]
 *   Adding to list: dev-vcs/subversion:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 *   Adding to list: gnome-extra/libgsf:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 *   Adding to list: net-libs/gupnp-igd:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 *   Adding to list: sys-apps/file:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 3.2 ]
 *   Adding to list: sys-libs/cracklib:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 *   Adding to list: sys-libs/libcap-ng:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 3.2 ]
 * emerge -Dv1 --keep-going dev-java/java-config:2 dev-libs/boost:0 dev-libs/libgamin:0 dev-libs/libxslt:0 dev-python/beautifulsoup:4 dev-python/dbus-python:0 dev-python/lxml:0 dev-python/markupsafe:0 dev-python/pyatspi:0 dev-python/pycairo:0 dev-python/pygobject:3 dev-python/pyxdg:0 dev-python/setuptools:0 dev-util/gdbus-codegen:0 dev-vcs/subversion:0 gnome-extra/libgsf:0 net-libs/gupnp-igd:0 sys-apps/file:0 sys-libs/cracklib:0 sys-libs/libcap-ng:0 -p

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

Calculating dependencies  ...... done!
[ebuild   R    ] sys-libs/cracklib-2.8.19  USE="nls zlib -build -python -static-libs" 0 kB
[ebuild   R    ] sys-apps/file-5.11  USE="zlib -python -static-libs" 0 kB
[ebuild   R    ] dev-libs/boost-1.49.0-r2  USE="-debug -doc -icu -mpi -python -static-libs -tools" 0 kB
[ebuild   R    ] sys-libs/libcap-ng-0.6.6  USE="-python -static-libs" 0 kB
[ebuild   R    ] dev-libs/libgamin-0.1.10-r3  USE="-debug -python -static-libs" 0 kB
[ebuild   R    ] dev-libs/libxslt-1.1.28  USE="crypt -debug -python -static-libs" 0 kB
[ebuild   R   ~] dev-util/gdbus-codegen-2.34.3  PYTHON_TARGETS="python2_7 python3_2 -python2_5 -python2_6 -python3_1 (-python3_3)" 0 kB
[ebuild   R    ] dev-python/setuptools-0.6.30-r1  PYTHON_TARGETS="python2_7 python3_2 -python2_5 -python2_6 -python3_1" 0 kB
[ebuild   R    ] dev-python/beautifulsoup-4.1.3-r1:4  USE="-doc {-test}" PYTHON_TARGETS="python2_7 python3_2 -python2_6 -python3_1 (-python3_3)" 0 kB
[ebuild   R    ] dev-python/pyxdg-0.25  USE="{-test}" PYTHON_TARGETS="python2_7 python3_2 -pypy1_9 -python2_6 -python3_1" 0 kB
[ebuild   R    ] dev-python/lxml-3.0.1  USE="threads -doc -examples" PYTHON_TARGETS="python2_7 python3_2 -python2_6 -python3_1 (-python3_3)" 0 kB
[ebuild   R    ] dev-python/markupsafe-0.15-r1  PYTHON_TARGETS="python2_7 python3_2 (-pypy1_9) (-pypy2_0) -python2_5 -python2_6 -python3_1 (-python3_3)" 0 kB
[ebuild   R   ~] dev-python/pycairo-1.10.0-r4  USE="svg xcb -doc -examples {-test}" PYTHON_TARGETS="python2_7 python3_2 -python2_6 -python3_1 (-python3_3)" 0 kB
[ebuild   R   ~] dev-python/pygobject-3.4.2-r1:3  USE="cairo threads -examples {-test}" PYTHON_TARGETS="python2_7 python3_2 -python2_6 -python3_1 (-python3_3)" 0 kB
[ebuild   R    ] dev-java/java-config-2.1.12-r1:2  PYTHON_TARGETS="python2_7 python3_2 (-pypy1_9) -python2_6 -python3_1 (-python3_3)" 0 kB
[ebuild   R   ~] dev-python/dbus-python-1.1.1-r1  USE="-doc -examples {-test}" PYTHON_TARGETS="python2_7 python3_2 -python2_6 (-python3_3)" 0 kB
[ebuild   R   ~] dev-python/pyatspi-2.6.0-r1  PYTHON_TARGETS="python2_7 python3_2 -python2_6 (-python3_3)" 0 kB
[ebuild   R    ] gnome-extra/libgsf-1.14.23  USE="bzip2 gtk introspection -doc -python" 0 kB
[ebuild   R    ] net-libs/gupnp-igd-0.2.1  USE="introspection -python" 0 kB
[ebuild   R    ] dev-vcs/subversion-1.7.7  USE="berkdb dso gnome-keyring java nls webdav-neon -apache2 -ctypes-python -debug -doc -extras -kde -perl -python -ruby -sasl -vim-syntax -webdav-serf" 0 kB

Total: 20 packages (20 reinstalls), Size of downloads: 0 kB
Comment 19 Milan Dadok 2013-07-23 20:49:00 UTC
same issue app-admin/python-updater-0.10 

Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.1

*   Adding to list: dev-python/setuptools:0
 *     check: pylibdir [ Installed file under old Python include/library 

the check failed due to
grep -E "/usr/(include|lib(32|64)?)/python(2\.1|2\.2|2\.3|2\.4|2\.5|2\.6|3\.0|3\.1|3\.2|3\.3|3\.4)" "/var/db/pkg/dev-python/setuptools-0.6.30-r1/CONTENTS"

returns many files for python 3.2, for example

dir /usr/lib/python3.2/site-packages/distribute-0.6.30-py3.2.egg-info
obj /usr/lib/python3.2/site-packages/distribute-0.6.30-py3.2.egg-info/SOURCES.txt 51455f06c3737a80fe406d7a0dbbf6a3 1374577300

this patch helps, no more rebuilds
--- python-updater.org  2013-07-23 22:28:13.000000000 +0200
+++ python-updater      2013-07-23 16:45:08.000000000 +0200
@@ -508,7 +508,7 @@

 OLD_PYTHON_SHARED_LIBRARIES_REGEX=""
 for python_version in ${PYTHON_VERSIONS}; do
-       if [[ "${python_version}" != "${NEW_PYTHON_VERSION}" ]]; then
+       if [[ "${python_version}" != "${NEW_PYTHON2_VERSION}" && "${python_version}" != "${NEW_PYTHON3_VERSION}" ]]; then
                OLD_PYTHON_VERSIONS+="${OLD_PYTHON_VERSIONS:+ }${python_version}"
                soname="$(readlink -n /usr/lib/libpython${python_version}.so)"
                if [[ -z "${soname}" ]]; then

app-admin/python-updater-0.11 is skipping package with
 Skipping dev-python/setuptools:0, reason: python_targets_ in IUSE
Comment 20 Patrice Clement gentoo-dev 2016-10-12 15:15:05 UTC
Given the last comment posted on this bug, this issue is no longer reproducible I guess. Closing.