Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#25486 closed defect (invalid)

sed error when installing swig

Reported by: jjstickel@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: reinplace sed Cc: kevin@…, jyrkiwahlstedt, ryandesign (Ryan Carsten Schmidt)
Port: swig

Description

I get the following when trying to install swig:

sudo port -ud upgrade swig
...
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_devel_swig/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/swig/swig-2.0.0.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
DEBUG: patch phase started at Thu Jul  1 08:04:07 MDT 2010
DEBUG: Executing org.macports.patch (swig)
DEBUG: Executing proc-post-org.macports.patch-patch-0
DEBUG: /usr/local/bin/sed: -e expression #1, char 26: Invalid character class name
    while executing
"exec /usr/local/bin/sed {s/[[:<:]]sed[[:>:]]/gsed/g} < /opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_dev..."
    ("eval" body line 1)
    invoked from within
"eval exec $cmdline"
Error: reinplace: /usr/local/bin/sed: -e expression #1, char 26: Invalid character class name
Error: Target org.macports.patch returned: reinplace sed(1) failed
DEBUG: Backtrace: reinplace sed(1) failed

Looks like the reinplace line of the Portfile needs work.

Thanks, Jonathan

Change History (3)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

WFM. /usr/local/bin/sed is unsupported.

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: invalid
Status: newclosed

Right. Please remove /usr/local/bin/sed and ideally anything else you have in /usr/local, clean the affected port (i.e. "sudo port clean swig") and try again.

comment:3 Changed 14 years ago by jjstickel@…

My apologies. I kept a convenience symlink /usr/local/bin/sed -> /opt/local/bin/gsed which apparently caused a problem here.

Note: See TracTickets for help on using tickets.