Re: 7.1 Build fails with Bash and CDPATH - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: 7.1 Build fails with Bash and CDPATH
Date
Msg-id 200104241434.f3OEYps11995@candle.pha.pa.us
Whole thread Raw
In response to 7.1 Build fails with Bash and CDPATH  (pgsql-bugs@postgresql.org)
List pgsql-bugs
I think we just patched this yesterday in CVS.

> Mark Hollomon (mhh@mindspring.com) reports a bug with a severity of 3
> The lower the number the more severe it is.
>
> Short Description
> 7.1 Build fails with Bash and CDPATH
>
> Long Description
> If using Bash with CDPATH set, the build of 7.1 fails with the following messages:
>
> gmake[2]: Entering directory `/home/mhh/src/postgresql-7.1/src/backend'
> prereqdir=`cd parser/ && pwd` && \
>   cd ../../src/include/parser/ && rm -f parse.h && \
>   ln -s $prereqdir/parse.h .
> ln: .//parser exists
> gmake[2]: *** [../../src/include/parser/parse.h] Error 1
> gmake[2]: *** Deleting file `../../src/include/parser/parse.h'
> gmake[2]: Leaving directory `/home/mhh/src/postgresql-7.1/src/backend'
> gmake[1]: *** [all] Error 2
> gmake[1]: Leaving directory `/home/mhh/src/postgresql-7.1/src'
> gmake: *** [all] Error 2
>
>
> I believe the following patch to backend/Makefile solves the problem:
>
> *** Makefile.orig       Tue Apr 24 09:27:44 2001
> --- Makefile    Tue Apr 24 09:29:47 2001
> ***************
> *** 97,103 ****
>   # up to date when we update the base file.
>
>   $(top_builddir)/src/include/parser/parse.h: $(srcdir)/parser/parse.h
> !       prereqdir=`cd $(dir $<) && pwd` && \
>           cd $(dir $@) && rm -f $(notdir $@) && \
>           $(LN_S) $$prereqdir/$(notdir $<) .
>
> --- 97,103 ----
>   # up to date when we update the base file.
>
>   $(top_builddir)/src/include/parser/parse.h: $(srcdir)/parser/parse.h
> !       prereqdir=`cd $(dir $<) > /dev/null && pwd` && \
>           cd $(dir $@) && rm -f $(notdir $@) && \
>           $(LN_S) $$prereqdir/$(notdir $<) .
>
>
>
>
> Sample Code
>
>
> No file was uploaded with this report
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: pg_regress hangs on parallel test
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: build of PL/Perl cannot find include files.