Обсуждение: 7.1 Build fails with Bash and CDPATH

Поиск
Список
Период
Сортировка

7.1 Build fails with Bash and CDPATH

От
pgsql-bugs@postgresql.org
Дата:
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

Re: 7.1 Build fails with Bash and CDPATH

От
Bruce Momjian
Дата:
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