From 76c7094445082ee777a4980bfebf11501fcda63a Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Wed, 2 Mar 2016 16:10:12 +0900 Subject: Backported patch to fix gawk rules 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 --- nptl/tst-cancel-wrappers.sh | 2 +- scripts/sysd-rules.awk | 2 +- 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 ":"; -- cgit v1.2.1