Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355585 - Patch for mail-client/thunderbird-3.1.7-r2 to emerge with python 3 as main python
Summary: Patch for mail-client/thunderbird-3.1.7-r2 to emerge with python 3 as main py...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-19 16:36 UTC by Adrian Bassett
Modified: 2011-03-04 05:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to allow thunderbird-3.1.7 to compile with python 3 as main python version (thunderbird.patch,841 bytes, patch)
2011-02-19 16:37 UTC, Adrian Bassett
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Bassett 2011-02-19 16:36:57 UTC
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.
Comment 1 Adrian Bassett 2011-02-19 16:37:57 UTC
Created attachment 263061 [details, diff]
Patch to allow thunderbird-3.1.7 to compile with python 3 as main python version
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-02-22 14:22:54 UTC
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.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-02-22 16:01:51 UTC
There should be also:
DEPEND="${RDEPEND}
    =dev-lang/python-2*"

The rest of the patch is correct.
Comment 4 Adrian Bassett 2011-02-23 10:26:19 UTC
(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.



Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-03-04 05:37:41 UTC
+  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.