aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2012-06-15 18:31:50 +0800
committerfjoe <fjoe@FreeBSD.org>2012-06-15 18:31:50 +0800
commit14b3355cb78941b921f0704f9e747ed69b08a403 (patch)
tree9974cd74d309361e46d8a9eef3ca8e8161ee0d3f /databases
parentfe16fd6bfff8da18084865d49dd21a9f680face9 (diff)
downloadfreebsd-ports-gnome-14b3355cb78941b921f0704f9e747ed69b08a403.tar.gz
freebsd-ports-gnome-14b3355cb78941b921f0704f9e747ed69b08a403.tar.zst
freebsd-ports-gnome-14b3355cb78941b921f0704f9e747ed69b08a403.zip
Fix build with gawk 4.0.1.
Submitted by: Patrick van Kleef Obtained from: upstream (fixed in upcoming virtuoso 6.1.6)
Diffstat (limited to 'databases')
-rw-r--r--databases/virtuoso/files/patch-gawk-4.0.diff37
1 files changed, 37 insertions, 0 deletions
diff --git a/databases/virtuoso/files/patch-gawk-4.0.diff b/databases/virtuoso/files/patch-gawk-4.0.diff
new file mode 100644
index 000000000000..139cc3782018
--- /dev/null
+++ b/databases/virtuoso/files/patch-gawk-4.0.diff
@@ -0,0 +1,37 @@
+Index: binsrc/cached_resources/res_to_c.awk
+diff -u binsrc/cached_resources/res_to_c.awk:1.2.4.1 binsrc/cached_resources/res_to_c.awk:1.2.4.2
+--- binsrc/cached_resources/res_to_c.awk:1.2.4.1 Thu Sep 8 16:13:20 2011
++++ binsrc/cached_resources/res_to_c.awk Thu Mar 8 15:09:50 2012
+@@ -30,13 +30,7 @@
+ }
+ {
+ fun = $0
+- # was: gsub ( /\\/, "\\\\", fun)
+- q = "\\\\"
+- if (PROCINFO["version"] ~ /^4/)
+- gsub ( q, q q, fun)
+- else
+- gsub ( q, q, fun)
+-
++ gsub ( "\\\\", "&&", fun)
+ gsub ( /"/, "\\\"", fun)
+ gsub ( /\$/, "\\044", fun)
+ gsub ( /.*/, "\"&\\n\",", fun)
+Index: libsrc/Wi/sql_to_c.awk
+diff -u libsrc/Wi/sql_to_c.awk:1.51.2.9 libsrc/Wi/sql_to_c.awk:1.51.2.10
+--- libsrc/Wi/sql_to_c.awk:1.51.2.9 Mon Sep 12 16:29:43 2011
++++ libsrc/Wi/sql_to_c.awk Thu Mar 8 15:09:50 2012
+es escape the symbols
+ fun = $0
+- q = "\\\\"
+- if (PROCINFO["version"] ~ /^4/)
+- gsub ( q, q q, fun)
+- else
+- gsub ( q, q, fun)
+-
+- #WAS: gsub ( /\\/, "\\\\", fun)
++ gsub ("\\\\", '&&', fun)
+
+ # remove whitespace except when there is just a semicolon
+ if ((in_xsl_mode == 0) && (in_xsd_mode == 0))
+