GNU bug report logs - #12123
relocatable installation

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Glenn Morris <rgm@HIDDEN>; dated Thu, 2 Aug 2012 17:06:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 12123 <at> debbugs.gnu.org:


Received: (at 12123) by debbugs.gnu.org; 8 Apr 2013 02:48:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 07 22:48:05 2013
Received: from localhost ([127.0.0.1]:39167 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UP27p-00077d-89
	for submit <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:48:05 -0400
Received: from mtaout23.012.net.il ([80.179.55.175]:63928)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1UP27m-00077G-Ip
	for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:48:03 -0400
Received: from conversion-daemon.a-mtaout23.012.net.il by
	a-mtaout23.012.net.il (HyperSendmail v2007.08) id
	<0MKX005000KL8E00@HIDDEN> for
	12123 <at> debbugs.gnu.org; Mon, 08 Apr 2013 05:44:31 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0MKX005670Y77G20@HIDDEN>;
	Mon, 08 Apr 2013 05:44:31 +0300 (IDT)
Date: Mon, 08 Apr 2013 05:44:39 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#12123:
In-reply-to: <828v4tok6m.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Glenn Morris <rgm@HIDDEN>
Message-id: <83y5ctbv1k.fsf@HIDDEN>
References: <probmtut73.fsf@HIDDEN>
	<1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
	<83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN>
	<83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN>
	<83r4incb9b.fsf@HIDDEN> <2xfvz2i430.fsf@HIDDEN>
	<8338v2cg93.fsf@HIDDEN> <831uamcelo.fsf@HIDDEN>
	<828v4tok6m.fsf@HIDDEN>
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 12123
Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, eggert@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> From: Glenn Morris <rgm@HIDDEN>
> Cc: 12123 <at> debbugs.gnu.org,  yandros@HIDDEN,  eggert@HIDDEN
> Date: Sun, 07 Apr 2013 22:00:49 -0400
> 
> Eli Zaretskii wrote:
> 
> > Btw, even if these conditions _are_ true, I still don't see how can we
> > find /usr/libexec/emacs/VERSION/CONFIG/, /usr/share/emacs/VERSION/lisp/
> > using the fact that Emacs was invoked from /usr/bin/.  Which part of
> > the code knows about VERSION and CONFIG part and looks for them?  All I
> > see is that we look for lib-src and etc, but that's only good to detect
> > that we are being run from the build directory, not from where we are
> > installed.  What am I missing?
> 
> Well yes, that's the point of this report. No-one has implemented a
> relocatable Emacs installation for general POSIX platforms. Solving
> those problems is part of it. A relocatable Emacs would not be installed
> as you describe above, it would (I imagine) be installed similar to the
> way the NS build is, under a single top-level directory.

The example above is still under a single top-level directory, called
'/usr' (a.k.a. ${prefix}).  Relocating just means changing ${prefix}
after Emacs was built.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12123; Package emacs. Full text available.

Message received at 12123 <at> debbugs.gnu.org:


Received: (at 12123) by debbugs.gnu.org; 8 Apr 2013 02:06:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 07 22:06:11 2013
Received: from localhost ([127.0.0.1]:39117 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UP1TG-00064C-VR
	for submit <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:06:11 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:42364)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1UP1TE-000643-Ig
	for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:06:09 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1UP1Pq-0000Lj-1g; Sun, 07 Apr 2013 22:02:38 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#12123:
References: <probmtut73.fsf@HIDDEN>
	<1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
	<83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN>
	<83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN>
	<83r4incb9b.fsf@HIDDEN> <2xfvz2i430.fsf@HIDDEN>
	<8338v2cg93.fsf@HIDDEN>
X-Spook: bank bomb Blowpipe Israel Perl-RSA $400 million in gold
X-Ran: @ym`?V!2?,W#>^bcOp?BlX\@85FSXm.>1xa/5<Pl'X:2@/Q+\3@k)GbB78)DIu~]&y1zlr
X-Hue: green
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Sun, 07 Apr 2013 22:02:37 -0400
In-Reply-To: <8338v2cg93.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 07 Apr
	2013 22:06:32 +0300")
Message-ID: <lk4nfhok3m.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -7.4 (-------)
X-Debbugs-Envelope-To: 12123
Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, eggert@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -9.3 (---------)

Eli Zaretskii wrote:

> Code in emacs.c that sets invocation-directory relies on argv[0] to
> either be an absolute file name, or relative to cwd, or a base name
> without leading directories that can be found on PATH.

As I said, I think this will cover 99.9+% of cases. Anyone trying to do
anything more obscure just doesn't get to use a relocatable Emacs, IMO.
But of course if you want a totally general solution, go ahead.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12123; Package emacs. Full text available.

Message received at 12123 <at> debbugs.gnu.org:


Received: (at 12123) by debbugs.gnu.org; 8 Apr 2013 02:04:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 07 22:04:22 2013
Received: from localhost ([127.0.0.1]:39113 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UP1RW-00061R-Kg
	for submit <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:04:22 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:42339)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1UP1RU-00061L-Nb
	for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:04:21 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1UP1O6-0004dx-3i; Sun, 07 Apr 2013 22:00:50 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#12123:
References: <probmtut73.fsf@HIDDEN>
	<1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
	<83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN>
	<83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN>
	<83r4incb9b.fsf@HIDDEN> <2xfvz2i430.fsf@HIDDEN>
	<8338v2cg93.fsf@HIDDEN> <831uamcelo.fsf@HIDDEN>
X-Spook: CIDA MDA Vince Foster Ermes Exon Shell Roswell Saudi
X-Ran: Lg~U"'\"j|+s0KxExe\-rBH}f\_4\%~zVo{q0AWk<0xj#,9yh%gU+Q6!fMS5)XH2?u-~Cx
X-Hue: white
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Sun, 07 Apr 2013 22:00:49 -0400
In-Reply-To: <831uamcelo.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 07 Apr
	2013 22:42:11 +0300")
Message-ID: <828v4tok6m.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: 12123
Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, eggert@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -9.3 (---------)

Eli Zaretskii wrote:

> Btw, even if these conditions _are_ true, I still don't see how can we
> find /usr/libexec/emacs/VERSION/CONFIG/, /usr/share/emacs/VERSION/lisp/
> using the fact that Emacs was invoked from /usr/bin/.  Which part of
> the code knows about VERSION and CONFIG part and looks for them?  All I
> see is that we look for lib-src and etc, but that's only good to detect
> that we are being run from the build directory, not from where we are
> installed.  What am I missing?

Well yes, that's the point of this report. No-one has implemented a
relocatable Emacs installation for general POSIX platforms. Solving
those problems is part of it. A relocatable Emacs would not be installed
as you describe above, it would (I imagine) be installed similar to the
way the NS build is, under a single top-level directory.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12123; Package emacs. Full text available.

Message received at 12123 <at> debbugs.gnu.org:


Received: (at 12123) by debbugs.gnu.org; 7 Apr 2013 19:45:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 07 15:45:38 2013
Received: from localhost ([127.0.0.1]:38818 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UOvX0-0005Wy-7S
	for submit <at> debbugs.gnu.org; Sun, 07 Apr 2013 15:45:38 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:48711)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1UOvWy-0005Wq-20
	for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 15:45:37 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
	a-mtaout20.012.net.il (HyperSendmail v2007.08) id
	<0MKW00C00H9WF700@HIDDEN> for
	12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:42:06 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0MKW00CGDHE30U90@HIDDEN>;
	Sun, 07 Apr 2013 22:42:04 +0300 (IDT)
Date: Sun, 07 Apr 2013 22:42:11 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#12123:
In-reply-to: <8338v2cg93.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: rgm@HIDDEN
Message-id: <831uamcelo.fsf@HIDDEN>
References: <probmtut73.fsf@HIDDEN>
	<1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
	<83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN>
	<83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN>
	<83r4incb9b.fsf@HIDDEN> <2xfvz2i430.fsf@HIDDEN>
	<8338v2cg93.fsf@HIDDEN>
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 12123
Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, eggert@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> Date: Sun, 07 Apr 2013 22:06:32 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, eggert@HIDDEN
> 
> Code in emacs.c that sets invocation-directory relies on argv[0] to
> either be an absolute file name, or relative to cwd, or a base name
> without leading directories that can be found on PATH.

Btw, even if these conditions _are_ true, I still don't see how can we
find /usr/libexec/emacs/VERSION/CONFIG/, /usr/share/emacs/VERSION/lisp/
using the fact that Emacs was invoked from /usr/bin/.  Which part of
the code knows about VERSION and CONFIG part and looks for them?  All I
see is that we look for lib-src and etc, but that's only good to detect
that we are being run from the build directory, not from where we are
installed.  What am I missing?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12123; Package emacs. Full text available.

Message received at 12123 <at> debbugs.gnu.org:


Received: (at 12123) by debbugs.gnu.org; 7 Apr 2013 19:11:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 07 15:11:25 2013
Received: from localhost ([127.0.0.1]:38784 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UOuzt-0004ka-Cn
	for submit <at> debbugs.gnu.org; Sun, 07 Apr 2013 15:11:25 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:39917)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1UOuzr-0004kT-HW
	for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 15:11:24 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
	a-mtaout20.012.net.il (HyperSendmail v2007.08) id
	<0MKW00C00FGT1B00@HIDDEN> for
	12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:06:25 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0MKW00BBLFQOSU70@HIDDEN>;
	Sun, 07 Apr 2013 22:06:25 +0300 (IDT)
Date: Sun, 07 Apr 2013 22:06:32 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#12123:
In-reply-to: <2xfvz2i430.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Glenn Morris <rgm@HIDDEN>
Message-id: <8338v2cg93.fsf@HIDDEN>
References: <probmtut73.fsf@HIDDEN>
	<1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
	<83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN>
	<83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN>
	<83r4incb9b.fsf@HIDDEN> <2xfvz2i430.fsf@HIDDEN>
X-Spam-Score: -1.2 (-)
X-Debbugs-Envelope-To: 12123
Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, eggert@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> From: Glenn Morris <rgm@HIDDEN>
> Cc: Paul Eggert <eggert@HIDDEN>,  12123 <at> debbugs.gnu.org,  yandros@HIDDEN
> Date: Sun, 07 Apr 2013 14:32:51 -0400
> 
> I must be missing something, because AFAICS, invocation-directory has
> already solved this problem. What cases are not already handled that are
> relevant and need extra code adding from progreloc.c?

Code in emacs.c that sets invocation-directory relies on argv[0] to
either be an absolute file name, or relative to cwd, or a base name
without leading directories that can be found on PATH.  But on Posix
platforms, argv[0] can be anything, while on Windows argv[0] might be
neither absolute nor on PATH.

progreloc.c solves this in platform-specific ways.  E.g., on
GNU/Linux, it looks at /proc/PID/exe.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12123; Package emacs. Full text available.

Message received at 12123 <at> debbugs.gnu.org:


Received: (at 12123) by debbugs.gnu.org; 7 Apr 2013 18:36:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 07 14:36:24 2013
Received: from localhost ([127.0.0.1]:38726 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UOuRz-0003uM-Ul
	for submit <at> debbugs.gnu.org; Sun, 07 Apr 2013 14:36:24 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:36198)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1UOuRx-0003uF-Rj
	for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 14:36:22 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1UOuOZ-0004Tb-Le; Sun, 07 Apr 2013 14:32:51 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#12123:
References: <probmtut73.fsf@HIDDEN>
	<1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
	<83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN>
	<83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN>
	<83r4incb9b.fsf@HIDDEN>
X-Spook: unclassified Abu Ghraib Dateline Etacs Lon Horiuchi
X-Ran: zhXDX_|%,ci,7~6-x^;C!;>fAEmz0V^XX):fN9A7Kl-@cbYyR'P'nk@r^'I)=P'*OE|}l{
X-Hue: magenta
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Sun, 07 Apr 2013 14:32:51 -0400
In-Reply-To: <83r4incb9b.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 07 Apr
	2013 05:42:08 +0300")
Message-ID: <2xfvz2i430.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -7.4 (-------)
X-Debbugs-Envelope-To: 12123
Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, Paul Eggert <eggert@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -9.3 (---------)

Eli Zaretskii wrote:

>> > Then perhaps we could just borrow the ideas from progreloc.c.
>> 
>> That sounds like more work than using the Gnulib module,
>> I expect.
>
> Not necessarily.  progreloc.c is relatively short, and is really just
> a series of platform-dependent methods to find the absolute file name
> of the running program.  The MS-Windows method used there is already
> being used in Emacs, and most of the infrastructure for relocating a
> directory is already in place.

I must be missing something, because AFAICS, invocation-directory has
already solved this problem. What cases are not already handled that are
relevant and need extra code adding from progreloc.c?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12123; Package emacs. Full text available.

Message received at 12123 <at> debbugs.gnu.org:


Received: (at 12123) by debbugs.gnu.org; 7 Apr 2013 02:45:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 06 22:45:32 2013
Received: from localhost ([127.0.0.1]:37606 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UOfbo-0004wU-DN
	for submit <at> debbugs.gnu.org; Sat, 06 Apr 2013 22:45:32 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:47574)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1UOfbk-0004wK-Fq
	for 12123 <at> debbugs.gnu.org; Sat, 06 Apr 2013 22:45:29 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
	a-mtaout20.012.net.il (HyperSendmail v2007.08) id
	<0MKV00M005ZMB200@HIDDEN> for
	12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 05:42:02 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0MKV00M4L6629140@HIDDEN>;
	Sun, 07 Apr 2013 05:42:02 +0300 (IDT)
Date: Sun, 07 Apr 2013 05:42:08 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#12123:
In-reply-to: <516086FD.4000003@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Paul Eggert <eggert@HIDDEN>
Message-id: <83r4incb9b.fsf@HIDDEN>
References: <probmtut73.fsf@HIDDEN>
	<1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
	<83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN>
	<83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN>
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 12123
Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> Date: Sat, 06 Apr 2013 13:35:09 -0700
> From: Paul Eggert <eggert@HIDDEN>
> CC: yandros@HIDDEN, 12123 <at> debbugs.gnu.org
> 
> On 04/06/2013 01:22 AM, Eli Zaretskii wrote:
> > Then perhaps we could just borrow the ideas from progreloc.c.
> 
> That sounds like more work than using the Gnulib module,
> I expect.

Not necessarily.  progreloc.c is relatively short, and is really just
a series of platform-dependent methods to find the absolute file name
of the running program.  The MS-Windows method used there is already
being used in Emacs, and most of the infrastructure for relocating a
directory is already in place.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12123; Package emacs. Full text available.

Message received at 12123 <at> debbugs.gnu.org:


Received: (at 12123) by debbugs.gnu.org; 6 Apr 2013 20:38:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 06 16:38:35 2013
Received: from localhost ([127.0.0.1]:37303 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UOZsg-0003i4-I6
	for submit <at> debbugs.gnu.org; Sat, 06 Apr 2013 16:38:35 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:44160)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eggert@HIDDEN>) id 1UOZsf-0003hy-4i
	for 12123 <at> debbugs.gnu.org; Sat, 06 Apr 2013 16:38:33 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id BB49239E8106;
	Sat,  6 Apr 2013 13:35:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id oYeXf+TlgjnJ; Sat,  6 Apr 2013 13:35:09 -0700 (PDT)
Received: from [192.168.1.9] (pool-71-189-154-249.lsanca.fios.verizon.net
	[71.189.154.249])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 7023639E8100;
	Sat,  6 Apr 2013 13:35:09 -0700 (PDT)
Message-ID: <516086FD.4000003@HIDDEN>
Date: Sat, 06 Apr 2013 13:35:09 -0700
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130308 Thunderbird/17.0.4
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#12123:
References: <probmtut73.fsf@HIDDEN>
	<1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
	<83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN>
	<83fvz4dq5l.fsf@HIDDEN>
In-Reply-To: <83fvz4dq5l.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.9 (---)
X-Debbugs-Envelope-To: 12123
Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

On 04/06/2013 01:22 AM, Eli Zaretskii wrote:
> Then perhaps we could just borrow the ideas from progreloc.c.

That sounds like more work than using the Gnulib module,
I expect.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12123; Package emacs. Full text available.

Message received at 12123 <at> debbugs.gnu.org:


Received: (at 12123) by debbugs.gnu.org; 6 Apr 2013 08:26:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 06 04:26:09 2013
Received: from localhost ([127.0.0.1]:36267 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UOORt-0001s2-BR
	for submit <at> debbugs.gnu.org; Sat, 06 Apr 2013 04:26:09 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:40004)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1UOORr-0001ru-1p
	for 12123 <at> debbugs.gnu.org; Sat, 06 Apr 2013 04:26:08 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
	a-mtaout20.012.net.il (HyperSendmail v2007.08) id
	<0MKT00C00QVFK800@HIDDEN> for
	12123 <at> debbugs.gnu.org; Sat, 06 Apr 2013 11:22:46 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0MKT00CL3R9UGR40@HIDDEN>;
	Sat, 06 Apr 2013 11:22:43 +0300 (IDT)
Date: Sat, 06 Apr 2013 11:22:46 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#12123:
In-reply-to: <515FC500.1080609@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Paul Eggert <eggert@HIDDEN>
Message-id: <83fvz4dq5l.fsf@HIDDEN>
References: <probmtut73.fsf@HIDDEN>
	<1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
	<83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN>
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 12123
Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> Date: Fri, 05 Apr 2013 23:47:28 -0700
> From: Paul Eggert <eggert@HIDDEN>
> CC: chad <yandros@HIDDEN>, 12123 <at> debbugs.gnu.org
> 
> On 04/05/2013 10:48 AM, Eli Zaretskii wrote:
> > Perhaps Paul (CC'ed) could import it and
> > use it in callproc.c to do what Stefan suggested.
> 
> That sounds like it might work, yes, but it's
> nontrivial.  I've never used that module myself.

Then perhaps we could just borrow the ideas from progreloc.c.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12123; Package emacs. Full text available.

Message received at 12123 <at> debbugs.gnu.org:


Received: (at 12123) by debbugs.gnu.org; 6 Apr 2013 06:50:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 06 02:50:53 2013
Received: from localhost ([127.0.0.1]:36216 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UOMxh-000881-5W
	for submit <at> debbugs.gnu.org; Sat, 06 Apr 2013 02:50:53 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:49206)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eggert@HIDDEN>) id 1UOMxe-00087s-1j
	for 12123 <at> debbugs.gnu.org; Sat, 06 Apr 2013 02:50:51 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 8344C39E8109;
	Fri,  5 Apr 2013 23:47:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id dHh0qxoWbzUP; Fri,  5 Apr 2013 23:47:29 -0700 (PDT)
Received: from [192.168.1.9] (pool-71-189-154-249.lsanca.fios.verizon.net
	[71.189.154.249])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 3517C39E8105;
	Fri,  5 Apr 2013 23:47:29 -0700 (PDT)
Message-ID: <515FC500.1080609@HIDDEN>
Date: Fri, 05 Apr 2013 23:47:28 -0700
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130308 Thunderbird/17.0.4
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#12123:
References: <probmtut73.fsf@HIDDEN>
	<1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
	<83txnkeumm.fsf@HIDDEN>
In-Reply-To: <83txnkeumm.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.9 (---)
X-Debbugs-Envelope-To: 12123
Cc: 12123 <at> debbugs.gnu.org, chad <yandros@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

On 04/05/2013 10:48 AM, Eli Zaretskii wrote:
> Perhaps Paul (CC'ed) could import it and
> use it in callproc.c to do what Stefan suggested.

That sounds like it might work, yes, but it's
nontrivial.  I've never used that module myself.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12123; Package emacs. Full text available.

Message received at 12123 <at> debbugs.gnu.org:


Received: (at 12123) by debbugs.gnu.org; 5 Apr 2013 17:53:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 05 13:53:27 2013
Received: from localhost ([127.0.0.1]:35866 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UOApL-0005Wi-4p
	for submit <at> debbugs.gnu.org; Fri, 05 Apr 2013 13:53:27 -0400
Received: from mtaout22.012.net.il ([80.179.55.172]:51288)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1UOApH-0005WW-1K
	for 12123 <at> debbugs.gnu.org; Fri, 05 Apr 2013 13:53:25 -0400
Received: from conversion-daemon.a-mtaout22.012.net.il by
	a-mtaout22.012.net.il (HyperSendmail v2007.08) id
	<0MKS00E00MSSJ600@HIDDEN> for
	12123 <at> debbugs.gnu.org; Fri, 05 Apr 2013 20:48:31 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0MKS00E95MSUAL50@HIDDEN>;
	Fri, 05 Apr 2013 20:48:31 +0300 (IDT)
Date: Fri, 05 Apr 2013 20:48:33 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#12123:
In-reply-to: <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: chad <yandros@HIDDEN>, Paul Eggert <eggert@HIDDEN>
Message-id: <83txnkeumm.fsf@HIDDEN>
References: <probmtut73.fsf@HIDDEN>
	<1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
X-Spam-Score: -1.2 (-)
X-Debbugs-Envelope-To: 12123
Cc: 12123 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> From: chad <yandros@HIDDEN>
> Date: Fri, 5 Apr 2013 10:27:21 -0700
> 
> Web searching suggests approaches for several specific platforms
> (GNU/Linux, FreeBSD, Solaris, macosx, and Windows) that might be
> useful:
> 
> http://stackoverflow.com/questions/1023306/finding-current-executables-path-without-proc-self-exe

The Windows method mentioned there is exactly what Emacs already uses
on Windows.

Anyway, I see that gnulib has a progreloc module whose purpose is to
make program relocatable.  Perhaps Paul (CC'ed) could import it and
use it in callproc.c to do what Stefan suggested.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12123; Package emacs. Full text available.

Message received at 12123 <at> debbugs.gnu.org:


Received: (at 12123) by debbugs.gnu.org; 5 Apr 2013 17:35:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 05 13:35:20 2013
Received: from localhost ([127.0.0.1]:35837 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UOAXo-0004Ae-Fz
	for submit <at> debbugs.gnu.org; Fri, 05 Apr 2013 13:35:20 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:54154)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1UOAXn-0004AY-Gm
	for 12123 <at> debbugs.gnu.org; Fri, 05 Apr 2013 13:35:19 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1UOAUc-0007me-Q9; Fri, 05 Apr 2013 13:32:02 -0400
From: Glenn Morris <rgm@HIDDEN>
To: 12123 <at> debbugs.gnu.org
Subject: Re: bug#12123:
References: <probmtut73.fsf@HIDDEN>
	<1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
X-Spook: nuclear Ruby Ridge BATF Islam Abduganievich Karimov
X-Ran: <ei"a[Sd=A}}>aW-JIdU`wDR-MuOBs:mrya}bVTg}ka*M}|L$Hw(>agS^Z\E`p1New>8^M
X-Hue: yellow
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Fri, 05 Apr 2013 13:32:02 -0400
In-Reply-To: <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> (chad's message of
	"Fri, 5 Apr 2013 10:27:21 -0700")
Message-ID: <vbbo9sg9yl.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: 12123
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -9.3 (---------)

chad wrote:

> Web searching suggests approaches for several specific platforms
> (GNU/Linux, FreeBSD, Solaris, macosx, and Windows) that might be
> useful:
>
> http://stackoverflow.com/questions/1023306/finding-current-executables-path-without-proc-self-exe

I don't think this is an issue. We've already got invocation-directory,
which is probably good enough in 99.9+% of cases. Unless people do
obscure things to hide the executable, in which case they just don't get
to use a relocatable Emacs.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12123; Package emacs. Full text available.

Message received at 12123 <at> debbugs.gnu.org:


Received: (at 12123) by debbugs.gnu.org; 5 Apr 2013 17:30:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 05 13:30:42 2013
Received: from localhost ([127.0.0.1]:35812 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UOATK-00041U-Aj
	for submit <at> debbugs.gnu.org; Fri, 05 Apr 2013 13:30:42 -0400
Received: from dmz-mailsec-scanner-8.mit.edu ([18.7.68.37]:62603)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <yandros@HIDDEN>) id 1UOATI-00041M-0B
	for 12123 <at> debbugs.gnu.org; Fri, 05 Apr 2013 13:30:40 -0400
X-AuditID: 12074425-b7fec6d000007584-b6-515f097bb9d1
Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])
	by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP
	id C2.8D.30084.B790F515; Fri,  5 Apr 2013 13:27:23 -0400 (EDT)
Received: from outgoing.mit.edu (OUTGOING-AUTH-1.MIT.EDU [18.9.28.11])
	by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id r35HRMMq012070
	for <12123 <at> debbugs.gnu.org>; Fri, 5 Apr 2013 13:27:23 -0400
Received: from [10.0.1.10] (c-98-247-148-125.hsd1.wa.comcast.net
	[98.247.148.125]) (authenticated bits=0)
	(User authenticated as yandros@HIDDEN)
	by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r35HRKS6032330
	(version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT)
	for <12123 <at> debbugs.gnu.org>; Fri, 5 Apr 2013 13:27:22 -0400
From: chad <yandros@HIDDEN>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: bug#12123
Message-Id: <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN>
Date: Fri, 5 Apr 2013 10:27:21 -0700
To: 12123 <at> debbugs.gnu.org
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
X-Mailer: Apple Mail (2.1503)
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFIsWRmVeSWpSXmKPExsUixCmqrFvNGR9ocPmjmsWn21NYHBg9Lk7a
	xxzAGMVlk5Kak1mWWqRvl8CVcWvRepaCn4wVi288ZWpgvMPYxcjJISFgItHY0sgOYYtJXLi3
	nq2LkYtDSGAfo8T/T7vAioQEzjBKvFhfDWE/YpKY8Vqpi5GDg01ABqhBAyTMLKAlcePfSyYI
	W1ti2cLXzCC2sICQxJmXm8HivAJWEr9uvgfbxSKgIvHw3VpWEFtEQFKiqfkhG0SNnsS1b1+h
	7pGVeP38DcsERr5ZSFbMQrJiFpKWBYzMqxhlU3KrdHMTM3OKU5N1i5MT8/JSi3Qt9HIzS/RS
	U0o3MYICjN1FdQfjhENKhxgFOBiVeHgtbscFCrEmlhVX5h5ilORgUhLl5WaLDxTiS8pPqcxI
	LM6ILyrNSS0+xCjBwawkwiv7HKicNyWxsiq1KB8mJc3BoiTOeyPlpr+QQHpiSWp2ampBahFM
	VoaDQ0mCt4EDaKhgUWp6akVaZk4JQpqJgxNkOA/QcG2QGt7igsTc4sx0iPwpRmOOtotPXjNy
	TFr18jWjEEtefl6qlDjvJJAbBUBKM0rz4KbBksQrRnGg54R5vUEG8gATDNy8V0CrmIBWTb0b
	DbKqJBEhJdXAaJOXfdpM3dB6q0VIy/yjbdb7RB08+vZ7X73SkMf3y/u68alT3OH7Ehc61n/X
	4zq/8ONyP/O0fM66RTdnbOO+VX0ihUMx5POuLZpTj202+63hvr+M89BDzor0TkGeDwnfUk48
	4mxfwXLnziSGqd94by8KKijkPyW5eWUal/OBdYJ/3cTV3+9JVWIpzkg01GIuKk4EANYEFOPt
	AgAA
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 12123
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.0 (-----)

Web searching suggests approaches for several specific platforms
(GNU/Linux, FreeBSD, Solaris, macosx, and Windows) that might be
useful:

=
http://stackoverflow.com/questions/1023306/finding-current-executables-pat=
h-without-proc-self-exe=




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12123; Package emacs. Full text available.

Message received at 12123-quiet <at> debbugs.gnu.org:


Received: (at 12123-quiet) by debbugs.gnu.org; 4 Aug 2012 18:17:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 04 14:17:09 2012
Received: from localhost ([127.0.0.1]:33717 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SxiuS-0008GO-UA
	for submit <at> debbugs.gnu.org; Sat, 04 Aug 2012 14:17:09 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:39626)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1SxiuR-0008GI-J6
	for 12123-quiet <at> debbugs.gnu.org; Sat, 04 Aug 2012 14:17:07 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1Sximx-0007ad-EH; Sat, 04 Aug 2012 14:09:23 -0400
From: Glenn Morris <rgm@HIDDEN>
To: 12123-quiet <at> debbugs.gnu.org
Subject: Re: relocatable installation
References: <probmtut73.fsf@HIDDEN>
X-Spook: EuroFed illuminati Pine Gap Bellcore Axis of Evil Steve
X-Ran: 2a`l:mLcI'3cY\gFvQg\z*M$XKH:I<@+inzTv?L:Lptv#PtY81s+D/lu/-qC87Nk9ycvOx
X-Hue: cyan
X-Attribution: GM
Date: Sat, 04 Aug 2012 14:09:23 -0400
In-Reply-To: <probmtut73.fsf@HIDDEN> (Glenn Morris's message of
	"Thu, 02 Aug 2012 12:58:24 -0400")
Message-ID: <d3txwibkbw.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: 12123-quiet
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)


See also http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11959#64




Message received at quiet <at> debbugs.gnu.org:


Received: (at quiet) by debbugs.gnu.org; 2 Aug 2012 17:06:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 02 13:06:00 2012
Received: from localhost ([127.0.0.1]:57313 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SwyqV-0000xv-Ma
	for submit <at> debbugs.gnu.org; Thu, 02 Aug 2012 13:06:00 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:44512)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1SwyqT-0000xo-E0
	for quiet <at> debbugs.gnu.org; Thu, 02 Aug 2012 13:05:58 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1SwyjB-0000vd-7l; Thu, 02 Aug 2012 12:58:25 -0400
From: Glenn Morris <rgm@HIDDEN>
To: quiet <at> debbugs.gnu.org
Subject: relocatable installation
X-Spook: MIT-LL kilderkin UNSCOM Blowpipe Exon Shell Pine Gap
X-Ran: By\U!&$wZx";"`DcawC1Er.`9YN1E]FO~EtelcDb|u1{w?yF6<CF[+N[*wYpMo~B#A`Uq<
X-Hue: white
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Thu, 02 Aug 2012 12:58:24 -0400
Message-ID: <probmtut73.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: quiet
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

Package: emacs
Severity: wishlist
Version: 24.1

A --with-ns build can be built as a "relocatable app bundle".
(In fact it defaults to this, unless you configure with
--disable-ns-self-contained.)

In this mode, the --prefix option to configure is ignored.
`make install' constructs a directory nextstep/Emacs.app with contents
like this:

Emacs   # the executable
bin     # directory with user executables
etc
info
leim
libexec # directory with internal executables
lisp
man


A non-ns build could have the same feature (except the "Emacs" should go
in the bin/ directory and have a standard name).

It needs a few changes to various Makefile.ins (see the ns_appbindir etc
portions), as well as functions analogous to ns_load_path,
ns_etc_directory, and ns_exec_path.  For simplicity/consistency, these
should be renamed to eg reloc_load_path, etc. Then init_lread,
init_callproc_1, init_callproc should be changed accordingly.




Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.