From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5757 invoked by alias); 22 Oct 2017 17:40:40 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 5748 invoked by uid 89); 22 Oct 2017 17:40:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 22 Oct 2017 17:40:37 +0000 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1e6KEk-0006D0-I9; Sun, 22 Oct 2017 19:40:34 +0200 Received: from 70-36-239-2.dsl.dynamic.fusionbroadband.com ([70.36.239.2] helo=localhost.localdomain) by mailfront12.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1e6KEX-00033l-Qv; Sun, 22 Oct 2017 19:40:22 +0200 Subject: Re: symlink problems with mac os To: =?UTF-8?Q?Bj=c3=b6rn_Raupach?= , "kawa@sourceware.org" References: <7DC458EC-78C0-40B3-871F-5B0E72E43CF5@e2n.de> <0cfce2d5-3e68-bf23-95c6-f6fc6e717f99@bothner.com> From: Per Bothner Message-ID: <9a15e187-6123-2c5a-181b-e4ebb9ac0dc8@bothner.com> Date: Sun, 22 Oct 2017 17:40:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-q4/txt/msg00013.txt.bz2 On 10/22/2017 06:04 AM, Björn Raupach wrote: > There is a Homebrew port fof Kawa which avoids the problem by patching > bin/kawa before installing it: > > https://github.com/Homebrew/homebrew-core/blob/master/Formula/kawa.rb > > Agreed. I would do a patch like this in MacPorts, too. Was just raising awareness of this minor issue if it was unnoticed before. I've been vaguely aware of it. > The reason for the readlink to handle the case that you install kawa > as a symlink for example /usr/local/bin/kawa -> /opt/kawa-3.0/bin/kawa . > I think that is useful to support - and it doesn't work without the -f. On second though that use-case can be handled just as well with creating an executable file /usr/local/bin/kawa containing: exec /opt/kawa-3.0/bin/kawa "$@" However, when doing a source build, and then executing from the build directory (as the test-suite does) still has to traverse a symlink, as configure creates a symlink from kawa.sh to kawa.sh.in. > The maven snippet above handles that case. I can link a link and still get maven to run. Would make it portable and doesn’t need any dependency. It would slow start up a little bit. > Looking for patches? I have time to look at that and now I am curious enough to try and solve this. ;) I think I want to leave kawa.sh.in as-is, but have configure create kawa instead of kawa.sh. That way we don't need a symlink in the normal case. I'm trying this out now. -- --Per Bothner per@bothner.com http://per.bothner.com/