1 |
commit: ed776d4e8f2e1da38a6a058e615943b636a52176 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 1 11:22:06 2017 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 1 11:22:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed776d4e |
7 |
|
8 |
dev-libs/expat: Fix compilation (bug #622360) |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-libs/expat/expat-2.2.1.ebuild | 1 + |
13 |
dev-libs/expat/files/expat-2.2.1-gentoo-dash.patch | 31 ++++++++++++++++++++++ |
14 |
2 files changed, 32 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/expat/expat-2.2.1.ebuild b/dev-libs/expat/expat-2.2.1.ebuild |
17 |
index 97d901fc111..7ada43d0dc1 100644 |
18 |
--- a/dev-libs/expat/expat-2.2.1.ebuild |
19 |
+++ b/dev-libs/expat/expat-2.2.1.ebuild |
20 |
@@ -20,6 +20,7 @@ DOCS=( AUTHORS Changes README ) |
21 |
src_prepare() { |
22 |
epatch "${FILESDIR}"/${P}-getrandom-detection.patch |
23 |
epatch "${FILESDIR}"/${P}-posix-shell.patch |
24 |
+ epatch "${FILESDIR}"/${P}-gentoo-dash.patch # bug 622360 |
25 |
eapply_user |
26 |
eautoreconf |
27 |
} |
28 |
|
29 |
diff --git a/dev-libs/expat/files/expat-2.2.1-gentoo-dash.patch b/dev-libs/expat/files/expat-2.2.1-gentoo-dash.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..a0eb60ce6cc |
32 |
--- /dev/null |
33 |
+++ b/dev-libs/expat/files/expat-2.2.1-gentoo-dash.patch |
34 |
@@ -0,0 +1,31 @@ |
35 |
+From 9502963fd2e84ac529950f3a6f4173d86b93b5d2 Mon Sep 17 00:00:00 2001 |
36 |
+From: Kerin Millar <kfm@×××××××××.net> |
37 |
+Date: Thu, 29 Jun 2017 16:51:18 +0100 |
38 |
+Subject: [PATCH] conftools/get-version.sh: Use printf rather than try to infer |
39 |
+ non-portable echo options |
40 |
+ |
41 |
+--- |
42 |
+ expat/conftools/get-version.sh | 13 +------------ |
43 |
+ 1 file changed, 1 insertion(+), 12 deletions(-) |
44 |
+ |
45 |
+diff --git a/expat/conftools/get-version.sh b/expat/conftools/get-version.sh |
46 |
+index a70e0fb..91e5c64 100755 |
47 |
+--- a/expat/conftools/get-version.sh |
48 |
++++ b/expat/conftools/get-version.sh |
49 |
+@@ -32,15 +32,4 @@ MAJOR_VERSION="`sed -n -e '/MAJOR_VERSION/s/[^0-9]*//gp' $hdr`" |
50 |
+ MINOR_VERSION="`sed -n -e '/MINOR_VERSION/s/[^0-9]*//gp' $hdr`" |
51 |
+ MICRO_VERSION="`sed -n -e '/MICRO_VERSION/s/[^0-9]*//gp' $hdr`" |
52 |
+ |
53 |
+-# Determine how to tell echo not to print the trailing \n. This is |
54 |
+-# similar to Autoconf's @ECHO_C@ and @ECHO_N@; however, we don't |
55 |
+-# generate this file via autoconf (in fact, get-version.sh is used |
56 |
+-# to *create* ./configure), so we just do something similar inline. |
57 |
+-case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
58 |
+- *c*,-n*) ECHO_N= ECHO_C=' |
59 |
+-' ;; |
60 |
+- *c*,* ) ECHO_N=-n ECHO_C= ;; |
61 |
+- *) ECHO_N= ECHO_C='\c' ;; |
62 |
+-esac |
63 |
+- |
64 |
+-echo $ECHO_N "$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$ECHO_C" |
65 |
++printf '%s.%s.%s' "$MAJOR_VERSION" "$MINOR_VERSION" "$MICRO_VERSION" |