You are not logged in.

#1 2013-02-12 11:19:37

McGee23
New member
Registered: 2012-11-27
Posts: 4

Invalid syntax of PYTHON_DEPEND: Unrecognized minimal version '2.4'

Since a few days a get the following error, when cleaning my distfiles:

 * ERROR: app-emulation/qemu-1.2.2-r3 failed (depend phase):
 *   Invalid syntax of PYTHON_DEPEND: Unrecognized minimal version '2.4'
 * 
 * Call stack:
 *              ebuild.sh, line 551:  Called source '/usr/portage/app-emulation/qemu/qemu-1.2.2-r3.ebuild'
 *   qemu-1.2.2-r3.ebuild, line  11:  Called inherit 'eutils' 'flag-o-matic' 'linux-info' 'toolchain-funcs' 'multilib' 'python' 'user' 'udev'
 *              ebuild.sh, line 286:  Called __qa_source '/usr/portage/eclass/python.eclass'
 *              ebuild.sh, line  80:  Called source '/usr/portage/eclass/python.eclass'
 *          python.eclass, line 579:  Called _python_parse_dependencies_in_old_EAPIs 'PYTHON_DEPEND' 'DEPEND RDEPEND'
 *          python.eclass, line 372:  Called _python_parse_versions_range '2:2.4' 'PYTHON_DEPEND' '_PYTHON_ATOMS'
 *          python.eclass, line 293:  Called die
 * The specific snippet of code:
 *   				die "Invalid syntax of ${input_variable}: Unrecognized minimal version '${minimal_version}'"
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/qemu-1.2.2-r3'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/qemu-1.2.2-r3'`.
 * Working directory: '/root'
 * S: '/var/tmp/portage/app-emulation/qemu-1.2.2-r3/work/qemu-1.2.2'

The output of `emerge --info '=app-emulation/qemu-1.2.2-r3'` is:

Portage 2.3.5-r6 (funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.6.3, glibc-2.15-r3, 3.5.7-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-2670QM_CPU_@_2.20GHz-with-gentoo-2.2.0
KiB Mem:    32901576 total,  29292776 free
KiB Swap:   50336684 total,  50336684 free
Timestamp of tree: Tue, 12 Feb 2013 06:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1000
dev-lang/python:          2.7.3-r1000, 3.2.3-r1000
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2.0-r4
sys-apps/openrc:          0.10.2-r7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.5, 4.6.3
sys-devel/gcc-config:     1.5-r1
sys-devel/libtool:        2.4-r3
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo local-repo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
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.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/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 /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=y"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync mini-manifest news parallel-fetch preserve-libs 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"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 apng bash-completion berkdb blas bluetooth boost branding bzip2 cairo cddb cdr consolekit cpudetection cracklib crypt css cups cvs cxx dbus directfb djvu dri dts dvd dvdr dvdread encode evo exif fam ffmpeg flac fortran ftp gcj gconf gd gdbm gif gimp gnome gnutls gpm gs gstreamer gtk gtk3 hddtemp iconv icu imagemagick imap ipv6 ithreads java javascript jpeg keymap lame lapack latex lcms libnotify lm_sensors lzma lzo mad mmx mng modemmanager modules mp3 mpeg mpi mudflap multilib musepack mysql nautilus ncurses networkmanager nls nptl nsplugin ogg opengl openmp pam pango pcre pdf perl php png policykit pppd python qt3support qt4 quicktime raw readline resolvconf romio samba scanner sdl smartcard smp snmp spell sqlite sse sse2 sse3 ssl ssse3 startup-notification subversion svg syslog taglib tcl tcpd threads tiff tk truetype twolame udev unicode usb v4l vnc vorbis wavpack wmf x264 xcb xfs xinerama xml 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="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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon" 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" PHP_TARGETS="php5-3" PYTHON_ABIS="2.7 3.2" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK

I'm not sure, but is it possible, that's the same error like in http://forums.funtoo.org/viewtopic.php?id=1625?

All the best,
Georg

Offline

#2 2013-02-12 11:52:29

jcadam
Member
Registered: 2011-05-28
Posts: 27

Re: Invalid syntax of PYTHON_DEPEND: Unrecognized minimal version '2.4'

I have the same issue reported at

http://forums.funtoo.org/viewtopic.php?id=2024

Offline

#3 2013-02-12 13:52:04

McGee23
New member
Registered: 2012-11-27
Posts: 4

Re: Invalid syntax of PYTHON_DEPEND: Unrecognized minimal version '2.4'

Sorry, didn't see this one.
Best, Georg

Offline

#4 2013-02-12 15:10:13

overkill
Member
Registered: 2011-09-13
Posts: 243

Re: Invalid syntax of PYTHON_DEPEND: Unrecognized minimal version '2.4'

It's already been reported to funtoo:

http://bugs.funtoo.org/browse/FL-409

Offline

#5 2013-02-13 05:32:20

jcadam
Member
Registered: 2011-05-28
Posts: 27

Re: Invalid syntax of PYTHON_DEPEND: Unrecognized minimal version '2.4'

Not only qemu package has this statement. At least, I found two in /usr/portage/.

app-emulation/qemu-guest-agent/qemu-guest-agent-1.2.0.ebuild
32:PYTHON_DEPEND="2:2.4"

app-emulation/qemu/qemu-1.2.2-r3.ebuild
10:PYTHON_DEPEND="2:2.4"

Offline

#6 2013-02-13 05:47:10

jcadam
Member
Registered: 2011-05-28
Posts: 27

Re: Invalid syntax of PYTHON_DEPEND: Unrecognized minimal version '2.4'

This problem could be fixed by the following patch. However, I am not sure if arbitrarily asserting on python2.6 is a wise choice.

diff --git a/app-emulation/qemu-guest-agent/qemu-guest-agent-1.2.0.ebuild b/app-emulation/qemu-guest-agent/qemu-guest-agent-1.2.0.ebuild
index 96ae218..dbdae17 100644
--- a/app-emulation/qemu-guest-agent/qemu-guest-agent-1.2.0.ebuild
+++ b/app-emulation/qemu-guest-agent/qemu-guest-agent-1.2.0.ebuild
@@ -29,7 +29,7 @@ IUSE=""
 DEPEND=">=dev-libs/glib-2.22"
 RDEPEND="${DEPEND}
        !<app-emulation/qemu-1.1.1-r1"
-PYTHON_DEPEND="2:2.4"
+PYTHON_DEPEND="2:2.6"
 
 S="${WORKDIR}/${MY_P}"
 
diff --git a/app-emulation/qemu/qemu-1.2.2-r3.ebuild b/app-emulation/qemu/qemu-1.2.2-r3.ebuild
index 3839ab4..56d0e8f 100644
--- a/app-emulation/qemu/qemu-1.2.2-r3.ebuild
+++ b/app-emulation/qemu/qemu-1.2.2-r3.ebuild
@@ -7,7 +7,7 @@ EAPI=5
 MY_PN="qemu-kvm"
 MY_P=${MY_PN}-1.2.0
 
-PYTHON_DEPEND="2:2.4"
+PYTHON_DEPEND="2:2.6"
 inherit eutils flag-o-matic linux-info toolchain-funcs multilib python user udev
 BACKPORTS=7c9a3a87

Offline

Board footer

Powered by FluxBB