Opened 6 years ago

Closed 6 years ago

#58198 closed defect (worksforme)

avr-binutils @ 2.32 patching error on snowleopard

Reported by: chrisjohgorman (Chris Gorman) Owned by: g5pw (Aljaž Srebrnič)
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: snowleopard Cc: chrisjohgorman (Chris Gorman)
Port: avr-binutils

Description

When I run sudo port -v install avr-binutils I get the following error.

--->  Patching Makefile.in: s/[[:<:]]as\.(info|texi)/avr-&/g
/usr/bin/sed: -e expression #1, char 32: Invalid character class name
Error: reinplace: child process exited abnormally
Error: Failed to patch avr-binutils: reinplace sed(1) failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_avr-binutils/avr-binutils/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port avr-binutils failed

Upon examination, I found the following block from crossbinutils-1.0.tcl fails to run properly on my machine.

            # Fix Makefile
            reinplace -q -E \
                s/\[\[:<:\]\]${page}\\.(info|texi)/${crossbinutils.target}-&/g \
                ${worksrcpath}/${dir}/Makefile.in
  

Attachments (1)

ticket-main.log (75.2 KB) - added by chrisjohgorman (Chris Gorman) 6 years ago.
main.log of avr-binutils

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by chrisjohgorman (Chris Gorman)

Attachment: ticket-main.log added

main.log of avr-binutils

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Cc: g5pw@… removed
Keywords: avr-binutils snowleopard removed
Owner: set to g5pw
Status: newassigned

comment:2 Changed 6 years ago by mf2k (Frank Schima)

Keywords: snowleopard added

comment:3 Changed 6 years ago by chrisjohgorman (Chris Gorman)

Found the culprit by accident. My sed was a symlink to a gsed. When the reinplace ran it returned an error. To fix this I copied a sed from the osx install disk and the error is gone. Suggest closing this.

comment:4 Changed 6 years ago by g5pw (Aljaž Srebrnič)

Resolution: worksforme
Status: assignedclosed

Ok, I'm glad you figured it out! Unfortunately I do not have Snow Leopard machines on which to test :/

Note: See TracTickets for help on using tickets.