Re: little bug in current CVS

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: little bug in current CVS
Date: 2001-02-06 17:16:26
Message-ID: Pine.GSO.4.33.0102062009400.7605-100000@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 6 Feb 2001, Tom Lane wrote:

> Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> writes:
> > make[2]: Entering directory /home/postgres/cvs/pgsql/src/backend'
> > prereqdir=`cd parser/ && pwd` && \
> > cd ../../src/include/parser/ && rm -f parse.h && \
> > ln -s $prereqdir/parse.h .
> > ln: ./parser: File exists
> > make[2]: *** [../../src/include/parser/parse.h] Error 1
>
> Hm. I bet your shell is failing to strip whitespace from the output of
> pwd, so that the ln command ends up looking like
>
> ln -s /home/postgres/cvs/pgsql/src/backend/parser /parse.h .
>
> Can you check that theory by inserting an 'echo'?

you're right. shell is BASH_VERSION='2.04.0(1)-release'
Makefile looks too complex:
$(top_builddir)/src/include/parser/parse.h: $(srcdir)/parser/parse.h
prereqdir=`cd $(dir $<) && pwd` && \
cd $(dir $@) && rm -f $(notdir $@) && \
$(LN_S) $$prereqdir/$(notdir $<) .

We're already in src/backend directory, why not use
ln -sf parser/parse.h .

>
> regards, tom lane
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-02-06 17:27:18 Re: little bug in current CVS
Previous Message Stephan Szabo 2001-02-06 17:08:37 Re: ADD CONSTRAINT ... FOREIGN KEY and custom data type.