Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 478678

Summary: gnome-extra/evolution-data-server-3.8.4 - build system is incompatible with python-3.*
Product: Gentoo Linux Reporter: Alexander Tsoy <alexander>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: AlphatPC, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugzilla.gnome.org/show_bug.cgi?id=705028
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 463242    
Attachments: build.log

Description Alexander Tsoy 2013-07-29 17:39:03 UTC
Created attachment 354540 [details]
build.log

evolution-data-server-3.8.4 is failing on compile phase. Seems that it is incompatible with python 3.2.

Commit that introduced this problem:

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/gnome-extra/evolution-data-server/evolution-data-server-3.8.4.ebuild?r1=1.2&r2=1.3


From the build log:

(/usr/bin/python3.2 ./gen-western-table.py < e-name-western-tables.h.in > e-name-western-tables.h.tmp && mv e-name-western-tables.h.tmp e-name-western-tables.h) || rm -f e-name-western-tables.h.tmp
glib-mkenums --template ../../enumtypes.h.template \
        --fhead "#ifndef E_BOOK_CONTACTS_ENUMTYPES_H\n#define E_BOOK_CONTACTS_ENUMTYPES_H\n" \
        --ftail "#endif /* E_BOOK_CONTACTS_ENUMTYPES_H */\n" \
        ./e-book-contacts-types.h > e-book-contacts-enumtypes.h
  File "./gen-western-table.py", line 26
    print "static const gchar %s_table[] = {" % var
                                            ^
SyntaxError: invalid syntax



As a result, header file e-name-western-tables.h is not created.

This patch fixed the problem for me:

--- evolution-data-server-3.8.4.ebuild	2013-07-29 21:21:13.321574329 +0400
+++ /usr/portage/gnome-extra/evolution-data-server/evolution-data-server-3.8.4.ebuild	2013-07-29 21:21:20.567548924 +0400
@@ -4,7 +4,7 @@
 
 EAPI="5"
 GCONF_DEBUG="no"
-PYTHON_COMPAT=( python{2_7,3_2,3_3} pypy{1_9,2_0})
+PYTHON_COMPAT=( python{2_7,3_3} pypy{1_9,2_0})
 VALA_MIN_API_VERSION="0.18"
 VALA_USE_DEPEND="vapigen"
Comment 1 Pacho Ramos gentoo-dev 2013-07-29 20:34:38 UTC
+  29 Jul 2013; Pacho Ramos <pacho@gentoo.org>
+  -evolution-data-server-3.8.3.ebuild:
+  Really fix python deps, drop old
+
Comment 2 Alexander Tsoy 2013-07-29 21:34:38 UTC
I don't see any changes to ebuild in cvs. :)
Comment 3 Pacho Ramos gentoo-dev 2013-07-29 22:03:31 UTC
Just committed right ebuild, I start to be a bit saturated sorry -_-