1 |
commit: 36eba783b56e30c212cdb9585fcc7dade98c5e77 |
2 |
Author: Rémi Cardona <remi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 29 16:47:22 2014 +0000 |
4 |
Commit: Remi Cardona <remi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 29 16:48:38 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=36eba783 |
7 |
|
8 |
gnome-base/gnome-shell: Fix build with non-bash /bin/sh |
9 |
|
10 |
Patch comes from upstream git, so -9999 doesn't need it. |
11 |
|
12 |
--- |
13 |
...around-quoting-issues-in-configure-script.patch | 33 ++++++++++++++++++++++ |
14 |
gnome-base/gnome-shell/gnome-shell-3.14.2.ebuild | 3 ++ |
15 |
2 files changed, 36 insertions(+) |
16 |
|
17 |
diff --git a/gnome-base/gnome-shell/files/gnome-shell-3.14.2-build-Workaround-quoting-issues-in-configure-script.patch b/gnome-base/gnome-shell/files/gnome-shell-3.14.2-build-Workaround-quoting-issues-in-configure-script.patch |
18 |
new file mode 100644 |
19 |
index 0000000..9f5f457 |
20 |
--- /dev/null |
21 |
+++ b/gnome-base/gnome-shell/files/gnome-shell-3.14.2-build-Workaround-quoting-issues-in-configure-script.patch |
22 |
@@ -0,0 +1,33 @@ |
23 |
+From b05ab0eaebd9e6e58f1b9c092e05323c5b901a2b Mon Sep 17 00:00:00 2001 |
24 |
+From: Alexander Tsoy <alexander@××××.me> |
25 |
+Date: Mon, 27 Oct 2014 16:45:10 +0300 |
26 |
+Subject: [PATCH] build: Workaround quoting issues in configure script |
27 |
+ |
28 |
+Default value of BROWSER_PLUGIN_DIR variable contains special symbols. |
29 |
+Thus quoting and inlining it in parameter expansion is not portable. |
30 |
+In particular it does not work in dash. Replace ${a:-b} parameter |
31 |
+expansion with conditional statement. |
32 |
+ |
33 |
+https://bugzilla.gnome.org/show_bug.cgi?id=739241 |
34 |
+--- |
35 |
+ configure.ac | 4 +++- |
36 |
+ 1 file changed, 3 insertions(+), 1 deletion(-) |
37 |
+ |
38 |
+diff --git a/configure.ac b/configure.ac |
39 |
+index d55848b..5b8c306 100644 |
40 |
+--- a/configure.ac |
41 |
++++ b/configure.ac |
42 |
+@@ -232,7 +232,9 @@ esac |
43 |
+ AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS" |
44 |
+ AC_SUBST(AM_CFLAGS) |
45 |
+ |
46 |
+-BROWSER_PLUGIN_DIR="${BROWSER_PLUGIN_DIR:-"\${libdir}/mozilla/plugins"}" |
47 |
++if test -z "${BROWSER_PLUGIN_DIR}"; then |
48 |
++ BROWSER_PLUGIN_DIR="\${libdir}/mozilla/plugins" |
49 |
++fi |
50 |
+ AC_ARG_VAR([BROWSER_PLUGIN_DIR],[Where to install the plugin to]) |
51 |
+ |
52 |
+ AC_CONFIG_FILES([ |
53 |
+-- |
54 |
+2.1.3 |
55 |
+ |
56 |
|
57 |
diff --git a/gnome-base/gnome-shell/gnome-shell-3.14.2.ebuild b/gnome-base/gnome-shell/gnome-shell-3.14.2.ebuild |
58 |
index 7db3234..d11763a 100644 |
59 |
--- a/gnome-base/gnome-shell/gnome-shell-3.14.2.ebuild |
60 |
+++ b/gnome-base/gnome-shell/gnome-shell-3.14.2.ebuild |
61 |
@@ -128,6 +128,9 @@ src_prepare() { |
62 |
# https://bugzilla.gnome.org/show_bug.cgi?id=726435 |
63 |
epatch "${FILESDIR}/${PN}-3.14.0-bluetooth-gold.patch" |
64 |
|
65 |
+ # Fix build with non-bash /bin/sh, see bug #526408 |
66 |
+ epatch "${FILESDIR}/${PN}-3.14.2-build-Workaround-quoting-issues-in-configure-script.patch" |
67 |
+ |
68 |
epatch_user |
69 |
|
70 |
eautoreconf |