Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/dosemu/, app-emulation/dosemu/files/
Date: Sat, 29 Oct 2016 10:34:55
Message-Id: 1477737279.4eeb3971eb856b8fdece1185f119a296d287cc2d.slyfox@gentoo
1 commit: 4eeb3971eb856b8fdece1185f119a296d287cc2d
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 29 10:04:31 2016 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 29 10:34:39 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4eeb3971
7
8 app-emulation/dosemu: tweak to support non-bash '/bin/sh'
9
10 Package-Manager: portage-2.3.2
11
12 app-emulation/dosemu/dosemu-1.4.1_pre20091009.ebuild | 3 ++-
13 app-emulation/dosemu/dosemu-1.4.1_pre20130107-r3.ebuild | 3 ++-
14 app-emulation/dosemu/files/dosemu-1.4.1_pre20091009-dash.patch | 10 ++++++++++
15 3 files changed, 14 insertions(+), 2 deletions(-)
16
17 diff --git a/app-emulation/dosemu/dosemu-1.4.1_pre20091009.ebuild b/app-emulation/dosemu/dosemu-1.4.1_pre20091009.ebuild
18 index 8361552..5a56b8d 100644
19 --- a/app-emulation/dosemu/dosemu-1.4.1_pre20091009.ebuild
20 +++ b/app-emulation/dosemu/dosemu-1.4.1_pre20091009.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2015 Gentoo Foundation
23 +# Copyright 1999-2016 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 # $Id$
26
27 @@ -35,6 +35,7 @@ S="${WORKDIR}/${PN}"
28
29 src_compile() {
30 epatch "${FILESDIR}"/${P}-flex.patch #437074
31 + epatch "${FILESDIR}"/${P}-dash.patch
32
33 # Has problems with -O3 on some systems
34 replace-flags -O[3-9] -O2
35
36 diff --git a/app-emulation/dosemu/dosemu-1.4.1_pre20130107-r3.ebuild b/app-emulation/dosemu/dosemu-1.4.1_pre20130107-r3.ebuild
37 index 1021590..4f04b5d 100644
38 --- a/app-emulation/dosemu/dosemu-1.4.1_pre20130107-r3.ebuild
39 +++ b/app-emulation/dosemu/dosemu-1.4.1_pre20130107-r3.ebuild
40 @@ -1,4 +1,4 @@
41 -# Copyright 1999-2013 Gentoo Foundation
42 +# Copyright 1999-2016 Gentoo Foundation
43 # Distributed under the terms of the GNU General Public License v2
44 # $Id$
45
46 @@ -45,6 +45,7 @@ S="${WORKDIR}/${PN}-code-${COMMIT}"
47
48 src_prepare() {
49 epatch "${FILESDIR}"/${P}-fortify.patch
50 + epatch "${FILESDIR}"/${PN}-1.4.1_pre20091009-dash.patch
51
52 # Has problems with -O3 on some systems
53 replace-flags -O[3-9] -O2
54
55 diff --git a/app-emulation/dosemu/files/dosemu-1.4.1_pre20091009-dash.patch b/app-emulation/dosemu/files/dosemu-1.4.1_pre20091009-dash.patch
56 new file mode 100644
57 index 00000000..c48712e
58 --- /dev/null
59 +++ b/app-emulation/dosemu/files/dosemu-1.4.1_pre20091009-dash.patch
60 @@ -0,0 +1,10 @@
61 +Dash does not support 'echo -n' and breaks default config sourcing.
62 +diff --git a/default-configure b/default-configure
63 +index 9e4b78b..a749f63 100755
64 +--- a/default-configure
65 ++++ b/default-configure
66 +@@ -30,3 +30,3 @@ done
67 + CONF=`cat $CONF_FILE`
68 +-CONF=`echo -n "$CONF"| sed '/^config {/d' | sed '/^}/d' | tr '\n' ' ' `
69 ++CONF=`printf "%s" "$CONF"| sed '/^config {/d' | sed '/^}/d' | tr '\n' ' ' `
70 +