summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-03-02 16:10:12 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-03-03 15:10:25 +0900
commit76c7094445082ee777a4980bfebf11501fcda63a (patch)
tree53fb4b0da6822d0fe338907919f8f5b944e2a864
parent84c871f70e71b6435ad4beea851e74c423c667eb (diff)
downloadglibc-76c7094445082ee777a4980bfebf11501fcda63a.tar.gz
Backported patch to fix gawk rulesbaserock/tristan/wip/aboriginal
gawk behavioral change now causes existing gawk stuff to error instead of ignore the problem. Patch applied from: https://www.sourceware.org/ml/libc-alpha/2015-08/msg00269.html
-rw-r--r--nptl/tst-cancel-wrappers.sh2
-rw-r--r--scripts/sysd-rules.awk2
2 files changed, 2 insertions, 2 deletions
diff --git a/nptl/tst-cancel-wrappers.sh b/nptl/tst-cancel-wrappers.sh
index b2d8302654..d492a541d3 100644
--- a/nptl/tst-cancel-wrappers.sh
+++ b/nptl/tst-cancel-wrappers.sh
@@ -74,7 +74,7 @@ C["__xpg_sigpause"]=1
seen=""
seen_enable=""
seen_disable=""
- object=gensub(/^.*\[(.*)\]:$/,"\\1","",$0)
+ object=gensub(/^.*\[(.*)\]:$/, "\\1", 1, $0)
next
}
{
diff --git a/scripts/sysd-rules.awk b/scripts/sysd-rules.awk
index cc143345c6..cebc9d3e1b 100644
--- a/scripts/sysd-rules.awk
+++ b/scripts/sysd-rules.awk
@@ -53,7 +53,7 @@ BEGIN {
if (target_pattern == "%") {
command_suffix = "";
} else {
- prefix = gensub(/%/, "", "", target_pattern);
+ prefix = gensub(/%/, "", 1, target_pattern);
command_suffix = " $(" prefix "CPPFLAGS)";
}
target = "$(objpfx)" target_pattern o ":";