Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#35610 closed defect (fixed)

dsh fails with "sed: RE error: illegal byte sequence"

Reported by: bruce@… Owned by: bjorn@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: mountainlion Cc: ci42, bernddorn@…, bruce@…, cooljeanius (Eric Gallager)
Port: dsh

Description

:info:destroot 	done
:info:destroot sed: RE error: illegal byte sequence
:info:destroot sed: RE error: illegal byte sequence
:info:destroot make[2]: *** [install-data-local] Error 1
:info:destroot make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_dsh/dsh/work/dsh-0.25.9'
:info:destroot make[1]: *** [install-am] Error 2
:info:destroot make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_dsh/dsh/work/dsh-0.25.9'
:info:destroot make: *** [install-recursive] Error 1
:info:destroot make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_dsh/dsh/work/dsh-0.25.9'
:info:destroot Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_dsh/dsh/work/dsh-0.25.9" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_dsh/dsh/work/destroot 
:info:destroot Exit code: 2
:error:destroot org.macports.destroot for port dsh returned: command execution failed
:debug:destroot Error code: CHILDSTATUS 74600 2
:debug:destroot Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec destroot"
    (procedure "portdestroot::destroot_main" line 2)
    invoked from within
"$procedure $targetname"
:info:destroot Warning: targets not executed for dsh: org.macports.activate org.macports.destroot org.macports.install
:notice:destroot Please see the log file for port dsh for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_dsh/dsh/main.log

Attachments (1)

main.log (46.6 KB) - added by bruce@… 9 years ago.

Download all attachments as: .zip

Change History (17)

Changed 9 years ago by bruce@…

Attachment: main.log added

comment:1 Changed 9 years ago by bruce@…

Cc: bruce@… added

Cc Me!

comment:2 Changed 9 years ago by ci42

Cc: bruce@… removed
Keywords: mountain lion added
Owner: changed from macports-tickets@… to bjorn@…

This is a common problem we're seeing with Mountain Lion's version of sed. It happens when sed is asked to replace characters in a file which has a strange character encoding. The solution is to tell sed to assume the C locale.

As a workaround try:

sudo port install dsh destroot.env LANG=C

or

sudo port install dsh destroot.env LC_CTYPE=C

comment:3 Changed 9 years ago by ci42

Cc: ciserlohn@… added

Cc Me!

comment:4 in reply to:  2 Changed 9 years ago by pavel.boiko@…

Same thing on my side. Both commands didn't help

comment:5 in reply to:  2 Changed 9 years ago by bernddorn@…

Replying to ciserlohn@…:

This is a common problem we're seeing with Mountain Lion's version of sed. It happens when sed is asked to replace characters in a file which has a strange character encoding. The solution is to tell sed to assume the C locale.

As a workaround try:

sudo port install dsh destroot.env LANG=C

or

sudo port install dsh destroot.env LC_CTYPE=C

does not work either, still the same sed error

$: grep error:   /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_dsh/dsh/main.log
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
:info:destroot sed: RE error: illegal byte sequence
:info:destroot sed: RE error: illegal byte sequence
:error:destroot org.macports.destroot for port dsh returned: command execution failed

comment:6 Changed 9 years ago by ci42

Could you try?

$ LC_ALL=C sudo port install dsh

comment:7 in reply to:  6 Changed 9 years ago by pavel.boiko@…

same error

comment:8 in reply to:  6 ; Changed 9 years ago by bernddorn@…

Replying to ciserlohn@…:

Could you try?

$ LC_ALL=C sudo port install dsh

still the same error after doing

sudo port selfupdate
sudo port clean dsh
 LC_ALL=C sudo port install dsh

btw: i've seen that other ports have been modified to fix this issue, though i dunno if this is required for the dsh port e.g: r96676

Last edited 8 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:9 Changed 9 years ago by bernddorn@…

Cc: bernddorn@… added

Cc Me!

comment:10 in reply to:  8 Changed 9 years ago by ci42

Replying to bernddorn@…:

Replying to ciserlohn@…:

Could you try?

$ LC_ALL=C sudo port install dsh

still the same error after doing

sudo port selfupdate
sudo port clean dsh
 LC_ALL=C sudo port install dsh

btw: i've seen that other ports have been modified to fix this issue, though i dunno if this is required for the dsh port e.g: r96676

This fix as well as the various other fixes regarding this issues can't be applied here. They modify the usage of the macports reinplace command which the dsh port doesn't use.
See http://lists.macosforge.org/pipermail/macports-dev/2012-August/019993.html for an explanation.

However, the reinplace command uses sed under the hood and therefore yielding the same issue. The aforementioned fix tells the reinplace command to set LC_CTYPE=C before invoking sed.
The suggestions I made in my previous comments (3 6) do essentially the same thing.

Last edited 8 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:11 Changed 9 years ago by bruce@…

Cc: bruce@… added

Cc Me!

comment:12 Changed 9 years ago by bruce@…

Anyone made any progress on this? Thanks.

comment:13 Changed 9 years ago by chris.cinelli@…

Please fix THIS. port selfupgrade and port update outdated broke everything for me. You do not have 300 comments here just because you need to register to comment. There are a few people that are having problems with this!

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

Keywords: mountainlion added; mountain lion removed

JFYI, comment:2 uses incorrect syntax for setting options from the command line, and the suggestion in comment:6 won't work because both sudo and port mostly ignore your environment.

comment:15 Changed 8 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed

jmr fixed this in r98355.

comment:16 Changed 8 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.