With python 3 as main python version: # eselect python list Available Python interpreters: [1] python2.7 [2] python3.1 * mail-client/thunderbird-3.1.7-r2 fails to emerge: # emerge -pv thunderbird [ebuild R ] mail-client/thunderbird-3.1.7-r2 USE="alsa crypt custom-optimization dbus gnome ldap libnotify lightning startup-notification wifi -bindist -mozdom -system-sqlite" LINGUAS="-af -ar -be -bg -bn -bn_BD -ca -cs -da -de -el -en -en_GB -en_US -es -es_AR -es_ES -et -eu -fi -fr -fy -fy_NL -ga -ga_IE -he -hu -id -is -it -ja -ko -lt -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" ... creating ldap/libraries/libutil/Makefile File "./config/printconfigsetting.py", line 6 print "Usage: printconfigsetting.py <file> <section> <setting>" ^ SyntaxError: invalid syntax File "./config/printconfigsetting.py", line 6 print "Usage: printconfigsetting.py <file> <section> <setting>" ^ SyntaxError: invalid syntax File "./config/printconfigsetting.py", line 6 print "Usage: printconfigsetting.py <file> <section> <setting>" ^ SyntaxError: invalid syntax File "./config/printconfigsetting.py", line 6 print "Usage: printconfigsetting.py <file> <section> <setting>" ^ SyntaxError: invalid syntax File "./config/printconfigsetting.py", line 6 print "Usage: printconfigsetting.py <file> <section> <setting>" ^ SyntaxError: invalid syntax File "./config/printconfigsetting.py", line 6 print "Usage: printconfigsetting.py <file> <section> <setting>" ^ SyntaxError: invalid syntax nsinstall.c pathsub.c File "../toolkit/xre/make-platformini.py", line 17 print datetime.now().strftime('%Y%m%d%H%M%S') ^ SyntaxError: invalid syntax make[4]: *** [export] Error 1 make[3]: *** [export_tier_base] Error 2 make[2]: *** [tier_base] Error 2 make[1]: *** [default] Error 2 make: *** [default] Error 2 emake failed * ERROR: mail-client/thunderbird-3.1.7-r2 failed (compile phase): The following attachment contains a minimal diff -u patch for a -r3 version of the ebuild which fixes the problem. Reproducible: Always Steps to Reproduce: 1.eselect python set 2 (where 2 is python 3.1.3) 2.emerge thunderbird-3.1.7-r2 3.
Created attachment 263061 [details, diff] Patch to allow thunderbird-3.1.7 to compile with python 3 as main python version
Your patch is not fixing mozilla-thunderbird, but forcing it to use python-2*. I'm reassigning to mozilla and cc'ing python so they can decide what to do about this.
There should be also: DEPEND="${RDEPEND} =dev-lang/python-2*" The rest of the patch is correct.
(In reply to comment #2) > Your patch is not fixing mozilla-thunderbird, but forcing it to use python-2*. The only aim of the patch was, by minimal modification to the ebuild itself, to allow thunderbird to compile when python 3 is installed and also configured as the main version of python. As such it clearly makes no claim to 'fix' thunderbird itself to be multi-python-version compliant, as may very well be the longer-term requirment. > I'm reassigning to mozilla and cc'ing python so they can decide what to do > about this.
+ 04 Mar 2011; Lars Wendler <polynomial-c@gentoo.org> thunderbird-3.1.3.ebuild, + thunderbird-3.1.5.ebuild, thunderbird-3.1.6.ebuild, thunderbird-3.1.7.ebuild, + thunderbird-3.1.7-r2.ebuild: + Forced usage of python-2 for building (bug #355585 by Adrian Bassett). Thanks for reporting.