Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505878 - sys-apps/portage-2.2.10: does not satisfy PYTHON_TARGETS="python2_7" ?
Summary: sys-apps/portage-2.2.10: does not satisfy PYTHON_TARGETS="python2_7" ?
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-26 14:24 UTC by Martin Mokrejš
Modified: 2014-04-22 14:00 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 Martin Mokrejš 2014-03-26 14:24:38 UTC
Hi,
  during some rececent updates of portage tree I started to see problem with argparse, setuptool and portage itself. Emerge always complained that they do not satisfy the dependencies for python-3. But, I use python-2.7 and will, I even do not want to use python-3 in any near future. So, what is the problem that I can't stay with 2.7 anymore?

Two examples of the problems:


# emerge -uN app-portage/gentoolkit

Calculating dependencies... done!
[ebuild  N     ] sys-apps/gentoo-functions-0.3 
[ebuild     U  ] sys-apps/portage-2.2.10 [2.2.7] PYTHON_TARGETS="python3_3* -python3_2*" 
[ebuild  N     ] virtual/python-argparse-1  PYTHON_TARGETS="python2_7 python3_3 -pypy2_0 -python2_6 -python3_2" 
[ebuild     U  ] app-portage/gentoolkit-0.3.0.9-r1 [0.3.0.8-r2] PYTHON_TARGETS="python3_3* -python3_2*" 

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

sys-apps/portage:0

  (sys-apps/portage-2.2.7::gentoo, installed) pulled in by
    sys-apps/portage[python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-)] required by (app-portage/gentoolkit-dev-0.2.8.3-r1::gentoo, installed)
    sys-apps/portage[python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_pypy2_0(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_pypy2_0(-)] required by (app-admin/webapp-config-1.52::gentoo, installed)

  (sys-apps/portage-2.2.10::gentoo, ebuild scheduled for merge) pulled in by
    sys-apps/portage[python_targets_python2_6(-)?,python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_pypy2_0(-)?,-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_pypy2_0(-)] required by (app-portage/gentoolkit-0.3.0.9-r1::gentoo, ebuild scheduled for merge)



# emerge -uN setuptools

Calculating dependencies... done!
[ebuild     U  ] dev-python/setuptools-2.2 [1.1.6] PYTHON_TARGETS="python3_3* -python3_2* (-python3_4)" 

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-python/setuptools:0

  (dev-python/setuptools-2.2::gentoo, ebuild scheduled for merge) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (dev-python/setuptools-1.1.6::gentoo, installed) pulled in by
    dev-python/setuptools[python_targets_python2_7(-),python_targets_python3_2(-),-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-)] required by (dev-python/numpy-1.7.1::gentoo, installed)



# emerge --info

Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.17, 3.10.12-default-pciehp x86_64)
=================================================================
System uname: Linux-3.10.12-default-pciehp-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.2
KiB Mem:    16369080 total,    278300 free
KiB Swap:    4998972 total,   4296960 free
Timestamp of tree: Wed, 26 Mar 2014 11:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r4, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.3.6-r1, 4.4.7, 4.6.4, 4.7.3, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo gentoo-haskell science x-portage x-layman
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -maes -mpclmul -mpopcnt -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /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 -maes -mpclmul -mpopcnt -march=native"
DISTDIR="/mnt/1TB/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/1TB/var/tmp"
PORTDIR="/mnt/1TB/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/haskell /home/mmokrejs/proj/sci /usr/local/portage /var/lib/layman"
USE="X a52 aac acpi alsa amd64 amr apache apache2 avx berkdb bindist bluetooth boost branding bzip2 cairo cdda cdr cgi cli cracklib crypt cryptlib cups cxx dbus device-mapper dhcp directfb dri dts dvd dvdr emboss encode exif fam fax fbcon ffmpeg firefox flac fontconfig fortran gbm gd gdbm gif gimp gnutls gpm gtk gudev hal hpijs hwdb iconv id3tag imaging innodb java jce jpeg jpg keymap ladspa lapack laptop lcms ldap libnotify lm_sensors mad mmx mng modules mp3 mp4 mpeg mpi mpich2 mysql ncurses nfs nls nptl nptlonly nsplugin ntfsprogs ocr ogg opengl openmp pam pango parport pcre pdf perl php png ppds pppd python qt3support qt4 readline rendering resolvconf scanner sdl server session slideshow sndfile spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification suexec svg syslog tcl tcpd threads tiff tk truetype udev unicode upower usb vim-syntax vorbis wavpack wifi wxwidgets x11 x264 xcb xml xorg xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="alias authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US en_GB cs cz" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2014-03-28 20:21:36 UTC
You have PYTHON_TARGETS="python2_7 python3_3" so unless you have entries in package.use for gentoolkit, portage and setuptools that turn off python 2.7 target, I don't know why the python2_7 target is not showing in the use flags for both those packages. 

Please check /etc/portage/package.use for any entries for those packages.
Comment 2 Martin Mokrejš 2014-03-28 20:38:11 UTC
(In reply to Brian Dolbec from comment #1)
> You have PYTHON_TARGETS="python2_7 python3_3" so unless you have entries in
> package.use for gentoolkit, portage and setuptools that turn off python 2.7
> target, I don't know why the python2_7 target is not showing in the use
> flags for both those packages. 
> 
> Please check /etc/portage/package.use for any entries for those packages.

None of them in /etc/portage/* .
Comment 3 Sebastian Luther (few) 2014-03-29 06:51:42 UTC
Please provide the output of: "emerge -uNpd app-portage/gentoolkit &> debug.log"
Comment 4 Martin Mokrejš 2014-03-29 09:35:13 UTC
I placed it at http://195.113.57.32/~mmokrejs/debug.log.bz2
Comment 5 Martin Mokrejš 2014-04-07 08:15:55 UTC
Any news?


 # emerge -uN  portage-utils eselect-python  python-updater portage
...

Calculating dependencies... done!
[ebuild  N     ] sys-apps/gentoo-functions-0.3 
[ebuild     U  ] app-portage/portage-utils-0.53 [0.41] USE="nls%*" 
[ebuild     U  ] app-admin/eselect-python-20140125 [20111108]
[ebuild     U  ] app-admin/python-updater-0.12 [0.11]

WARNING: One or more updates have been skipped due to a dependency conflict:

sys-apps/portage:0

  (sys-apps/portage-2.2.10::gentoo, ebuild scheduled for merge) conflicts with
    sys-apps/portage[python_targets_python2_7(-),python_targets_python3_2(-),-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-)] required by (app-portage/gentoolkit-dev-0.2.8.3-r1::gentoo, installed)
  (sys-apps/portage-2.2.10::gentoo, ebuild scheduled for merge) conflicts with
    sys-apps/portage[python_targets_python2_7(-),python_targets_python3_2(-),-python_single_target_python2_6(-),-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_pypy2_0(-)] required by (app-admin/webapp-config-1.52::gentoo, installed)
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-04-07 18:39:46 UTC
Potential dupe of #488776?
Comment 7 Martin Mokrejš 2014-04-22 14:00:31 UTC
Just to re-cap:


<quote>
#  eselect news read 6
2012-11-06-PYTHON_TARGETS-deployment
  Title                     PYTHON_TARGETS deployment
  Author                    Michał Górny <mgorny@gentoo.org>
  Posted                    2012-11-06
  Revision                  1

Recently, a few new Python eclasses have been deployed. As ebuilds
migrate, the way they support multiple Python implementations will
change. The previous method built Python modules for Python
implementations selected through `eselect python'. The new method uses
the PYTHON_TARGETS USE flags to explicitly name the implementations the
modules shall be built for.

If you are running a modern system with only Python 2.7 & 3.2 installed,
then you don't have to do anything. The defaults will simply fit you,
and let you keep your system up-to-date when new Python versions are
deployed.

However, if you'd like to use another set of Python implementations, you
will need to set PYTHON_TARGETS in your make.conf file appropriately.
This variable names the enabled implementations in the standard way
common to all USE_EXPAND variables.
</quote>


# grep PYTHON_TARGETS /etc/portage/make.conf
#

So, I should be at 'defaults'.


# emerge -1pv dev-python/python-exec

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

Calculating dependencies... done!
[ebuild   R    ] dev-lang/python-exec-2.0.1-r1:2  PYTHON_TARGETS="(jython2_5) (jython2_7) (pypy*) (python2_6) (python2_7) (python3_2) (python3_3) (python3_4*) (-pypy2_0%*)" 0 kB
[ebuild   R    ] dev-lang/python-exec-0.3.1-r1  PYTHON_TARGETS="(jython2_5) (jython2_7) (pypy*) (python2_6) (python2_7) (python3_2) (python3_3) (python3_4*) (-pypy2_0%*)" 0 kB
[ebuild   R    ] dev-python/python-exec-10000.2:2  PYTHON_TARGETS="(jython2_5) (jython2_7) (pypy%*) (python2_6) (python2_7) (python3_2) (python3_3) (python3_4%*) (-pypy2_0%*)" 0 kB

Total: 3 packages (3 reinstalls), Size of downloads: 0 kB

# cat >> /etc/portage/make.conf
PYTHON_TARGETS="python2_7 python3_2"
PYTHON_SINGLE_TARGET="python2_7"
^D
#

# env-update
# 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.2
 * Globally supported Python ABIs in installed repositories:
 *   gentoo:                         2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0
 *   gentoo-haskell:                 2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0
 *   science:                        2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0
 *   x-layman:                       2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0
 *   x-portage:                      2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0
 *   Adding to list: dev-libs/libgamin:0
 * emerge -Dv1 --keep-going dev-libs/libgamin:0
WARNING: One or more repositories have missing repo_name entries:

        /var/lib/layman/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.



 * IMPORTANT: 12 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


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

Calculating dependencies... done!
[ebuild     U  ] dev-libs/libgamin-0.1.10-r5 [0.1.10-r4] USE="python -debug -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7%* -python2_6%" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB


#



Since now everythng will probably work fine:

# emerge -pv gentoolkit

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

Calculating dependencies... done!
[ebuild  N     ] virtual/python-argparse-1  PYTHON_TARGETS="python2_7 python3_2 -pypy -python2_6 -python3_3 -python3_4" 0 kB
[ebuild     U  ] app-portage/gentoolkit-0.3.0.9-r1 [0.3.0.8-r2] PYTHON_TARGETS="python2_7 python3_2 -pypy% -python2_6 -python3_3 (-pypy2_0%)" 3,120 kB

Total: 2 packages (1 upgrade, 1 new), Size of downloads: 3,120 kB




In summary, I think the PYTHON_TARGETS defaults do not work.