From acd6fc7170d132051dd84efefad3b73b264cfe30 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 14 Apr 2015 22:49:18 +0000 Subject: Fix building with POSIX /bin/sh. --- sys-process/lsof/ChangeLog | 7 +++++-- sys-process/lsof/lsof-4.88.ebuild | 8 ++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'sys-process/lsof') diff --git a/sys-process/lsof/ChangeLog b/sys-process/lsof/ChangeLog index afe182ae8a3a..266a4b34a916 100644 --- a/sys-process/lsof/ChangeLog +++ b/sys-process/lsof/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-process/lsof -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v 1.109 2014/12/06 16:38:45 ago Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v 1.110 2015/04/14 22:49:18 vapier Exp $ + + 14 Apr 2015; Mike Frysinger lsof-4.88.ebuild: + Fix building with POSIX /bin/sh. 06 Dec 2014; Agostino Sarubbo lsof-4.87-r1.ebuild: Stable for ia64, wrt bug #529126 diff --git a/sys-process/lsof/lsof-4.88.ebuild b/sys-process/lsof/lsof-4.88.ebuild index b68a35892c43..87ef2c5032a3 100644 --- a/sys-process/lsof/lsof-4.88.ebuild +++ b/sys-process/lsof/lsof-4.88.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.88.ebuild,v 1.2 2014/11/21 08:11:37 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.88.ebuild,v 1.3 2015/04/14 22:49:18 vapier Exp $ EAPI="4" @@ -32,6 +32,10 @@ src_unpack() { src_prepare() { epatch "${FILESDIR}"/${PN}-4.85-cross.patch #432120 + # fix POSIX compliance with `echo` + sed -i \ + -e 's:echo -n:printf:' \ + AFSConfig Configure Customize Inventory tests/CkTestDB || die # convert `test -r header.h` into a compile test sed -i -r \ -e 's:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:' \ -- cgit v1.2.3-65-gdbad