Re: [HACKERS] perl interface bug?

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: brook(at)trillium(dot)NMSU(dot)Edu (Brook Milligan)
Cc: tgl(at)sss(dot)pgh(dot)pa(dot)us, E(dot)Mergl(at)bawue(dot)de, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] perl interface bug?
Date: 1998-10-15 19:26:30
Message-ID: 199810151926.PAA20289@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Edmund is thinking of a different situation. The perl5 interface is
> also a "Perl module", which means that it is supposed to build and
> install under very rigid rules --- this is supposed to work:
> perl Makefile.PL
> make
> make test
> make install
>
> Ok, I see now. So, we need the following:
>
> - a Makefile.PL that works out of the box for the above sequence,
> given that POSTGRES_HOME is set properly.
>
> - a Makefile.PL that works with the Postgres installation and gets the
> right shared library, so if we run `make test' later (or use the
> interface in any way) it works immediately upon Postgres
> installation.
>
> A solution:
>
> - a default Makefile.PL that works
>
> - a Makefile.PL replaced from Makefile.PL.in that still works with the
> above, but satisfies the second criterion.
>
> The patches below do this and I think satisfy all considerations
> (you'll let me know if they don't, right? :)
>
> - Makefile.PL has an explanation and if POSTGRES_HOME is not set will
> print a useful message.
>
> - Makefile.PL.in replaces that message with the right thing for
> finding the installed shared library based on configure.
>
> - Makefile: same as before; do the clean before installing to pick up
> the right shared library. Note that no clean is done for any other
> targets.
>
> - configure.in: output Makefile.PL along with the rest. Note also,
> that in the current version $WHOAMI is never set so the perl test
> always fails. Perhaps this should be fixed by setting the variable
> correctly, but in any case the comments no longer agree with this
> stuff anyway.
>
> Cheers,
> Brook

This patch does not apply properly. Please resubmit.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message D'Arcy J.M. Cain 1998-10-15 21:15:27 Re: [HACKERS] Did the inet type get backed out?
Previous Message Brook Milligan 1998-10-15 18:28:33 Re: [HACKERS] perl interface bug?