summaryrefslogtreecommitdiff
path: root/dev-db/virtuoso-server/files/virtuoso-opensource-6.1.4-gawk4.patch
diff options
context:
space:
mode:
authorMaciej Mrozowski <reavertm@gentoo.org>2011-11-24 01:59:15 +0100
committerMaciej Mrozowski <reavertm@gentoo.org>2011-11-24 01:59:15 +0100
commit99d4cdedfe9b8ab4cb93c2de181ada5468ab249f (patch)
tree4b0ae9f66792b0a9b4840b911f761c1c95f9aa06 /dev-db/virtuoso-server/files/virtuoso-opensource-6.1.4-gawk4.patch
parent546880aef313b8b16839557c2d81657a3533c706 (diff)
downloadkde-99d4cdedfe9b8ab4cb93c2de181ada5468ab249f.tar.gz
kde-99d4cdedfe9b8ab4cb93c2de181ada5468ab249f.tar.bz2
kde-99d4cdedfe9b8ab4cb93c2de181ada5468ab249f.zip
[dev-db/virtuoso-*] Move 6.1.4 to tree.
Diffstat (limited to 'dev-db/virtuoso-server/files/virtuoso-opensource-6.1.4-gawk4.patch')
-rw-r--r--dev-db/virtuoso-server/files/virtuoso-opensource-6.1.4-gawk4.patch86
1 files changed, 86 insertions, 0 deletions
diff --git a/dev-db/virtuoso-server/files/virtuoso-opensource-6.1.4-gawk4.patch b/dev-db/virtuoso-server/files/virtuoso-opensource-6.1.4-gawk4.patch
new file mode 100644
index 00000000000..6291907f7b0
--- /dev/null
+++ b/dev-db/virtuoso-server/files/virtuoso-opensource-6.1.4-gawk4.patch
@@ -0,0 +1,86 @@
+# HG changeset patch
+# Parent 3c7b74d47ca39768baf9d91bba40141bf111bc21
+# User Nico R. <n-roeser@gmx.net>
+# Date 1321439581 -3600
+
+Fix problems with GNU awk 4.0.
+Original patch taken from upstream CVS, and mechanism applied to all code parts
+where ‘gsub’ is used.
+
+
+diff --git a/binsrc/cached_resources/res_to_c.awk b/binsrc/cached_resources/res_to_c.awk
+--- a/binsrc/cached_resources/res_to_c.awk
++++ b/binsrc/cached_resources/res_to_c.awk
+@@ -30,7 +30,14 @@
+ }
+ {
+ fun = $0
+- gsub ( /\\/, "\\\\", fun)
++
++ q = "\\\\"
++ if (PROCINFO["version"] ~ /^4/)
++ gsub ( q, q q, fun)
++ else
++ gsub ( q, q, fun)
++ #WAS: gsub ( /\\/, "\\\\", fun)
++
+ gsub ( /"/, "\\\"", fun)
+ gsub ( /\$/, "\\044", fun)
+ gsub ( /.*/, "\"&\\n\",", fun)
+diff --git a/binsrc/hosting/perl/pl_to_c.awk b/binsrc/hosting/perl/pl_to_c.awk
+--- a/binsrc/hosting/perl/pl_to_c.awk
++++ b/binsrc/hosting/perl/pl_to_c.awk
+@@ -42,7 +42,14 @@
+ }
+
+ x = $0
+- gsub (/\\/, "\\\\", x)
++
++ q = "\\\\"
++ if (PROCINFO["version"] ~ /^4/)
++ gsub ( q, q q, x)
++ else
++ gsub ( q, q, x)
++ #WAS: gsub (/\\/, "\\\\", x)
++
+ gsub (/\"/, "\\\"", x)
+ print "\"" x "\\n\""
+ }
+diff --git a/binsrc/hosting/python/py_to_c.awk b/binsrc/hosting/python/py_to_c.awk
+--- a/binsrc/hosting/python/py_to_c.awk
++++ b/binsrc/hosting/python/py_to_c.awk
+@@ -48,7 +48,14 @@
+ }
+
+ x = $0
+- gsub (/\\/, "\\\\", x)
++
++ q = "\\\\"
++ if (PROCINFO["version"] ~ /^4/)
++ gsub ( q, q q, x)
++ else
++ gsub ( q, q, x)
++ #WAS: gsub (/\\/, "\\\\", x)
++
+ gsub (/\"/, "\\\"", x)
+ print "\"" x "\\n\""
+ }
+diff --git a/binsrc/ws/wsrm/xsd2sql.awk b/binsrc/ws/wsrm/xsd2sql.awk
+--- a/binsrc/ws/wsrm/xsd2sql.awk
++++ b/binsrc/ws/wsrm/xsd2sql.awk
+@@ -54,7 +54,14 @@
+ print " ses := string_output ();"
+ }
+ str = $0
+- gsub ( /\\/, "\\\\", str)
++
++ q = "\\\\"
++ if (PROCINFO["version"] ~ /^4/)
++ gsub ( q, q q, str)
++ else
++ gsub ( q, q, str)
++ #WAS: gsub ( /\\/, "\\\\", str)
++
+ gsub ( /'/, "\\'", str)
+
+ #