From owner-svn-ports-head@freebsd.org Thu Feb 9 20:26:23 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3B39CD84A9; Thu, 9 Feb 2017 20:26:23 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B3476F53; Thu, 9 Feb 2017 20:26:23 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v19KQMbJ046647; Thu, 9 Feb 2017 20:26:22 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v19KQMT5046646; Thu, 9 Feb 2017 20:26:22 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201702092026.v19KQMT5046646@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Thu, 9 Feb 2017 20:26:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433771 - head/shells/ksh93/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2017 20:26:24 -0000 Author: marino Date: Thu Feb 9 20:26:22 2017 New Revision: 433771 URL: https://svnweb.freebsd.org/changeset/ports/433771 Log: shells/ksh93: Fix build with gcc5 The ksh93 build process requires the pre-GCC5 CPP newline behavior, which the -P argument provides by disabling line markers. This enables ksh93 to be built by gcc5 and later. Approved by: GCC blanket PR: 216707 (related) Added: head/shells/ksh93/files/patch-src_cmd_INIT_iffe.sh (contents, props changed) Added: head/shells/ksh93/files/patch-src_cmd_INIT_iffe.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/shells/ksh93/files/patch-src_cmd_INIT_iffe.sh Thu Feb 9 20:26:22 2017 (r433771) @@ -0,0 +1,20 @@ +--- src/cmd/INIT/iffe.sh.orig 2013-03-06 16:33:17 UTC ++++ src/cmd/INIT/iffe.sh +@@ -3414,7 +3414,7 @@ $src + (eval "$src") <&$nullin || e=1 + ;; + mac*|nomac*) +- if compile $cc -E $tmp.c <&$nullin >$tmp.i ++ if compile $cc -E -P $tmp.c <&$nullin >$tmp.i + then sed -e '/<<[ ]*".*"[ ]*>>/!d' -e 's/<<[ ]*"//g' -e 's/"[ ]*>>//g' $tmp.i + else e=1 + fi +@@ -3705,7 +3705,7 @@ $inc + <<\"#define $v\">> $v <<\"/* native $v */\">> + <<\"#endif\">> + #endif" > $tmp.c +- if compile $cc -E $tmp.c <&$nullin >$tmp.i ++ if compile $cc -E -P $tmp.c <&$nullin >$tmp.i + then sed -e '/<<[ ]*".*"[ ]*>>/!d' -e 's/<<[ ]*"//g' -e 's/"[ ]*>>//g' $tmp.i > $tmp.t + if test -s $tmp.t + then success