1 |
On Thu, 29 Nov 2012 17:50:28 +0100 |
2 |
Gilles Dartiguelongue <eva@g.o> wrote: |
3 |
|
4 |
> First, thanks for this patch, I was planning on converting it but did |
5 |
> not have to do it. |
6 |
|
7 |
Well, the patch was on the ml a while ago but it was reply to one |
8 |
of the mails, so it was hard to notice it. |
9 |
|
10 |
> Le jeudi 29 novembre 2012 à 14:40 +0100, Michał Górny a écrit : |
11 |
> > --- |
12 |
> > .../dev-python/pygobject/pygobject-3.2.2-r1.ebuild | 106 +++++++++++++++++++++ |
13 |
> > 1 file changed, 106 insertions(+) |
14 |
> > create mode 100644 gx86/dev-python/pygobject/pygobject-3.2.2-r1.ebuild |
15 |
> > |
16 |
> > diff --git a/gx86/dev-python/pygobject/pygobject-3.2.2-r1.ebuild b/gx86/dev-python/pygobject/pygobject-3.2.2-r1.ebuild |
17 |
> > new file mode 100644 |
18 |
> > index 0000000..289eace |
19 |
> > --- /dev/null |
20 |
> > +++ b/gx86/dev-python/pygobject/pygobject-3.2.2-r1.ebuild |
21 |
> > @@ -0,0 +1,106 @@ |
22 |
> > +# Copyright 1999-2012 Gentoo Foundation |
23 |
> > +# Distributed under the terms of the GNU General Public License v2 |
24 |
> > +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/pygobject-3.2.2.ebuild,v 1.5 2012/09/28 05:45:45 mattst88 Exp $ |
25 |
> > + |
26 |
> > +EAPI="4" |
27 |
> > +GCONF_DEBUG="no" |
28 |
> > +PYTHON_COMPAT=( python2_6 python2_7 python3_1 python3_2 ) |
29 |
> > +AUTOTOOLS_AUTORECONF=1 |
30 |
> > + |
31 |
> > +inherit autotools-utils eutils gnome2 python-r1 virtualx |
32 |
> |
33 |
> Please do not mix autotools utils with gnome2 eclass. gnome team does |
34 |
> not support out of tree builds for now. I have plans to integrate this |
35 |
> in the eclass but we found that upstream generally does not test this so |
36 |
> we want to test it more extensively before making this available. |
37 |
|
38 |
Well, the main purpose of this patch was to demonstrate using |
39 |
out-of-source builds with python-r1. |
40 |
|
41 |
Therefore, I ask thee: is it acceptable then to use gnome2-utils |
42 |
in the eclass or shall I restrain completely from using out-of-source |
43 |
builds on that package? |
44 |
|
45 |
One thing I can assure you is that this package supports them. |
46 |
|
47 |
> > +# FIXME: With python multiple ABI support, tests return 1 even when they pass |
48 |
> > +src_test() { |
49 |
> > + local DBUS_SESSION_BUS_ADDRESS |
50 |
> > + local GIO_USE_VFS='local' # prevents odd issues with deleting ${T}/.gvfs |
51 |
> > + local VIRTUALX_COMMAND=python_test |
52 |
> > + |
53 |
> > + export GIO_USE_VFS |
54 |
> > + |
55 |
> > + python_foreach_impl virtualmake |
56 |
> > + |
57 |
> > + python_execute_function -s testing |
58 |
> > +} |
59 |
> > + |
60 |
> dbus variables needs to be unset for tests to work when you do your |
61 |
> builds from a terminal started from your desktop, is that really |
62 |
> equivalent ? |
63 |
|
64 |
You are correct that it isn't. I wrote the patch before I actually |
65 |
noticed how crazy local+export logic works. We need to re-export |
66 |
DBUS_SESSION_BUS_ADDRESS here. Also, I forgot |
67 |
to remove python_execute_function... silly. |
68 |
|
69 |
After doing those two changes, the tests succeed for me |
70 |
with DBUS_SESSION_BUS_ADDRESS set in the parent env. |
71 |
|
72 |
To be more correct, they succeed for py2.7, 3.1 & 3.2. |
73 |
|
74 |
In python2.6 they fail with: |
75 |
|
76 |
@unittest.expectedFailure |
77 |
AttributeError: 'module' object has no attribute 'expectedFailure' |
78 |
|
79 |
But that's another story. |
80 |
|
81 |
I'd say that the ebuild works 100% fine in the version I'm attaching |
82 |
to this mail. |
83 |
|
84 |
-- |
85 |
Best regards, |
86 |
Michał Górny |