After emerge openswan 2.3.1 the ipsec init-script crashes. Reproducible: Always Steps to Reproduce: 1. KEYWORDS="~x86" emerge openswan --> installs openswan version 2.3.1 2. /etc/init.d/ipsec start Actual Results: # /etc/init.d/ipsec start * Caching service dependencies ... [ ok ] * Starting IPSEC ... ... awk: cmd. line:100: default[""] = "" awk: cmd. line:100: ^ syntax error awk: cmd. line:205: for (i in default) awk: cmd. line:205: ^ syntax error awk: cmd. line:344: } else if (search in default) awk: cmd. line:344: ^ syntax error awk: cmd. line:348: default[search] = rest awk: cmd. line:348: ^ syntax error awk: cmd. line:349: else awk: cmd. line:349: ^ syntax error awk: cmd. line:410: if (name in default) awk: cmd. line:410: ^ syntax error awk: cmd. line:412: default[name] = value awk: cmd. line:412: ^ syntax error awk: cmd. line:484: for (name in default) awk: cmd. line:484: ^ syntax error awk: cmd. line:486: output(o_parm, name, default[name]) awk: cmd. line:486: ^ syntax error awk: cmd. line:488: if (default[search] in wanted) awk: cmd. line:488: ^ syntax error /usr/lib/ipsec/_include: line 100: 10569 Broken pipe awk 'BEGIN { wasfile = "" } FNR == 1 { print "" print "#<", FILENAME, 1 lineno = 0 wasfile = FILENAME } { lineno++ # lineno is now the number of this line } /^#[<>:]/ { next } /^include[ \t]+/ { orig = $0 sub(/[ \t]+#.*$/, "") if (NF != 2) { msg = "(" FILENAME ", line " lineno ")" msg = msg " include syntax error in \"" orig "\"" print "#:" msg exit 1 } newfile = $2 if (newfile !~ /^\// && FILENAME ~ /\//) { prefix = FILENAME sub("[^/]+$", "", prefix) newfile = prefix newfile } system("ipsec _include " newfile) print "" print "#>", FILENAME, lineno + 1 next } { print }' $* ipsec_setup: ipsec setup: /usr/lib/ipsec/_realsetup must be called by ipsec_setup Expected Results: something like * Starting ipsec ... [OK] I think there are some errors in the init script of ipsec.
*** This bug has been marked as a duplicate of 94681 ***