Fix building with POSIX /bin/sh.
authorMike Frysinger <vapier@gentoo.org>
Tue, 14 Apr 2015 22:49:18 +0000 (22:49 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 14 Apr 2015 22:49:18 +0000 (22:49 +0000)
sys-process/lsof/ChangeLog
sys-process/lsof/lsof-4.88.ebuild

index afe182ae8a3a1aa104cf8b6ca3f7a2b57e2f8679..266a4b34a916a2964594df484a15eb3590d86b24 100644 (file)
@@ -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 <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
index b68a35892c43fa4e18fd0018f4278a12aa3a6544..87ef2c5032a38ed542a06ce3590bd29de247b0fe 100644 (file)
@@ -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:' \