Gentoo Archives: gentoo-commits

From: Alexandre Restovtsev <tetromino@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:gnome-next commit in: dev-util/gdbus-codegen/files/, dev-util/gdbus-codegen/
Date: Thu, 01 Sep 2011 23:16:34
Message-Id: 184b705e1722c0ea1bd351f183f3ca385aadded1.tetromino@gentoo
1 commit: 184b705e1722c0ea1bd351f183f3ca385aadded1
2 Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
3 AuthorDate: Thu Sep 1 22:46:46 2011 +0000
4 Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
5 CommitDate: Thu Sep 1 22:46:46 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=184b705e
7
8 dev-util/gdbus-codegen: 2.29.18 → 2.29.18-r1
9
10 Add an upstream patch that makes gdbus-codegen properly process all
11 interfaces when running on more than one file, and fixes a crash when
12 run with no arguments.
13
14 ---
15 .../files/gdbus-codegen-2.29.18-all-ifaces.patch | 26 ++++++++++++++++++++
16 ...9.18.ebuild => gdbus-codegen-2.29.18-r1.ebuild} | 5 +++-
17 2 files changed, 30 insertions(+), 1 deletions(-)
18
19 diff --git a/dev-util/gdbus-codegen/files/gdbus-codegen-2.29.18-all-ifaces.patch b/dev-util/gdbus-codegen/files/gdbus-codegen-2.29.18-all-ifaces.patch
20 new file mode 100644
21 index 0000000..0839331
22 --- /dev/null
23 +++ b/dev-util/gdbus-codegen/files/gdbus-codegen-2.29.18-all-ifaces.patch
24 @@ -0,0 +1,26 @@
25 +From a020fbf8f6cd345c0e7cbd5eb0dae194c5dc6650 Mon Sep 17 00:00:00 2001
26 +From: Will Thompson <will.thompson@××××××××××××.uk>
27 +Date: Thu, 01 Sep 2011 18:28:57 +0000
28 +Subject: gdbus-codegen: post-process all interfaces when parsing >1 file
29 +
30 +This also fixes a crash when you run gdbus-codegen with no arguments.
31 +
32 +https://bugzilla.gnome.org/show_bug.cgi?id=656323
33 +
34 +Signed-off-by: David Zeuthen <davidz@××××××.com>
35 +---
36 +diff --git a/gio/gdbus-2.0/codegen/codegen_main.py b/gio/gdbus-2.0/codegen/codegen_main.py
37 +index 067ac5e..76c838c 100755
38 +--- a/gio/gdbus-2.0/codegen/codegen_main.py
39 ++++ b/gio/gdbus-2.0/codegen/codegen_main.py
40 +@@ -174,7 +174,7 @@ def codegen_main():
41 + if opts.annotate != None:
42 + apply_annotations(all_ifaces, opts.annotate)
43 +
44 +- for i in parsed_ifaces:
45 ++ for i in all_ifaces:
46 + i.post_process(opts.interface_prefix, opts.c_namespace)
47 +
48 + docbook = opts.generate_docbook
49 +--
50 +cgit v0.9.0.2
51
52 diff --git a/dev-util/gdbus-codegen/gdbus-codegen-2.29.18.ebuild b/dev-util/gdbus-codegen/gdbus-codegen-2.29.18-r1.ebuild
53 similarity index 91%
54 rename from dev-util/gdbus-codegen/gdbus-codegen-2.29.18.ebuild
55 rename to dev-util/gdbus-codegen/gdbus-codegen-2.29.18-r1.ebuild
56 index a46d52d..d93a724 100644
57 --- a/dev-util/gdbus-codegen/gdbus-codegen-2.29.18.ebuild
58 +++ b/dev-util/gdbus-codegen/gdbus-codegen-2.29.18-r1.ebuild
59 @@ -8,7 +8,7 @@ GNOME_TARBALL_SUFFIX="xz"
60 PYTHON_DEPEND="2:2.5"
61 PYTHON_USE_WITH="xml"
62
63 -inherit gnome.org multilib python
64 +inherit eutils gnome.org multilib python
65
66 DESCRIPTION="GDBus code and documentation generator"
67
68 @@ -36,6 +36,9 @@ src_prepare() {
69 -i gdbus-codegen.in || die "sed gdbus-codegen.in failed"
70 sed -e "s:\"/usr/local\":\"${EPREFIX}/usr\":" \
71 -i config.py || die "sed config.py failed"
72 +
73 + # Process all interfaces when running on >1 file; will be in next release
74 + epatch "${FILESDIR}/${P}-all-ifaces.patch"
75 }
76
77 pkg_setup() {