mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
app-emulation/dosemu: tweak to support non-bash '/bin/sh'
Package-Manager: portage-2.3.2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
@@ -35,6 +35,7 @@ S="${WORKDIR}/${PN}"
|
||||
|
||||
src_compile() {
|
||||
epatch "${FILESDIR}"/${P}-flex.patch #437074
|
||||
epatch "${FILESDIR}"/${P}-dash.patch
|
||||
|
||||
# Has problems with -O3 on some systems
|
||||
replace-flags -O[3-9] -O2
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
@@ -45,6 +45,7 @@ S="${WORKDIR}/${PN}-code-${COMMIT}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-fortify.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.4.1_pre20091009-dash.patch
|
||||
|
||||
# Has problems with -O3 on some systems
|
||||
replace-flags -O[3-9] -O2
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
Dash does not support 'echo -n' and breaks default config sourcing.
|
||||
diff --git a/default-configure b/default-configure
|
||||
index 9e4b78b..a749f63 100755
|
||||
--- a/default-configure
|
||||
+++ b/default-configure
|
||||
@@ -30,3 +30,3 @@ done
|
||||
CONF=`cat $CONF_FILE`
|
||||
-CONF=`echo -n "$CONF"| sed '/^config {/d' | sed '/^}/d' | tr '\n' ' ' `
|
||||
+CONF=`printf "%s" "$CONF"| sed '/^config {/d' | sed '/^}/d' | tr '\n' ' ' `
|
||||
|
||||
Reference in New Issue
Block a user