Gentoo Archives: gentoo-commits

From: Remi Cardona <remi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: x11-libs/gtk+/files/, x11-libs/gtk+/
Date: Sun, 30 Nov 2014 15:52:47
Message-Id: 1417362737.e8432718a163db9e0c2389815e034678413b247e.remi@gentoo
1 commit: e8432718a163db9e0c2389815e034678413b247e
2 Author: Rémi Cardona <remi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 30 15:51:35 2014 +0000
4 Commit: Remi Cardona <remi <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 30 15:52:17 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=e8432718
7
8 x11-libs/gtk+: Fix build with dash as /bin/sh
9
10 See bug #525928.
11
12 ---
13 x11-libs/gtk+/files/gtk+-non-bash-support.patch | 29 +++++++++++++++++++++++++
14 x11-libs/gtk+/gtk+-3.14.5.ebuild | 6 ++++-
15 2 files changed, 34 insertions(+), 1 deletion(-)
16
17 diff --git a/x11-libs/gtk+/files/gtk+-non-bash-support.patch b/x11-libs/gtk+/files/gtk+-non-bash-support.patch
18 new file mode 100644
19 index 0000000..efd13e6
20 --- /dev/null
21 +++ b/x11-libs/gtk+/files/gtk+-non-bash-support.patch
22 @@ -0,0 +1,29 @@
23 +From c8ef010024db794e25ca58ef3c02663de685f1bb Mon Sep 17 00:00:00 2001
24 +From: Alexander Tsoy <alexander@××××.me>
25 +Date: Sun, 26 Oct 2014 01:59:33 +0400
26 +Subject: [PATCH] gtk/Makefile.am: improve portability of ECHO
27 +
28 +---
29 + gtk/Makefile.am | 6 +-----
30 + 1 file changed, 1 insertion(+), 5 deletions(-)
31 +
32 +diff --git a/gtk/Makefile.am b/gtk/Makefile.am
33 +index f60bec8..e923940 100644
34 +--- a/gtk/Makefile.am
35 ++++ b/gtk/Makefile.am
36 +@@ -19,11 +19,7 @@ GTK_PRINT_PREVIEW_COMMAND="evince --unlink-tempfile --preview --print-settings %
37 + endif
38 +
39 + SUBDIRS = inspector native .
40 +-if OS_DARWIN
41 +- ECHO="echo"
42 +-else
43 +- ECHO=echo -e
44 +-endif
45 ++ECHO=printf '%b\n'
46 +
47 + if HAVE_CLOUDPRINT
48 + if HAVE_PAPI_CUPS
49 +--
50 +2.0.4
51 +
52
53 diff --git a/x11-libs/gtk+/gtk+-3.14.5.ebuild b/x11-libs/gtk+/gtk+-3.14.5.ebuild
54 index 122f8e6..98e6e47 100644
55 --- a/x11-libs/gtk+/gtk+-3.14.5.ebuild
56 +++ b/x11-libs/gtk+/gtk+-3.14.5.ebuild
57 @@ -6,7 +6,7 @@ EAPI="5"
58 GCONF_DEBUG="no"
59 GNOME2_LA_PUNT="yes"
60
61 -inherit eutils flag-o-matic gnome2 multilib virtualx multilib-minimal
62 +inherit eutils flag-o-matic autotools gnome2 multilib virtualx multilib-minimal
63
64 DESCRIPTION="Gimp ToolKit +"
65 HOMEPAGE="http://www.gtk.org/"
66 @@ -108,6 +108,9 @@ strip_builddir() {
67 }
68
69 src_prepare() {
70 + # see bug #525928
71 + epatch "${FILESDIR}/${PN}-non-bash-support.patch"
72 +
73 # -O3 and company cause random crashes in applications. Bug #133469
74 replace-flags -O3 -O2
75 strip-flags
76 @@ -128,6 +131,7 @@ src_prepare() {
77 strip_builddir SRC_SUBDIRS examples Makefile.in
78 fi
79
80 + eautoreconf
81 gnome2_src_prepare
82 }