Re: [HACKERS] Perl library (was Building Postgres)

Поиск
Список
Период
Сортировка
От Mark Hollomon
Тема Re: [HACKERS] Perl library (was Building Postgres)
Дата
Msg-id 377799C3.47670B94@americasm01.nt.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Building Postgres  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Thomas Lockhart wrote:
> 
> > For v6.5, I think I'm going to do the phased build (the "repeating"
> > option).
> 
> OK, I think I've got a good start at a Postgres-6.5 rpm set. It will
> have the apps using shared libraries, rather than static links. It
> includes more interfaces than past rpms, including ODBC, and I've
> separated out the language-specific features into separate rpms (e.g.
> the tcl interfaces are in postgres-tcl-6.5-1.rpm).
> 
> I'm now trying to package the perl (and next, python) interfaces. Can
> someone with perl installation experience give me some hints on what
> actually needs to be installed and how it has to happen?
> 
> The Postgres source tree uses a perl-based make system which ends up
> with very installation-specific and perl-version-specific target
> paths, but I don't know if these paths are actually used in the final
> product. Will I need to put Makefile.PL, etc., in the binary rpm
> itself, and build the perl interface on the fly for every target
> machine? Can I instead just plop some files into the proper place on
> the target machine in a version-independent way?

The incantation
perl -MConfig -e 'print $Config{archlib},"\n"'

will give you the directory where things need to go.

The pm file goes directly in archlib. The sharedlib and the bootstrap
file go in <archlib>/auto/<extension-name>

<archlib>/Postgres.pm
<archlib>/auto/Postgres/Postgres.so
<archlib>/auto/Postgres/Postgres.bs

That would be a start.

---
Mark Hollomon
mhh@nortelnetworks.com


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

Предыдущее
От: Maarten Boekhold
Дата:
Сообщение: Re: [HACKERS] Perl library (was Building Postgres)
Следующее
От: "Oliver Elphick"
Дата:
Сообщение: Re: [HACKERS] Perl library (was Building Postgres)