This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[PATCH] Run gawk on config/known-dwarf.awk.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 31 Oct 2011 15:36:46 +0100
- Subject: [PATCH] Run gawk on config/known-dwarf.awk.
Hi,
I found myself on a system where the system awk wasn't gawk. sigh. Since
config/known-dwarf.awk uses some GNU extensions I was a little puzzled
for some time why things were failing (in maintainer-mode). Instead of
trying to make this work on all awk versions out there I think we should
just require running gawk on it instead. Like is already done for some
other scripts in elfutils. Unless someone complains this is wrong I
would like to install the attached patch to make it so.
Thanks,
Mark
From b5e6a8dad8427437887dce6ce4ed76bcf39dabac Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mjw@redhat.com>
Date: Mon, 31 Oct 2011 15:01:50 +0100
Subject: [PATCH] Run gawk on config/known-dwarf.awk.
---
config/ChangeLog | 4 ++++
config/known-dwarf.awk | 2 +-
libdw/ChangeLog | 4 ++++
libdw/Makefile.am | 2 +-
4 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/config/ChangeLog b/config/ChangeLog
index a9992c8..5126d14 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-31 Mark Wielaard <mjw@redhat.com>
+
+ * known-dwarf.awk: Use gawk.
+
2010-07-02 Ulrich Drepper <drepper@redhat.com>
* elfutils.spec.in: Add more BuildRequires.
diff --git a/config/known-dwarf.awk b/config/known-dwarf.awk
index 3089dd2..bd7f026 100644
--- a/config/known-dwarf.awk
+++ b/config/known-dwarf.awk
@@ -1,4 +1,4 @@
-#!/bin/awk -f
+#!/bin/gawk -f
$1 == "enum" { set = ""; next }
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 1a09b33..cfc5c89 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,3 +1,7 @@
+2011-11-31 Mark Wielaard <mjw@redhat.com>
+
+ * Makefile.am (known-dwarf.h): Run gawk on config/known-dwarf.awk.
+
2011-07-14 Mark Wielaard <mjw@redhat.com>
* libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.
diff --git a/libdw/Makefile.am b/libdw/Makefile.am
index 598bdd1..1efda35 100644
--- a/libdw/Makefile.am
+++ b/libdw/Makefile.am
@@ -90,7 +90,7 @@ if MAINTAINER_MODE
BUILT_SOURCES = $(srcdir)/known-dwarf.h
MAINTAINERCLEANFILES = $(srcdir)/known-dwarf.h
$(srcdir)/known-dwarf.h: $(top_srcdir)/config/known-dwarf.awk $(srcdir)/dwarf.h
- $(AWK) -f $^ > $@.new
+ gawk -f $^ > $@.new
mv -f $@.new $@
endif
--
1.7.4.4