From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19979 invoked by alias); 20 Dec 2014 20:11:01 -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 19962 invoked by uid 89); 20 Dec 2014 20:11:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: terror.hungry.com Received: from terror.hungry.com (HELO terror.hungry.com) (199.181.107.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sat, 20 Dec 2014 20:10:57 +0000 Received: from [172.16.16.45] ([75.128.29.244]) (AUTH: PLAIN alves, SSL: TLSv1/SSLv3,128bits,AES128-SHA) by terror.hungry.com with ESMTPSA; Sat, 20 Dec 2014 12:10:44 -0800 id 000722BB.000000005495D7CA.0001781B Message-ID: <5495D7C2.9040008@hungry.com> Date: Sat, 20 Dec 2014 20:11:00 -0000 From: Seth Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: kawa@sourceware.org Subject: Re: chasing symlinks during import References: <547A0CEC.40601@hungry.com> <547CEDA2.4020102@bothner.com> <54958681.7080604@hungry.com> In-Reply-To: <54958681.7080604@hungry.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-q4/txt/msg00156.txt.bz2 You probably guessed this, but this is the change that made the symlinked-libs example fail again. -seth Index: kawa/standard/ImportFromLibrary.java =================================================================== --- kawa/standard/ImportFromLibrary.java (revision 8235) +++ kawa/standard/ImportFromLibrary.java (working copy) @@ -253,9 +253,9 @@ ... - Path currentSource = currentFileName == null ? null - : Path.valueOf(currentFileName).getAbsolute(); + Path currentSource = curinfo.getSourceAbsPath(); On 12/20/2014 06:24 AM, Seth Alves wrote: > This was fixed, but I think there has been a regression. I see it > attempting to load > > ./libs/../.././a/b/blerg.sld > > where > > ./libs/.././a/b/blerg.sld > > might have worked. > > -seth > > > On 12/01/2014 02:37 PM, Per Bothner wrote: >> >> >> On 11/29/2014 10:14 AM, Seth Alves wrote: >>> >>> I'm confused about why the attached doesn't work. >>> >>> Maybe what I actually want is for the "." in kawa.import.path to >>> refer to the directory containing the toplevel (program) file rather >>> than the file doing the importing? >>> >>> If the symlinks are replaced with the actual files, it does work. >> >> The problem was that Kawa would calculate paths relative to the >> *canonical" name of the importing file, rather than the requested name. >> Not clear what is best, but probably most of the time using the >> canonical name is probably not desirable. >> >> I checked in a change to do that, so yur example should now work. >> >