#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)
Change History (17)
Changed 12 years ago by bruce@…
comment:1 Changed 12 years ago by bruce@…
Cc: | bruce@… added |
---|
comment:2 follow-ups: 4 5 Changed 12 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:5 Changed 12 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=Cor
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 follow-ups: 7 8 Changed 12 years ago by ci42
Could you try?
$ LC_ALL=C sudo port install dsh
comment:8 follow-up: 10 Changed 12 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
comment:10 Changed 12 years ago by ci42
Replying to bernddorn@…:
Replying to ciserlohn@…:
Could you try?
$ LC_ALL=C sudo port install dshstill the same error after doing
sudo port selfupdate sudo port clean dsh LC_ALL=C sudo port install dshbtw: 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.
comment:13 Changed 12 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 12 years ago by jmroot (Joshua Root)
Keywords: | mountainlion added; mountain lion removed |
---|
comment:15 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
jmr fixed this in r98355.
Cc Me!