Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104556 - gawk-3.1.5 breaks openswan-2.2.0 init script
Summary: gawk-3.1.5 breaks openswan-2.2.0 init script
Status: RESOLVED DUPLICATE of bug 94681
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Jay Pfeifer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-02 00:18 UTC by Theo Nicolau
Modified: 2005-09-03 13:02 UTC (History)
0 users

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 Theo Nicolau 2005-09-02 00:18:40 UTC
after emerging gawk-3.1.5 I could not stop openswan and then I count not start it.

Reproducible: Always
Steps to Reproduce:
1./etc/init.d/ipsec start
2.
3.

Actual Results:  
awk: cmd. line:97:      default[""] = ""
awk: cmd. line:97:      ^ syntax error
awk: cmd. line:202:                     for (i in default)
awk: cmd. line:202:                               ^ syntax error
awk: cmd. line:341:     } else if (search in default)
awk: cmd. line:341:                          ^ syntax error
awk: cmd. line:345:                     default[search] = rest
awk: cmd. line:345:                     ^ syntax error
awk: cmd. line:346:             else
awk: cmd. line:346:             ^ syntax error
awk: cmd. line:407:     if (name in default)
awk: cmd. line:407:                 ^ syntax error
awk: cmd. line:409:     default[name] = value
awk: cmd. line:409:     ^ syntax error
awk: cmd. line:481:             for (name in default)
awk: cmd. line:481:                          ^ syntax error
awk: cmd. line:483:                             output(o_parm, name, default[name])
awk: cmd. line:483:                                                  ^ syntax error
awk: cmd. line:485:             if (default[search] in wanted)
awk: cmd. line:485:                 ^ syntax error
/usr/lib/ipsec/_include: line 100: 22459 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                                                               [ ok ]


donwgrading to gawk-3.1.3-r2 solved the problem.
Comment 1 SpanKY gentoo-dev 2005-09-03 13:02:05 UTC

*** This bug has been marked as a duplicate of 94681 ***