Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] media-sound/gnome-music not compiling -> python
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Sun Jul 26, 2015 10:42 am    Post subject: [solved] media-sound/gnome-music not compiling -> python Reply with quote

When trying to update my system I get an error message:

Code:

elmar@trillian ~ $ sudo emerge -aDNuv @world
Wachtwoord:

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

Calculating dependencies... done!

!!! The ebuild selected to satisfy ">=media-sound/gnome-music-3.14.0" has unmet requirements.
- media-sound/gnome-music-3.14.3.1::gentoo USE="" ABI_X86="64" PYTHON_SINGLE_TARGET="python3_3 -python3_4" PYTHON_TARGETS="python3_4 -python3_3"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python_single_target_python3_3? ( python_targets_python3_3 )

  The above constraints are a subset of the following complete expression:
    exactly-one-of ( python_single_target_python3_3 python_single_target_python3_4 ) python_single_target_python3_3? ( python_targets_python3_3 ) python_single_target_python3_4? ( python_targets_python3_4 )

(dependency required by "gnome-base/gnome-extra-apps-3.14.0-r1::gentoo[tracker]" [installed])
(dependency required by "gnome-base/gnome-3.14.0::gentoo[extras]" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])



I already did a pyton-updater, without result.
Code:

elmar@trillian ~ $ eselect python list

Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.3
  [3]   python3.4
Code:
elmar@trillian ~ $ cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
ABI_X86="64 32"
CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3"
USE="acpi alsa apache2 autoip autoipd avahi -bindist -bluetooth bonjour bzip2 cdda cifs cleartype corefonts \
     curl cups dbus dvd emacs encode exif expat fbcon ffmpeg flash fontconfig foomaticdb fpm gd geoip gimp  gif \
     gnutls gpg gs gtk gtk3 gzip icu inotify imagemagick ipv6 jack java javascript jpeg jpeg2k lame -ldap \
     -libav libedit libnotify lock lm matrosca md5sum mdnsresponder-compat minizip -minimal mmx \
     mp3 mp4 mpeg mysql mysqli natspec networkmanager nls nsplugin -nss ntp opengl -openldap -openssl ogg pam pcre pear perl \
     php pic pmu png policykit portaudio postscript pulseaudio python rar raw -readline resolvconf samba sendor \
     session sftp slang spell sse sse2 sse3 ssh ssl ssse3 startup-notification ssl sqls tiff thunar truetype \
     type1 udev udisks unicode urandom usb v4l vaapi vala vda vhost vorbis wavpack xinerama xcomposite xml zeroconf zip X "
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

LANG=C
LC_CTYPE="$LANG"
LC_COLLATE="$LANG"
LC_MESSAGES="$LANG"
#LINGUAS="en en_GB nl_NL nl"
LINGUAS="nl_NL nl"

INPUT_DEVICES="evdev keyboard mouse synaptics uvc"

VIDEO_CARDS="intel i915"

ALSA_CARDS="intel"

ACCEPT_LICENSE="*"

SANE_BACKENDS="CANON"

CURL_SSL="openssl"

GENTOO_MIRRORS="rsync://mirror.leaseweb.com/gentoo/ http://mirror.leaseweb.com/gentoo/ ftp://mirror.leaseweb.com/gentoo/ ftp://gentoo.tiscali.nl/pub/mirror/gentoo/ http://gentoo.tiscali.nl/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo rsync://ftp.snt.utwente.nl/gentoo"

APACHE2_MODULES="actions alias auth_basic auth_digest 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"


APACHE2_MPMS="prefork"

PHP_TARGETS="php5-3 php5-5"
PHP_INI_VERSION="development"

XFCE_PLUGINS="battery brightness clock trash"
Code:
elmar@trillian ~ $ emerge --info
Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.4, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Pentium-R-_Dual_CPU_T3200_@_2.00GHz-with-gentoo-2.2
KiB Mem:     2948984 total,    146976 free
KiB Swap:    2621432 total,   2546436 free
Timestamp of repository gentoo: Sun, 26 Jul 2015 00:45:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://elmarotter.nl/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
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 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
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 preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://mirror.leaseweb.com/gentoo/ http://mirror.leaseweb.com/gentoo/ ftp://mirror.leaseweb.com/gentoo/ ftp://gentoo.tiscali.nl/pub/mirror/gentoo/ http://gentoo.tiscali.nl/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo rsync://ftp.snt.utwente.nl/gentoo"
LANG="C"
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="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apache2 autoip autoipd avahi berkdb bonjour branding bzip2 cairo cdda cdr cifs cleartype cli colord corefonts cracklib crypt cups curl cxx dbus dri dts dvd dvdr eds emacs emboss encode evo exif expat fam fbcon ffmpeg firefox flac flash fontconfig foomaticdb fortran fpm gd gdbm geoip gif gimp glamor gnome gnome-keyring gnome-online-accounts gnutls gpg gpm gs gstreamer gtk gtk3 gzip iconv icu imagemagick inotify introspection ipv6 jack java javascript jpeg jpeg2k lame lcms libedit libnotify libsecret lm lock mad matrosca md5sum mdnsresponder-compat minizip mmx mmxext mng modules mp3 mp4 mpeg multilib mysql mysqli natspec nautilus ncurses networkmanager nls nptl nsplugin ntp ogg opengl openmp pam pango pcre pdf pear perl php pic pmu png policykit portaudio postscript ppds pulseaudio python qt3support qt4 rar raw resolvconf samba sdl sendor session sftp slang spell sqls sse sse2 sse3 ssh ssl ssse3 startup-notification svg systemd tcpd thunar tiff tracker truetype type1 udev udisks unicode upower urandom usb v4l vaapi vala vda vhost vorbis wavpack wxwidgets x264 xcb xcomposite xinerama xml xv xvid zeroconf zip zlib" ABI_X86="64 32" ALSA_CARDS="intel" APACHE2_MODULES="actions alias auth_basic auth_digest 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" APACHE2_MPMS="prefork" 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" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" CURL_SSL="openssl" 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="evdev keyboard mouse synaptics uvc" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="nl_NL nl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="CANON" USERLAND="GNU" VIDEO_CARDS="intel i915" XFCE_PLUGINS="battery brightness clock trash" 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


Last edited by elmar283 on Mon Jul 27, 2015 6:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Sun Jul 26, 2015 10:46 am    Post subject: Reply with quote

You have selected the false python version. See codeblock 2.
Back to top
View user's profile Send private message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Sun Jul 26, 2015 7:32 pm    Post subject: Reply with quote

Setting the python version to 3.4 does not work:
Code:

elmar@trillian ~ $ eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.3
  [3]   python3.4 *


Code:

elmar@trillian /usr/sbin $ sudo emerge -aDNuv @world

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

Calculating dependencies... done!

!!! The ebuild selected to satisfy ">=media-sound/gnome-music-3.14.0" has unmet requirements.
- media-sound/gnome-music-3.14.3.1::gentoo USE="" ABI_X86="64" PYTHON_SINGLE_TARGET="python3_3 -python3_4" PYTHON_TARGETS="python3_4 -python3_3"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python_single_target_python3_3? ( python_targets_python3_3 )

  The above constraints are a subset of the following complete expression:
    exactly-one-of ( python_single_target_python3_3 python_single_target_python3_4 ) python_single_target_python3_3? ( python_targets_python3_3 ) python_single_target_python3_4? ( python_targets_python3_4 )

(dependency required by "gnome-base/gnome-extra-apps-3.14.0-r1::gentoo[tracker]" [installed])
(dependency required by "gnome-base/gnome-3.14.0::gentoo[extras]" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


It has something to do with the ' python_single_target_python3_3'. But I don't know how to fix it.
Back to top
View user's profile Send private message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Sun Jul 26, 2015 7:49 pm    Post subject: Reply with quote

@Keruskerfuerst could you explane what you mean with false python version?
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Mon Jul 27, 2015 4:01 pm    Post subject: Reply with quote

You should select python 3.3
Back to top
View user's profile Send private message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Mon Jul 27, 2015 6:05 pm    Post subject: Reply with quote

I solved the problem. I had to set python to 3.3. Then I still had to set PYTHON_TARGETS="python2_7 python3_3" in /etc/portage/make.conf because otherwise it selects PYTHON_TARGETS="-python3_3 python3_4" PYTHON_SINGLE_TARGET="python3_3".
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 592
Location: Australia

PostPosted: Tue Jul 28, 2015 1:29 am    Post subject: Reply with quote

elmar283 wrote:
I solved the problem. I had to set python to 3.3. Then I still had to set PYTHON_TARGETS="python2_7 python3_3" in /etc/portage/make.conf because otherwise it selects PYTHON_TARGETS="-python3_3 python3_4" PYTHON_SINGLE_TARGET="python3_3".

I elected to leave python at 2.7 and manually update the single target in /etc/portage/make.conf per the below
Code:

ian@ls2 ~ $ eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.3
  [3]   python3.4
ian@ls2 ~ $ grep PYTHON /etc/portage/make.conf
PYTHON_TARGETS="python2_7 python3_4"
PYTHON_SINGLE_TARGET="python3_4"

Which also worked. I haven't had great results in the past eselecting a 3.* profile, but that won't necessarily cause problems for you.

As 2.7 and 3.4 are the current stable versions, though; I thought this the better way to go.

Edit for completeness: If you change the targets, of course, you'll need to run
Code:
python-updater
again and rebuild the relevant packages.
Back to top
View user's profile Send private message
davetk
n00b
n00b


Joined: 31 Jul 2015
Posts: 3

PostPosted: Sat Aug 01, 2015 11:57 am    Post subject: Reply with quote

ian.au wrote:
elmar283 wrote:
I solved the problem. I had to set python to 3.3. Then I still had to set PYTHON_TARGETS="python2_7 python3_3" in /etc/portage/make.conf because otherwise it selects PYTHON_TARGETS="-python3_3 python3_4" PYTHON_SINGLE_TARGET="python3_3".

I elected to leave python at 2.7 and manually update the single target in /etc/portage/make.conf per the below
Code:

ian@ls2 ~ $ eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.3
  [3]   python3.4
ian@ls2 ~ $ grep PYTHON /etc/portage/make.conf
PYTHON_TARGETS="python2_7 python3_4"
PYTHON_SINGLE_TARGET="python3_4"

Which also worked. I haven't had great results in the past eselecting a 3.* profile, but that won't necessarily cause problems for you.

As 2.7 and 3.4 are the current stable versions, though; I thought this the better way to go.

Edit for completeness: If you change the targets, of course, you'll need to run
Code:
python-updater
again and rebuild the relevant packages.


Thanks, I had the same problem and the above solution worked for me too.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum