[MacPorts] #35610: dsh fails with "sed: RE error: illegal byte sequence"
#35610: dsh fails with "sed: RE error: illegal byte sequence" ---------------------------------+------------------------------------------ Reporter: bruce@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: dsh ---------------------------------+------------------------------------------ {{{ :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 }}} -- Ticket URL: <https://trac.macports.org/ticket/35610> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35610: dsh fails with "sed: RE error: illegal byte sequence" ---------------------------------+------------------------------------------ Reporter: bruce@… | Owner: bjorn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountain lion | Port: dsh ---------------------------------+------------------------------------------ Changes (by ciserlohn@…): * cc: bruce@… (removed) * keywords: => mountain lion * owner: macports-tickets@… => bjorn@… Comment: 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/35610#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35610: dsh fails with "sed: RE error: illegal byte sequence" ---------------------------------+------------------------------------------ Reporter: bruce@… | Owner: bjorn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountain lion | Port: dsh ---------------------------------+------------------------------------------ Comment(by pavel.boiko@…): Same thing on my side. Both commands didn't help -- Ticket URL: <https://trac.macports.org/ticket/35610#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35610: dsh fails with "sed: RE error: illegal byte sequence" ---------------------------------+------------------------------------------ Reporter: bruce@… | Owner: bjorn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountain lion | Port: dsh ---------------------------------+------------------------------------------ Comment(by bernddorn@…): Replying to [comment:2 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/35610#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35610: dsh fails with "sed: RE error: illegal byte sequence" ---------------------------------+------------------------------------------ Reporter: bruce@… | Owner: bjorn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountain lion | Port: dsh ---------------------------------+------------------------------------------ Comment(by ciserlohn@…): Could you try? {{{ $ LC_ALL=C sudo port install dsh }}} -- Ticket URL: <https://trac.macports.org/ticket/35610#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35610: dsh fails with "sed: RE error: illegal byte sequence" ---------------------------------+------------------------------------------ Reporter: bruce@… | Owner: bjorn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountain lion | Port: dsh ---------------------------------+------------------------------------------ Comment(by pavel.boiko@…): same error -- Ticket URL: <https://trac.macports.org/ticket/35610#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35610: dsh fails with "sed: RE error: illegal byte sequence" ---------------------------------+------------------------------------------ Reporter: bruce@… | Owner: bjorn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountain lion | Port: dsh ---------------------------------+------------------------------------------ Comment(by bernddorn@…): Replying to [comment:6 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: https://trac.macports.org/changeset/96676 -- Ticket URL: <https://trac.macports.org/ticket/35610#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35610: dsh fails with "sed: RE error: illegal byte sequence" ---------------------------------+------------------------------------------ Reporter: bruce@… | Owner: bjorn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountain lion | Port: dsh ---------------------------------+------------------------------------------ Comment(by ciserlohn@…): Replying to [comment:8 bernddorn@…]:
Replying to [comment:6 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: https://trac.macports.org/changeset/96676
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.[[BR]] 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.[[BR]] The suggestions I made in my previous comments ([comment:3] [comment:6]) do essentially the same thing. -- Ticket URL: <https://trac.macports.org/ticket/35610#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35610: dsh fails with "sed: RE error: illegal byte sequence" ----------------------+--------------------------- Reporter: bruce@… | Owner: bjorn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountain lion Port: dsh | ----------------------+--------------------------- Comment (by bruce@…): Anyone made any progress on this? Thanks. -- Ticket URL: <https://trac.macports.org/ticket/35610#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35610: dsh fails with "sed: RE error: illegal byte sequence" ----------------------+--------------------------- Reporter: bruce@… | Owner: bjorn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountain lion Port: dsh | ----------------------+--------------------------- Comment (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! -- Ticket URL: <https://trac.macports.org/ticket/35610#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35610: dsh fails with "sed: RE error: illegal byte sequence" ----------------------+-------------------------- Reporter: bruce@… | Owner: bjorn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountainlion Port: dsh | ----------------------+-------------------------- Changes (by jmr@…): * keywords: mountain lion => mountainlion Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/35610#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35610: dsh fails with "sed: RE error: illegal byte sequence" ----------------------+-------------------------- Reporter: bruce@… | Owner: bjorn@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: mountainlion Port: dsh | ----------------------+-------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: jmr fixed this in r98355. -- Ticket URL: <https://trac.macports.org/ticket/35610#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts