pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/check Don't escape newline and tab in regex, newer ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/440555c31f56
branches:  trunk
changeset: 383343:440555c31f56
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Aug 18 00:20:58 2022 +0000

description:
Don't escape newline and tab in regex, newer gawk complains.
Follows check-shlibs-elf.awk change from 2 years ago.

diffstat:

 mk/check/check-pie-elf.awk   |  6 +++---
 mk/check/check-relro-elf.awk |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r 2ee18a8e3d22 -r 440555c31f56 mk/check/check-pie-elf.awk
--- a/mk/check/check-pie-elf.awk        Thu Aug 18 00:19:34 2022 +0000
+++ b/mk/check/check-pie-elf.awk        Thu Aug 18 00:20:58 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-pie-elf.awk,v 1.2 2022/02/13 10:48:24 nia Exp $
+# $NetBSD: check-pie-elf.awk,v 1.3 2022/08/18 00:20:58 joerg Exp $
 #
 # Read a list of potential ELF binaries from stdin. For each, extract the list
 # of headers. There are four possibilities:
@@ -32,8 +32,8 @@
 function shquote(IN, out) {
        out = IN;
        gsub("\\\\", "\\\\", out);
-       gsub("\\\n", "\\n", out);
-       gsub("\\\t", "\\t", out);
+       gsub("\n", "\\n", out);
+       gsub("\t", "\\t", out);
        gsub(" ", "\\ ", out);
        gsub("'", "\\'", out);
        gsub("`", "\\`", out);
diff -r 2ee18a8e3d22 -r 440555c31f56 mk/check/check-relro-elf.awk
--- a/mk/check/check-relro-elf.awk      Thu Aug 18 00:19:34 2022 +0000
+++ b/mk/check/check-relro-elf.awk      Thu Aug 18 00:20:58 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-relro-elf.awk,v 1.3 2019/04/24 22:56:47 maya Exp $
+# $NetBSD: check-relro-elf.awk,v 1.4 2022/08/18 00:20:58 joerg Exp $
 #
 # Copyright (c) 2007 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
 # Copyright (c) 2017 Pierre Pronchery <khorben%NetBSD.org@localhost>.
@@ -42,8 +42,8 @@
 function shquote(IN, out) {
        out = IN;
        gsub("\\\\", "\\\\", out);
-       gsub("\\\n", "\\n", out);
-       gsub("\\\t", "\\t", out);
+       gsub("\n", "\\n", out);
+       gsub("\t", "\\t", out);
        gsub(" ", "\\ ", out);
        gsub("'", "\\'", out);
        gsub("`", "\\`", out);



Home | Main Index | Thread Index | Old Index