The newer gawk-3.1.4-r4 ebuild breaks OpenSWAN (the older gawk-3.1.4-r4 here works fine). In particular, OpenSWAN prints out tons of syntax errors and I tracked it down to the following construct: gentoo:/home/user > gawk '{ default[""] = ""; }' gawk: ^ syntax error Older gawk ebuilds are fine and gawk doesn't complain. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110-hardenednopie, glibc-2.3.5-r0, 2.6.12-rc1-cs2 i686) ================================================================= System uname: 2.6.12-rc1-cs2 i686 AMD Athlon(tm) XP 3200+ Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo" LANG="de_DE@euro" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib acl acpi alsa apache2 apm avi berkdb bitmap-fonts crypt cups curl devmap droproot emboss encode fam foomaticdb fortran gd gdbm gif gnome gpm gtk gtk2 guile hardened idn imagemagick imap imlib ipv6 java jpeg junit kerberos ldap libg++ libgda libwww mad maildir mikmod mmx motif mp3 mpeg mysql ncurses nls nptl odbc oggvorbis opengl oss pam pdflib perl pic png postgres python qt quicktime readline samba sdl slang snmp spell sse ssl tcpd tetex tiff truetype truetype-fonts type1-fonts usb x86 xinerama xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Jay: Could you add the herd alias to metadata.xml, please? It does not match the herd name.
it's because we enabled switch functionality in gawk recently ... i imagine 'default' is a reserved label for use inside a switch statement
The OpenSWAN 2.4.0 developer release has renamed the variables so as soon as the final version is out it should work again. I'm sticking with an older gawk ebuild for now.
ok, we'll throw this back at openswan dev then
*** Bug 104556 has been marked as a duplicate of this bug. ***
*** Bug 104848 has been marked as a duplicate of this bug. ***
*** Bug 105070 has been marked as a duplicate of this bug. ***
*** Bug 105133 has been marked as a duplicate of this bug. ***
Created attachment 68200 [details, diff] Patch the ipsec files to work with gawk This is not a proper patch for the "files" section of openswan, but it works after the packages is built and installed.
Created attachment 68372 [details, diff] openswan-2.3.0-gawk-default.patch this patch is against openswan-2.3.0 source tree. it was tested on x86, with sys-apps/gawk-3.1.4-r4
*** Bug 107249 has been marked as a duplicate of this bug. ***
*** Bug 108572 has been marked as a duplicate of this bug. ***
Can you post the same patch for openswan-2.4.3? Thanks!
Created attachment 73178 [details, diff] openswan-2.4.3-gawk-default.patch This one is for openswan-2.4.3
openswan-2.4.4 is now in portage and should be free from gawk this gawk issue.