Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Feb 2017 20:26:22 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r433771 - head/shells/ksh93/files
Message-ID:  <201702092026.v19KQMT5046646@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702092026.v19KQMT5046646>