libdir for installcheck

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

libdir for installcheck

От:
Andrew Dunstan <andrew@dunslane.net>
Дата:

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




Re: libdir for installcheck

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Andrew Dunstan  writes:
> 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.

Could be.  This is just a copy-and-paste of logic that was in the shell
script... feel free to remove it and see what happens ...
		regards, tom lane

FAQ