aboutsummaryrefslogtreecommitdiffstats
path: root/shells
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2017-02-10 04:26:22 +0800
committermarino <marino@FreeBSD.org>2017-02-10 04:26:22 +0800
commitabd029918e44d2cd64689e7e77cb06560f09cba6 (patch)
tree08629352a7d51ea9cd7532523adb2df400e2ce2b /shells
parent53f471b93c8b6722aa944f3ada975c90e682294e (diff)
downloadfreebsd-ports-gnome-abd029918e44d2cd64689e7e77cb06560f09cba6.tar.gz
freebsd-ports-gnome-abd029918e44d2cd64689e7e77cb06560f09cba6.tar.zst
freebsd-ports-gnome-abd029918e44d2cd64689e7e77cb06560f09cba6.zip
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)
Diffstat (limited to 'shells')
-rw-r--r--shells/ksh93/files/patch-src_cmd_INIT_iffe.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/shells/ksh93/files/patch-src_cmd_INIT_iffe.sh b/shells/ksh93/files/patch-src_cmd_INIT_iffe.sh
new file mode 100644
index 000000000000..73201de357ae
--- /dev/null
+++ b/shells/ksh93/files/patch-src_cmd_INIT_iffe.sh
@@ -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