libdir for installcheck

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема libdir for installcheck
Дата
Msg-id 44C39167.4040901@dunslane.net
обсуждение исходный текст
Ответы Re: libdir for installcheck  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I see that pg_regress.c has the following (after I adjusted the #ifdef):
       /*        * On Windows, it seems to be necessary to adjust PATH even in        * this case.  (XXX really?  If
so,what if installation has        * been relocated?)        */ #if defined(WIN32) || defined(CYGWIN)
add_to_path("PATH",';', libdir); #endif
 

The "case" referred to is where we aren't using a temp install.

I'm pretty sure that the answer is that we don't need this. It should be 
the responsibility of the installer to set the path properly. In 
buildfarm we avoid this problem by copying the libpq dll to the 
installed path, which works since windows always looks for a dll in the 
directory of the loading executable:
   foreach my $dll (glob("$installdir/lib/*pq.dll"))   {       copy("$dll", "$installdir/bin");   }


Then no path adjustment is necessary.

cheers

andrew





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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [PATCHES] Generic Monitoring Framework with DTrace patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: libdir for installcheck