# 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 <vapier@gentoo.org> lsof-4.88.ebuild:
+ Fix building with POSIX /bin/sh.
06 Dec 2014; Agostino Sarubbo <ago@gentoo.org> lsof-4.87-r1.ebuild:
Stable for ia64, wrt bug #529126
-# 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"
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:' \