From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5690 invoked by alias); 9 May 2003 20:18:39 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5683 invoked from network); 9 May 2003 20:18:38 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 9 May 2003 20:18:38 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19EEKd-0004YF-00; Fri, 09 May 2003 15:19:03 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19EEKB-0007Gh-00; Fri, 09 May 2003 16:18:35 -0400 Date: Fri, 09 May 2003 20:18:00 -0000 From: Daniel Jacobowitz To: "H. J. Lu" Cc: GDB Subject: Re: PATCH: Make sure gdb-cfg.texi is created Message-ID: <20030509201835.GA27906@nevyn.them.org> Mail-Followup-To: "H. J. Lu" , GDB References: <20030509122434.A5769@lucon.org> <20030509193206.GA1189@nevyn.them.org> <20030509125943.A6257@lucon.org> <20030509200643.GA22341@nevyn.them.org> <20030509131049.A6435@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030509131049.A6435@lucon.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-05/txt/msg00141.txt.bz2 On Fri, May 09, 2003 at 01:10:49PM -0700, H. J. Lu wrote: > On Fri, May 09, 2003 at 04:06:43PM -0400, Daniel Jacobowitz wrote: > > On Fri, May 09, 2003 at 12:59:43PM -0700, H. J. Lu wrote: > > > On Fri, May 09, 2003 at 03:32:06PM -0400, Daniel Jacobowitz wrote: > > > > On Fri, May 09, 2003 at 12:24:34PM -0700, H. J. Lu wrote: > > > > > My gdb source tree is created with relative symlinks. ln -s won't work > > > > > with them. Here is a patch to make sure gdb-cfg.texi is created. > > > > > > > > That patch doesn't make sense. You're saying that ln -s can succeed > > > > when test -e would fail? > > > > > > > > > > I got > > > > > > # bash > > > # ln -s "doesn't exist" foo || echo bad > > > # test -e foo || echo "doesn't exist" > > > doesn't exist > > > > Sure, but then why would "ln" or "cp" work from "doesn't exist"? > > I have a tree with relative symlinks. all-cfg.texi in the source tree > is > > # ls -l /export/gnu/src/gdb/gdb/gdb/doc/all-cfg.texi > lrwxrwxrwx 1 hjl hjl 50 May 9 09:58 /export/gnu/src/gdb/gdb/gdb/doc/all-cfg.texi -> ../../../../../import/gdb/src/gdb/doc/all-cfg.texi > > Since my build dir != source dir, > > ../../../../../import/gdb/src/gdb/doc/all-cfg.texi > > doesn't exist in my build dir. Maybe I'm missing something obvious. The link will be created to point at /export/gnu/src/gdb/gdb/gdb/doc/all-cfg.texi. Whether ../../../../../import/gdb/src/gdb/doc/all-cfg.texi exists from that directory does not matter. It will be resolved from the directory containing the second symlink. Otherwise relative symlinks would never be useful. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer