From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: guile-2.0 on mingw: the sequel Date: Sun, 25 Aug 2013 20:59:03 +0200 Message-ID: <87d2p18umg.fsf@gnu.org> References: <83vc2wj4hz.fsf@gnu.org> <877gfccueo.fsf@tines.lan> <83d2p4ifow.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1377464840 506 80.91.229.3 (25 Aug 2013 21:07:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Aug 2013 21:07:20 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Aug 25 23:07:23 2013 Return-path: Envelope-to: guile-user@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 1VDhWs-00009c-6i for guile-user@m.gmane.org; Sun, 25 Aug 2013 23:07:22 +0200 Original-Received: from localhost ([::1]:47636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDhWr-0004eN-EN for guile-user@m.gmane.org; Sun, 25 Aug 2013 17:07:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDfX2-0002Ik-VZ for guile-user@gnu.org; Sun, 25 Aug 2013 14:59:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VDfWx-0006FQ-HK for guile-user@gnu.org; Sun, 25 Aug 2013 14:59:24 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDfWx-0006FF-AS for guile-user@gnu.org; Sun, 25 Aug 2013 14:59:19 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VDfWt-0004RC-WF for guile-user@gnu.org; Sun, 25 Aug 2013 20:59:16 +0200 Original-Received: from vil93-2-82-66-223-114.fbx.proxad.net ([82.66.223.114]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Aug 2013 20:59:15 +0200 Original-Received: from ludo by vil93-2-82-66-223-114.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Aug 2013 20:59:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: vil93-2-82-66-223-114.fbx.proxad.net X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 Fructidor an 221 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:ueUptmcfqTn1ycLY1pNrG4nAMn8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-Mailman-Approved-At: Sun, 25 Aug 2013 17:07:11 -0400 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10706 Archived-At: Eli Zaretskii skribis: >> From: Mark H Weaver >> Cc: Eli Zaretskii , "guile-user\@gnu.org" >> Date: Fri, 23 Aug 2013 11:13:19 -0400 >> >> Of course, ideally we would allow the entire Guile install to be freely >> relocatable, as Windows users have come to expect. This would require >> some help from a Windows developer. > > Why should this feature be limited to Windows builds of Guile? Why > not make it work for Posix platforms as well? Some other projects > already do, they use argv[0] and PATH search to find the place where > the executable is installed, and record relative file names from > there. This is not completely reliable when using argv[0] because argv[0] can be anything, though this can be work around on Linux-based systems with /proc/self/exe as done in . Here’s a proposal: add a --enable-relocatable configure option, have it default to yes on MinGW and Cygwin (assuming there’s a method that works reliably on these), and default to no elsewhere; alternately, have it default to no everywhere. WDYT? Thanks, Ludo’.