Lists: | pgsql-hackers |
---|
From: | Eugene Kazakov <e(dot)kazakov(at)postgrespro(dot)ru> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Small PATCH: check of 2 Perl modules |
Date: | 2016-02-12 13:20:32 |
Message-ID: | 56BDDC20.9020506@postgrespro.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
TAP-tests need two Perl modules: Test::More and IPC::Run.
The patch adds checking of modules in configure.in and configure.
Eugene Kazakov,
Postgres Professional
Attachment | Content-Type | Size |
---|---|---|
CheckingOfPerlModules.patch | text/x-patch | 858 bytes |
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Eugene Kazakov <e(dot)kazakov(at)postgrespro(dot)ru> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Small PATCH: check of 2 Perl modules |
Date: | 2016-02-13 04:47:05 |
Message-ID: | CA+Tgmobysnubke6W_k0_RfNK8TX0nDgWrNdprjTh3s5wJU9vpQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg사설 토토SQL |
On Fri, Feb 12, 2016 at 8:20 AM, Eugene Kazakov
<e(dot)kazakov(at)postgrespro(dot)ru> wrote:
> TAP-tests need two Perl modules: Test::More and IPC::Run.
>
> The patch adds checking of modules in configure.in and configure.
Why would we want that?
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Eugene Kazakov <e(dot)kazakov(at)postgrespro(dot)ru>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Small PATCH: check of 2 Perl modules |
Date: | 2016-02-13 13:04:49 |
Message-ID: | CAB7nPqRXf2otzvrTgJPgqBg_Zuo4+aOnPAtwLLeo0KAJxPL5hw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg롤 토토SQL : |
On Sat, Feb 13, 2016 at 1:47 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Fri, Feb 12, 2016 at 8:20 AM, Eugene Kazakov
> <e(dot)kazakov(at)postgrespro(dot)ru> wrote:
>> TAP-tests need two Perl modules: Test::More and IPC::Run.
>>
>> The patch adds checking of modules in configure.in and configure.
>
> Why would we want that?
I was doubtful at the beginning, but it doesn't hurt to have those
sanity checks in configure actually. The idea is that when
--enable-tap-tests is used now we simply error with "Can't locate
IPC/Run.pm in @INC" when kicking the tests, this check would allow one
to know if his environment is adapted to run the tests or not before
compiling anything.
And with this patch, we would fail now with that:
configure: error: Need Perl IPC::Run module
By the way, the patch given upthread by Eugene is incorrect. To begin
with, AX_PROG_PERL_MODULES has not been compiled by autoconf and I
can't believe that it is available on all platforms, for example on
OSX 10.8 I could not see it. And it is actually here:
https://www.gnu.org/software/autoconf-archive/ax_prog_perl_modules.html
I would recommend grabbing a copy of this file, and change the error
message as follows:
Perl module IPC::Run is required to run TAP tests
See the patch attached as reference, we could simplify the macro of
this m4 file and remove the check for perl, which is here:
+# Make sure we have perl
+if test -z "$PERL"; then
+AC_CHECK_PROG(PERL,perl,perl)
+fi
Though I kept the original script as-is in the patch attached.
Regards,
--
Michael
Attachment | Content-Type | Size |
---|---|---|
configure-tap-modules-v2.patch | text/x-patch | 7.6 KB |
From: | Eugene Kazakov <e(dot)kazakov(at)postgrespro(dot)ru> |
---|---|
To: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Small PATCH: check of 2 Perl modules |
Date: | 2016-02-15 12:50:48 |
Message-ID: | 56C1C9A8.5070604@postgrespro.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
13.02.2016 16:04, Michael Paquier :
> On Sat, Feb 13, 2016 at 1:47 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> On Fri, Feb 12, 2016 at 8:20 AM, Eugene Kazakov
>> <e(dot)kazakov(at)postgrespro(dot)ru> wrote:
>>> TAP-tests need two Perl modules: Test::More and IPC::Run.
>>>
>>> The patch adds checking of modules in configure.in and configure.
>> Why would we want that?
> I was doubtful at the beginning, but it doesn't hurt to have those
> sanity checks in configure actually. The idea is that when
> --enable-tap-tests is used now we simply error with "Can't locate
> IPC/Run.pm in @INC" when kicking the tests, this check would allow one
> to know if his environment is adapted to run the tests or not before
> compiling anything.
>
> And with this patch, we would fail now with that:
> configure: error: Need Perl IPC::Run module
>
> By the way, the patch given upthread by Eugene is incorrect. To begin
> with, AX_PROG_PERL_MODULES has not been compiled by autoconf and I
> can't believe that it is available on all platforms, for example on
> OSX 10.8 I could not see it. And it is actually here:
> https://www.gnu.org/software/autoconf-archive/ax_prog_perl_modules.html
>
> I would recommend grabbing a copy of this file, and change the error
> message as follows:
> Perl module IPC::Run is required to run TAP tests
>
> See the patch attached as reference, we could simplify the macro of
> this m4 file and remove the check for perl, which is here:
> +# Make sure we have perl
> +if test -z "$PERL"; then
> +AC_CHECK_PROG(PERL,perl,perl)
> +fi
> Though I kept the original script as-is in the patch attached.
> Regards,
Michael,
Thank you. You are right, of course. I missed the
m4_ax_prog_perl_modules. Please, see the fixed version of patch in the
attach. I added m4_ax_prog_perl_modules and change the error messages.
The best regards,
Eugene Kazakov,
Postgres Professional
Attachment | Content-Type | Size |
---|---|---|
configure-tap-modules-v3 | text/plain | 5.3 KB |
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Eugene Kazakov <e(dot)kazakov(at)postgrespro(dot)ru>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Small PATCH: check of 2 Perl modules |
Date: | 2016-02-15 13:34:11 |
Message-ID: | 56C1D3D3.7010001@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 2/12/16 8:20 AM, Eugene Kazakov wrote:
> TAP-tests need two Perl modules: Test::More and IPC::Run.
>
> The patch adds checking of modules in configure.in and configure.
I think those modules are part of a standard Perl installation.
From: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Eugene Kazakov <e(dot)kazakov(at)postgrespro(dot)ru>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Small PATCH: check of 2 Perl modules |
Date: | 2016-02-15 13:57:45 |
Message-ID: | 56C1D959.7030105@sigaev.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
> On 2/12/16 8:20 AM, Eugene Kazakov wrote:
>> TAP-tests need two Perl modules: Test::More and IPC::Run.
> I think those modules are part of a standard Perl installation.
IPC::Run is not. At least for perl from ports tree in FreeBSD.
--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/
From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Eugene Kazakov <e(dot)kazakov(at)postgrespro(dot)ru>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Small PATCH: check of 2 Perl modules |
Date: | 2016-02-15 14:49:40 |
Message-ID: | CAB7nPqS868NDrzWHSCb6bEsoshotgbgecCznEWRMQSTOxEjyYg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg토토 사이트SQL |
On Mon, Feb 15, 2016 at 10:57 PM, Teodor Sigaev <teodor(at)sigaev(dot)ru> wrote:
>> On 2/12/16 8:20 AM, Eugene Kazakov wrote:
>>>
>>> TAP-tests need two Perl modules: Test::More and IPC::Run.
>>
>> I think those modules are part of a standard Perl installation.
>
> IPC::Run is not. At least for perl from ports tree in FreeBSD.
On OSX and on Windows as well they are now shipped AFAIK.
--
Michael
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Eugene Kazakov <e(dot)kazakov(at)postgrespro(dot)ru>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Small PATCH: check of 2 Perl modules |
Date: | 2016-02-15 15:02:12 |
Message-ID: | 16821.1455548532@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Teodor Sigaev <teodor(at)sigaev(dot)ru> writes:
>> On 2/12/16 8:20 AM, Eugene Kazakov wrote:
>>> TAP-tests need two Perl modules: Test::More and IPC::Run.
>> I think those modules are part of a standard Perl installation.
> IPC::Run is not. At least for perl from ports tree in FreeBSD.
Yeah, I remember having had to install IPC::Run from CPAN, and a couple
of other things too (but I don't remember Test::More specifically), when
setting up some of my buildfarm critters. It's likely that a lot of
distros bundle these, but I don't think IPC::Run is in a basic
built-from-source Perl.
The real question though is do we need a configure check at all.
Given that investigation into a CMake conversion is actively going
on, I'm hesitant to move the goalposts for it by introducing a brand
new type of configure check. Maybe we should punt this issue until
that patch is either accepted or decisively rejected.
regards, tom lane
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Teodor Sigaev <teodor(at)sigaev(dot)ru>, Eugene Kazakov <e(dot)kazakov(at)postgrespro(dot)ru>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Small PATCH: check of 2 Perl modules |
Date: | 2016-02-15 16:02:55 |
Message-ID: | 56C1F6AF.9080908@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 2/15/16 8:57 AM, Teodor Sigaev wrote:
>> On 2/12/16 8:20 AM, Eugene Kazakov wrote:
>>> TAP-tests need two Perl modules: Test::More and IPC::Run.
>> I think those modules are part of a standard Perl installation.
>
> IPC::Run is not. At least for perl from ports tree in FreeBSD.
Right, that's why we added the configure option. But Test::More is
standard.
From: | Victor Wagner <vitus(at)wagner(dot)pp(dot)ru> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Small PATCH: check of 2 Perl modules |
Date: | 2016-02-16 13:36:43 |
Message-ID: | 20160216163643.3e1a54f5@fafnir.local.vm |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg사설 토토 사이트SQL |
On Mon, 15 Feb 2016 08:34:11 -0500
Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> On 2/12/16 8:20 AM, Eugene Kazakov wrote:
> > TAP-tests need two Perl modules: Test::More and IPC::Run.
> >
> > The patch adds checking of modules in configure.in and configure.
>
> I think those modules are part of a standard Perl installation.
Not everyone have "standard perl installation" nowadays. Most Linux
users, for example, use Perl package from the distrubution, and
distributions love to strip down standard perl installation putting its
parts into separate packages, some of which might be optional.
For example, in Centos 6 it is part of perl-Test-Simple package. which
might be not included into docker images or simular minimal systems for
container-based deployment.
So, it worth few lines of the configure.in to remind user that "Your
perl installation is not standard enough".
--
From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Victor Wagner <vitus(at)wagner(dot)pp(dot)ru> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Small PATCH: check of 2 Perl modules |
Date: | 2016-02-16 15:23:56 |
Message-ID: | 20160216152356.GA765869@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | 503 스포츠 토토 결과 |
Victor Wagner wrote:
> Not everyone have "standard perl installation" nowadays. Most Linux
> users, for example, use Perl package from the distrubution, and
> distributions love to strip down standard perl installation putting its
> parts into separate packages, some of which might be optional.
>
> For example, in Centos 6 it is part of perl-Test-Simple package. which
> might be not included into docker images or simular minimal systems for
> container-based deployment.
That's a good point ...
> So, it worth few lines of the configure.in to remind user that "Your
> perl installation is not standard enough".
... but I agree with the point upthread that this should wait to see
what happens with the CMake stuff, since this is not a newly introduced
problem.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From: | Victor Wagner <vitus(at)wagner(dot)pp(dot)ru> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Small PATCH: check of 2 Perl modules |
Date: | 2016-02-16 16:48:57 |
Message-ID: | 20160216194857.624751a8@wagner.wagner.home |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg토토 핫SQL : |
On Tue, 16 Feb 2016 12:23:56 -0300
Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> wrote:
> ... but I agree with the point upthread that this should wait to see
> what happens with the CMake stuff, since this is not a newly
> introduced problem.
I doubt, that CMake stuff would be ready for 9.6. There is just one
commitfest left, and it would be quite a radical change.
And even if would appear in the next release, it cannot be easily
backpatched to 9.5. So we'll probably live with autoconf until the
end-of-life of 9.5 series at least.
--
Victor Wagner <vitus(at)wagner(dot)pp(dot)ru>
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Victor Wagner <vitus(at)wagner(dot)pp(dot)ru> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Small PATCH: check of 2 Perl modules |
Date: | 2016-03-01 17:21:54 |
Message-ID: | CA+TgmoZFHnJ55NzhWXvDyVa3K4_O8h3dVopgCk+KX_H_8-e0-w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Tue, Feb 16, 2016 at 11:48 AM, Victor Wagner <vitus(at)wagner(dot)pp(dot)ru> wrote:
> On Tue, 16 Feb 2016 12:23:56 -0300
> Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> wrote:
>
>> ... but I agree with the point upthread that this should wait to see
>> what happens with the CMake stuff, since this is not a newly
>> introduced problem.
>
> I doubt, that CMake stuff would be ready for 9.6. There is just one
> commitfest left, and it would be quite a radical change.
>
> And even if would appear in the next release, it cannot be easily
> backpatched to 9.5. So we'll probably live with autoconf until the
> end-of-life of 9.5 series at least.
Yeah, I'm rather doubtful about anything happening with cmake any time soon.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company