* Building of net-mail/offlineimap-6.4.2 with CPython 2.5... python2.5 setup.py build -b build-2.5 Traceback (most recent call last): File "setup.py", line 27, in <module> import offlineimap File "/var/tmp/portage/net-mail/offlineimap-6.4.2/work/offlineimap-6.4.2/offlineimap/__init__.py", line 23, in <module> from offlineimap.init import OfflineImap File "/var/tmp/portage/net-mail/offlineimap-6.4.2/work/offlineimap-6.4.2/offlineimap/init.py", line 21, in <module> import offlineimap.imaplib2 as imaplib File "/var/tmp/portage/net-mail/offlineimap-6.4.2/work/offlineimap-6.4.2/offlineimap/imaplib2.py", line 1592 self._command(name, *args, callback=self._command_completer, cb_arg=kw, cb_self=True) ^ SyntaxError: invalid syntax * ERROR: net-mail/offlineimap-6.4.2 failed (compile phase): * Building failed with CPython 2.5 in distutils_building() function Portage 2.2.0_alpha79 (default/linux/amd64/10.0/developer, gcc-4.6.2, glibc-2.14.1-r1, 3.1.4-gentoo x86_64) ================================================================= System uname: Linux-3.1.4-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_820_@_1.73GHz-with-gentoo-2.1 Timestamp of tree: Thu, 08 Dec 2011 04:00:01 +0000 ccache version 3.1.6 [enabled] app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.5.4-r4, 2.6.7-r2, 2.7.2-r3 dev-util/ccache: 3.1.6 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.11.1-r1 sys-devel/binutils: 2.22 sys-devel/gcc: 4.3.6-r1, 4.4.6-r1, 4.5.3-r1, 4.5.4_pre9999::toolchain, 4.6.2, 4.6.3_pre9999::toolchain sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 2.6.39 (virtual/os-headers) sys-libs/glibc: 2.14.1-r1 Repositories: gentoo tundra gcc-porting toolchain dirtyepic Installed sets: @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -g -pipe -ftree-vectorize" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=native -g -pipe -ftree-vectorize" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n" FEATURES="assume-digests binpkg-logs ccache clean-logs compress-build-logs distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict test test-fail-continue unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org/" LANG="en_US.utf8" LC_ALL="en_US.utf8" LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed" LINGUAS="en en_CA en_US" MAKEOPTS="-j16 V=1"
Thanks for the report. 2.5 is not supported anymore. Upstream claims that it should work with USE="-ssl", but I guess that's just outdated by a bump of imaplib. I restricted the python version. + 10 Dec 2011; Thomas Kahle <tomka@gentoo.org> offlineimap-6.4.2.ebuild: + Restrict to >=python-2.6
Unfortunately, setting PYTHON_DEPEND doesn't control which versions the package will be built with, only the versions that satisfy the dependency. You also need to add 2.5 to RESTRICT_PYTHON_ABIS. Yes, this is dumb.
(In reply to comment #2) > Unfortunately, setting PYTHON_DEPEND doesn't control which versions the package > will be built with, only the versions that satisfy the dependency. You also > need to add 2.5 to RESTRICT_PYTHON_ABIS. Yes, this is dumb. OK, I did that for now...
(In reply to comment #3) > (In reply to comment #2) > > Unfortunately, setting PYTHON_DEPEND doesn't control which versions the package > > will be built with, only the versions that satisfy the dependency. You also > > need to add 2.5 to RESTRICT_PYTHON_ABIS. Yes, this is dumb. > > OK, I did that for now... This should probably be closed no?
(In reply to comment #4) > (In reply to comment #3) > > (In reply to comment #2) > > > Unfortunately, setting PYTHON_DEPEND doesn't control which versions the package > > > will be built with, only the versions that satisfy the dependency. You also > > > need to add 2.5 to RESTRICT_PYTHON_ABIS. Yes, this is dumb. > > > > OK, I did that for now... > > This should probably be closed no? Yes.