Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365603 - x11-plugins/enigmail-1.1.2-r3 emerge fails with Python3
Summary: x11-plugins/enigmail-1.1.2-r3 emerge fails with Python3
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-01 18:36 UTC by Chris Mayo
Modified: 2011-12-18 15:14 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2011-05-01 18:36:57 UTC
USE="alsa -custom-optimization dbus -debug gnome libnotify startup-notification -system-sqlite -wifi"

If the default interpreter is Python3:

/var/tmp/portage/x11-plugins/enigmail-1.1.2-r3/work/comm-1.9.2/mozilla/config/nsinstall -R nsinstall ../dist/bin
/usr/bin/python ../toolkit/xre/make-platformini.py --print-buildid > buildid
  File "../toolkit/xre/make-platformini.py", line 17
    print datetime.now().strftime('%Y%m%d%H%M%S')
                 ^
SyntaxError: invalid syntax
make[2]: *** [export] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-plugins/enigmail-1.1.2-r3/work/comm-1.9.2/mozilla/config'
make[1]: *** [export] Error 2
make[1]: Leaving directory `/var/tmp/portage/x11-plugins/enigmail-1.1.2-r3/work/comm-1.9.2/mozilla'
make: *** [export] Error 2
emake failed
 * ERROR: x11-plugins/enigmail-1.1.2-r3 failed (compile phase):
 *   make export failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 5640:  Called die
 * The specific snippet of code:
 *       emake -j1 export || die "make export failed";



Adding python_set_active_version 2 to pkg_setup() fixes this for me.
Comment 1 Andre 2011-05-09 10:19:12 UTC
I can confirm both this error and the remedy.
Switching the system python to 2.7 allows for successful compilation.

My enigmail use flags are:
system-sqlite -alsa -custom-optimization -dbus -debug -gnome -libnotify -startup-notification -wifi

Will happily provide further info.
Comment 2 Christopher Harvey 2011-07-06 16:51:53 UTC
same goes for enigmail-1.1.2-r2
Comment 3 Jory A. Pratt gentoo-dev 2011-12-18 15:14:28 UTC
enigmail ebuild has been depreciated and moved back into thunderbird ebuild via crypt useflag.