From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#18058: 24.3.92; OS X Emacs launcher script fail under 10.6 (or rather Ruby 1.8.7) Date: Sat, 19 Jul 2014 22:28:45 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bd6bb0e7ae69304fe91b8bf X-Trace: ger.gmane.org 1405801759 15489 80.91.229.3 (19 Jul 2014 20:29:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jul 2014 20:29:19 +0000 (UTC) To: 18058@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 19 22:29:10 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X8bFk-0003Pg-0L for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Jul 2014 22:29:08 +0200 Original-Received: from localhost ([::1]:55473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8bFj-0008CH-JN for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Jul 2014 16:29:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8bFf-0008CA-Pj for bug-gnu-emacs@gnu.org; Sat, 19 Jul 2014 16:29:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8bFe-0007an-S7 for bug-gnu-emacs@gnu.org; Sat, 19 Jul 2014 16:29:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8bFe-0007aj-Pc for bug-gnu-emacs@gnu.org; Sat, 19 Jul 2014 16:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X8bFe-0002lM-Dx for bug-gnu-emacs@gnu.org; Sat, 19 Jul 2014 16:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Jul 2014 20:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18058 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140580174010608 (code B ref -1); Sat, 19 Jul 2014 20:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Jul 2014 20:29:00 +0000 Original-Received: from localhost ([127.0.0.1]:59708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8bFa-0002l0-V8 for submit@debbugs.gnu.org; Sat, 19 Jul 2014 16:28:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38442) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8bFX-0002kl-Sl for submit@debbugs.gnu.org; Sat, 19 Jul 2014 16:28:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8bFR-0007ZS-CA for submit@debbugs.gnu.org; Sat, 19 Jul 2014 16:28:50 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8bFR-0007ZO-9Q for submit@debbugs.gnu.org; Sat, 19 Jul 2014 16:28:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8bFQ-000841-Am for bug-gnu-emacs@gnu.org; Sat, 19 Jul 2014 16:28:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8bFP-0007Z4-CR for bug-gnu-emacs@gnu.org; Sat, 19 Jul 2014 16:28:48 -0400 Original-Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:62170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8bFP-0007Yq-4L for bug-gnu-emacs@gnu.org; Sat, 19 Jul 2014 16:28:47 -0400 Original-Received: by mail-wi0-f180.google.com with SMTP id n3so2309444wiv.1 for ; Sat, 19 Jul 2014 13:28:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Mp8+KS73ZdYy3jdgkkhj7TwNbbP5/v4aRk3VRDzCtt0=; b=rCPv+TvO2XfGM6JelMXQ6lhgPwwkm54MbjhLD6PjMKeUVRFjetuTygFXf6p52iw9BB iNxHmPnjTtRrbiw60D4L2D7M/O5j3cdF7GlClaR/JC9NCYN/SJ/VNb0PLqb79O4X50Yf aMHsjBjh5aXz+hgrfPI0fFQkoOHqv/BfQ10AqfQVaGF0TiPa9MDQOQ2R200yPpM/ayOR v4riOUj+PUg2zJsHjksjbKh5QeQyF/cR13J+02ggAQsNDL/aORHAzc14O3ipyu2MbQ/g uXvYZt0QJyAwkmPZUG/gRs/YXx4tm1SJlo4Y50XSEk6x2u0fopNYyU8NQeIbJvMoYnNy WocQ== X-Received: by 10.194.185.113 with SMTP id fb17mr7702865wjc.117.1405801725616; Sat, 19 Jul 2014 13:28:45 -0700 (PDT) Original-Received: by 10.216.203.69 with HTTP; Sat, 19 Jul 2014 13:28:45 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91671 Archived-At: --047d7bd6bb0e7ae69304fe91b8bf Content-Type: text/plain; charset=UTF-8 Hi! The latest Emacs pretest (24.3.92) contains a Ruby wrapper script for launching one of a number of Emacs binaries. Unfortunately, the Ruby script doesn't work for Ruby 1.8.7, which is the Ruby installed on OS X 10.6. There are two problems: * Ruby 1.8.7 doesn't allow continued lines on the form (lines 12-15): ... { ...} .select { |...| ...} .last Joining them to a single long line will fix the problem. However, it will render the script unreadable -- I leave it to you to find a solution that both work and is readable. * There is no File.absolute_path (see line 21). There is one File.expand_path, using it seems to work, but I haven't checked if there are any subtle differences between them that matter. In addition, when running Emacs in the terminal the following warning is emitted: Warning: arch-dependent data dir `/Users/build/workspace/Emacs-Multi-Build/label/snow-leopard/emacs-source/nextstep/Emacs.app/Contents/MacOS/libexec/': No such file or directory Sincerely, Anders Lindgren --047d7bd6bb0e7ae69304fe91b8bf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

The latest Emacs pretest (24.3.92) = contains a Ruby wrapper script for launching one of a number of Emacs binar= ies.

Unfortunately, the Ruby script doesn't wo= rk for Ruby 1.8.7, which is the Ruby installed on OS X 10.6.

There are two problems:
=C2=A0 =C2=A0 =C2=A0*= Ruby 1.8.7 doesn't allow continued lines on the form (lines 12-15):
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ... { ...}
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0.select { |...| ...}
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0.last
=C2=A0 =C2=A0 =C2=A0 =C2=A0Joining them to a single long line will fix= the problem. However, it will render the script unreadable -- I leave it t= o you to find a solution that both work and is readable.

=C2=A0 =C2=A0 * There is no File.absolute_path (see line 21). There = is one File.expand_path, using it seems to work, but I haven't checked = if there are any subtle differences between them that matter.

In addition, when running Emacs in the terminal the fol= lowing warning is emitted:
=C2=A0 =C2=A0=C2=A0Warning: arch-depen= dent data dir `/Users/build/workspace/Emacs-Multi-Build/label/snow-leopard/= emacs-source/nextstep/Emacs.app/Contents/MacOS/libexec/': No such file = or directory

Sincerely,
=C2=A0 =C2=A0 Anders Lindgren

--047d7bd6bb0e7ae69304fe91b8bf--