Re: Relocatable installs

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: Relocatable installs
Дата
Msg-id 40AA7876.7000704@Yahoo.com
обсуждение исходный текст
Ответ на Re: Relocatable installs  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian wrote:

> Peter Eisentraut wrote:
>> Bruce Momjian wrote:
>> > We already have --disable-rpath.  Seems we would just need something
>> > to use the *.a files.
>> 
>> I think it is perfectly sufficient to say that if you want a relocatable 
>> install, don't use rpath.  Static linking will lead to all other kinds 
>> of madness.
> 
> OK, but if we don't use rpath, don't we have to do the ld.so.conf or
> environment varaible usage so we can find our shared library.  I assume
> the big problem with rpath is that it might find the wrong version of
> our library, right?  Is there another downside to it being set?
> 

Exactly.

Suppose you have one of these silly RPM based Linux systems. One has to 
install PostgreSQL from RPM's in order to satisfy all the dependencies 
for whatever else you want. Now you want to install a relocatable 
version of PostgreSQL somewhere else, because you don't want to mess up 
the RPM installed one.

For sure the ld.so.conf is setup to find the RPM installed version of 
libpq. That's why we use rpath, so that you can install PG somewhere 
else and the /usr/local/pg75/bin/psql will find the libpq in 
/usr/local/pg75/lib instead of /usr/lib. But that's currently a 
configure time option and removing rpath altogether will let everything 
find the old libpq.


Jan

-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Relocatable installs
Следующее
От: Gaetano Mendola
Дата:
Сообщение: Re: Why new features only in magior releases ?