Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455436 - sys-devel/automake-wrapper-8 breaks with awk != gawk (eg bsd systems)
Summary: sys-devel/automake-wrapper-8 breaks with awk != gawk (eg bsd systems)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-04 13:56 UTC by Alexis Ballier
Modified: 2013-06-23 04:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2013-02-04 13:56:32 UTC
***** aclocal *****
***** PWD: /var/tmp/portage/net-libs/gnutls-3.1.6/work/gnutls-3.1.6
***** aclocal -I m4 -I gl/m4 -I src/libopts/m4

am-wrapper: aclocal: warning: could not locate installed version for WANT_AUTOMAKE='1.11.6'; ignoring
awk: syntax error at source line 1
 context is
        { if (match($0, "^# Makefile.in generated (automatically )?by automake >>>  ([0-9].[0-9]+)", <<<
awk: illegal statement at source line 1
awk: syntax error at source line 1
awk: syntax error at source line 1
 context is
        { if (match($0, "generated automatically by aclocal >>>  ([0-9].[0-9]+)", <<<
awk: illegal statement at source line 1
awk: syntax error at source line 1
awk: syntax error at source line 1
 context is
        { if (match($0, >>>  "[[:space:]]*\\[?AM_AUTOMAKE_VERSION\\(\\[?([0-9].[0-9]+)[^)]*\\]?\\)", <<<
awk: illegal statement at source line 1
awk: syntax error at source line 1
configure.ac:30: error: 'AM_CONFIG_HEADER': this macro is obsolete.
    You should use the 'AC_CONFIG_HEADERS' macro instead.
/usr/share/aclocal-1.13/obsolete-err.m4:12: AM_CONFIG_HEADER is expanded from...
configure.ac:30: the top level
autom4te-2.69: /usr/bin/gm4 failed with exit status: 1
aclocal-1.13: error: echo failed with exit status: 1
~
Comment 1 Alexis Ballier gentoo-dev 2013-02-04 14:00:06 UTC
+  04 Feb 2013; Alexis Ballier <aballier@gentoo.org> files/am-wrapper-8.sh:
+  Call gawk as before since GNU awk is required and breaks with e.g. BSD awk.
+  Bug #455436
+


Index: files/am-wrapper-8.sh
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/files/am-wrapper-8.sh,v
retrieving revision 1.1
diff -u -B -r1.1 am-wrapper-8.sh
--- files/am-wrapper-8.sh	2 Jan 2013 07:40:04 -0000	1.1
+++ files/am-wrapper-8.sh	4 Feb 2013 13:58:48 -0000
@@ -128,7 +128,7 @@
 do_awk() {
 	local file=$1 ; shift
 	local arg=$1 ; shift
-	local v=$(awk "{ if (match(\$0, \"$*\", res)) { print res[${arg}]; exit } }" "${file}")
+	local v=$(gawk "{ if (match(\$0, \"$*\", res)) { print res[${arg}]; exit } }" "${file}")
 	case " ${auto_vers} " in
 	*" ${v} "*) ;;
 	*) auto_vers="${auto_vers:+${auto_vers} }${v}" ;;
Comment 2 SpanKY gentoo-dev 2013-06-23 04:52:05 UTC
(In reply to Alexis Ballier from comment #1)

that defeats the point of the change in the first place -- to not rely on gawk.  i've rewritten the code a bit in automake-wrapper-9 to fix it properly.