Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#35421 closed defect (fixed)

joe @ 3.7 installation failed

Reported by: pl1zahd@… Owned by: noses@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: mountainlion Cc: macports@…, macports@…, mp@…, drkp (Dan Ports), cooljeanius (Eric Gallager)
Port: joe

Description

The installation fails with command:

sed 's,@JOERC\@,/opt/local/etc/joe,; s,@JOEDOC\@,/opt/local/share/doc/joe,; s,@JOEDATA\@,/opt/local/share/joe,; s,@SPELL\@,ispell,; s,@BINDIR\@,/opt/local/bin,' ./joe.1.in > joe.1
sed: RE error: illegal byte sequence

See the main.log file attached.

OS Version: OS X 10.8 Mountain Lion
XCode: Version 4.4 (4F250)

Attachments (5)

main.log (20.0 KB) - added by pl1zahd@… 12 years ago.
Makefile-man (17.4 KB) - added by macports@… 12 years ago.
Makefile-man-ru (11.9 KB) - added by macports@… 12 years ago.
Makefile-rc (12.6 KB) - added by macports@… 12 years ago.
joe.tgz (70.0 KB) - added by macports@… 12 years ago.

Download all attachments as: .zip

Change History (18)

Changed 12 years ago by pl1zahd@…

Attachment: main.log added

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

Keywords: joe removed
Owner: changed from macports-tickets@… to noses@…

In the future, please Cc the port maintainer(s).

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

Cc: macports@… added

Has duplicate #35462.

Changed 12 years ago by macports@…

Attachment: Makefile-man added

Changed 12 years ago by macports@…

Attachment: Makefile-man-ru added

Changed 12 years ago by macports@…

Attachment: Makefile-rc added

Changed 12 years ago by macports@…

Attachment: joe.tgz added

comment:3 Changed 12 years ago by macports@…

Hi all, I made it work with a manual workaround...

I added the following line before each sed in three Makefiles (see below, change joerc.in to the actual file): "iconv -c -t UTF-8 $(srcdir)/joerc.in > $(srcdir)/joerc.in" Then it compiled OK, however, the resulting joe etc files was emty so I copied them from another system (Ubuntu 10.04) and it worked.

I attached the modified files to this post + a tgz archive of the joe configuration files.

Steps to make it work:

1) Download the three Makefiles + the joe.tgz file

2) port clean joe

3) port configure joe

4) cp Makefile-rc /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_joe/joe/work/joe-3.7/rc/Makefile

5) cp Makefile-man /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_joe/joe/work/joe-3.7/man/Makefile

6) cp Makefile-man-ru /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_joe/joe/work/joe-3.7/man/ru/Makefile

7) port build joe

8) port install joe

9) cd /opt/local/etc/joe/

10) rm *

11) tar zxvpf /path-to-joe.tgz/joe.tgz

Now it works! It this may be helpful to implement a permanent solution to this issue...

Regards; Henrik

comment:4 Changed 12 years ago by tobias@…

Another possible fix that worked for me was adding the following line to the Portfile (trunk/dports/editors/joe/Portfile) before installing joe: build.env LANG=C

comment:5 Changed 12 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:6 Changed 12 years ago by mp@…

Cc: mp@… added

Cc Me!

comment:7 Changed 12 years ago by info@…

I fixed it this way:

$ sudo port install joe
-- fails with error "sed: RE error: illegal byte sequence"
$ sudo su -
# export LANG=C
# cd /opt/local/var/macports/build/*_joe/joe/work/joe-*/
# make clean
# make
# make install
# exit
$ sudo port -f activate joe

comment:8 Changed 12 years ago by mp@…

The issue with sed being stricter about encodings in Mountain Lion has been part of many recent bug reports. See http://lists.macosforge.org/pipermail/macports-dev/2012-August/019993.html which is about the same problem underlying "reinplace..." calls in Portfiles.

build.env = C in the Portfile is another possibliity to fix it, and in some cases I have seen the "LANG=C" been added to the "sed ..." command invocation in the Portfile.

Who is responsible (has enough karma) to get this one closed and what would s/he need to do so?

comment:9 Changed 12 years ago by mp@…

I meant "build.env LANG=C" above

comment:10 Changed 12 years ago by drkp (Dan Ports)

Cc: dports@… added

Cc Me!

comment:11 Changed 12 years ago by drkp (Dan Ports)

Resolution: fixed
Status: newclosed

I added build.env LANG=C in r97034 (maintainer timeout).

I don't have a Mountain Lion system available to test on, so please reopen if that didn't work.

comment:12 Changed 12 years ago by macports@…

I tested and confirm that joe now installs on OS X Mountain Lion (10.8.1).

comment:13 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.