Re: Support building in a different directory on Solaris

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: Support building in a different directory on Solaris
Дата
Msg-id
Pine.LNX.4.30.0109110144170.680-100000@peter.localdomain
Ответ на
Список
Дерево обсуждения
Support building in a different directory on Solaris Ian Lance Taylor <ian@airs.com>
Re: Support building in a different directory on Solaris Tom Lane <tgl@sss.pgh.pa.us>
Re: Support building in a different directory on Solaris Peter Eisentraut <peter_e@gmx.net>
Re: Support building in a different directory on Solaris Tom Lane <tgl@sss.pgh.pa.us>
Re: Support building in a different directory on Solaris Ian Lance Taylor <ian@airs.com>
Re: Support building in a different directory on Solaris Ian Lance Taylor <ian@airs.com>
Re: Support building in a different directory on Solaris Tom Lane <tgl@sss.pgh.pa.us>
Re: Support building in a different directory on Solaris Bruce Momjian <pgman@candle.pha.pa.us>
Re: Support building in a different directory on Solaris Ian Lance Taylor <ian@airs.com>
Re: Support building in a different directory on Solaris Bruce Momjian <pgman@candle.pha.pa.us>
Re: Support building in a different directory on Solaris Peter Eisentraut <peter_e@gmx.net>
Re: Support building in a different directory on Solaris Ian Lance Taylor <ian@airs.com>
Re: Support building in a different directory on Solaris Peter Eisentraut <peter_e@gmx.net>
Re: Support building in a different directory on Solaris Peter Eisentraut <peter_e@gmx.net>
Re: Support building in a different directory on Solaris Bruce Momjian <pgman@candle.pha.pa.us>
Re: Support building in a different directory on Solaris Ian Lance Taylor <ian@airs.com>
Ian Lance Taylor writes:

> Note that this patch normally will not run prep_buildtree on top of
> the source tree.  That would only happen in exceptional circumstances
> in which /bin/pwd did not return the same string in the same
> directory.  I wrote the patch to address Tom Lane's suggestion of not
> requiring test to support the relatively new -ef option.

I've thought hard about this and the solution that satisfied me most was
that

    test $srcdir -ef . || test `cd $srcdir && /bin/pwd` = `/bin/pwd`

(properly quoted etc.) means srcdir == builddir.  That means on Solaris
you will invoke the second part, as you suggested in your patch, whereas
if test -ef works you'll get the safer alternative.

I've also installed your prep_buildtree patch to be on the safe side.

One of my concerns is that prep_buildtree isn't super-portable by design
(using 'find'), but we'll just have to cross our fingers that nobody
exercises all these unlikely cases.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter

В списке pgsql-patches по дате отправления
От: Jeroen van Vianen
Дата:
От: Kenji Sugita
Дата:
FAQ