Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kcMey-0002BV-JL for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 10 Nov 2020 05:57:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kcMex-0005CL-GI for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 10 Nov 2020 05:57:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kcMex-0005CE-79 for pgsql-pkg-yum@lists.postgresql.org; Tue, 10 Nov 2020 05:57:39 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kcMeu-0004Xl-78 for pgsql-pkg-yum@postgresql.org; Tue, 10 Nov 2020 05:57:37 +0000 Received: by mail-wr1-x42a.google.com with SMTP id l1so6883806wrb.9 for ; Mon, 09 Nov 2020 21:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RoXZ6Efz9DNa1D6nDAKPO5HF+3RsiMQXpOpR3kIf4R4=; b=xkWQkrE9T/JASwaPthU1iwHnxX0R79L1yKfcxPMl1Y2eaVbB6eRqoqVVDQZ1ecYm2F VuCy6QvP3jidILf5fAUAW4z/QOYXbhX2P21qUD+FmCtISX6zeirx3ealAWAxrV8s1N1M x49uQ6OEbSz3BB6Yqrq41/sV5Wg7QDm8HWWbR2oACsYNS61IX/CL6SYFnP3Fmj3G1XZk HsNQhUixc0cVgNe8ud5yTH8meJZgbCoGixLwhFVSWjMLuzdvHTnR339iDL/8It4OyJ5U IAjDKAWjH4W6Uhy1u9h3Pq0hqUEj+VCHEz3D5gIGT+jrz+SQEKDIUd9bCW4SfeG9VuJk yJ8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RoXZ6Efz9DNa1D6nDAKPO5HF+3RsiMQXpOpR3kIf4R4=; b=rcFgCgB0EtNJyvfD+k/cM3yCW0GLiM1HPLxZLcga1vED1x3/YscNs4Hjejo8Ghtz92 KiPXuhlmHgx854uaSbcUeJU7VGFFkM7FVcA4pqrpL7tRJNOg0lthnWffQ4hYsvsOMclS bHT+vVJkho1NT524CcF8KIsbTXqTYwJWvwdZSZox+AvV3TDoNBl7LSIg9+gNoA90HR2Z sh2T0pt7f8uO3mZvyWkxsQBSYwJnl80sfwQXGD6gu/SzbW1IcvSz2Z1EmNLyfMD2TcvT 20DEYdKCgu3/8iXilVmWT0K53xWyPcwVVfEQAPyJKsP50gI95nj4Jpc7eex3IJlB/XNB M/ig== X-Gm-Message-State: AOAM533KUV6eOBnxu+XkMgnWA3qXy2j6kiBr/t8QFCNw9h8loBPjVLTc /hEJjKHsASrGS702JJgYWb+MkMy02LZ8iX99NZBf/iSx8Tj+s9a2MhrlE4wrgjCs/FpPhsYo2yi ERTdU+FYHpiV7QMBEMtXNR1qVJCF8CgoqzIao3NrHAhmW/yOzbbmr2lLPWA2HKKrl0bh2I93qHq rYG1KTo6j3MEsrSeKx4Jf7xFKDhVNEX88hLsZ5WymOJTYIjCLUVo4K9VhBJcr2gb8= X-Google-Smtp-Source: ABdhPJxD4I25tM3+vR81i22a/P6ctCu5beeCWOclslnWbb5EF+vcDV2fmrWifAhLzuQGVYv4QlPMXMgj1yfFOXGDntM= X-Received: by 2002:adf:f304:: with SMTP id i4mr9297815wro.268.1604987853874; Mon, 09 Nov 2020 21:57:33 -0800 (PST) MIME-Version: 1.0 References: <20201105190206.4358b61d@firost> <20201109114034.2cc8aab5@firost> In-Reply-To: <20201109114034.2cc8aab5@firost> From: Craig Ringer Date: Tue, 10 Nov 2020 13:57:22 +0800 Message-ID: Subject: Re: missing perl test modules in postgresqlXX-devel ? To: Jehan-Guillaume de Rorthais Cc: pgsql-pkg-yum@postgresql.org Content-Type: multipart/alternative; boundary="000000000000e63c9605b3ba5a52" X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000e63c9605b3ba5a52 Content-Type: text/plain; charset="UTF-8" On Mon, Nov 9, 2020 at 6:40 PM Jehan-Guillaume de Rorthais wrote: > > So it looks like at least EL7 packages are broken/different from fedora > 32. Here > are some more informations from a CentOS Linux 7 (vagrant box "centos/7"): > > # repoquery -f /usr/pgsql-12/bin/postgres > postgresql12-server-0:12.2-1PGDG.rhel7.x86_64 > postgresql12-server-0:12.1-2PGDG.rhel7.x86_64 > postgresql12-server-0:12.2-2PGDG.rhel7.x86_64 > postgresql12-server-0:12.3-1PGDG.rhel7.x86_64 > postgresql12-server-0:12.3-5PGDG.rhel7.x86_64 > postgresql12-server-0:12.4-1PGDG.rhel7.x86_64 > > # repoquery -f /usr/pgsql-13/bin/postgres > postgresql13-server-0:13.0-1PGDG.rhel7.x86_64 > > # repoquery -f /usr/pgsql-12/lib/pgxs/src/test/perl/PostgresNode.pm > (nothing) > > # repoquery -f /usr/pgsql-13/lib/pgxs/src/test/perl/PostgresNode.pm > (nothing) > Yeah, that seems wrong. You can find concrete (non-symlink) spec files for current releases with: find -type f -regex '.*/postgresql-\(9\.[456]\|1[0-9]\).spec' e.g. rpm/redhat/master/non-common/postgresql-13/master/postgresql-13.spec You'll note that while they're shared across distro variants, there's a separate specfile for each major release. In rpm/redhat/master/non-common/postgresql-13/master/postgresql-13.spec you'll see %files devel -f pg_devel.lst .... %{pgbaseinstdir}/lib/pgxs/* .... so anything installed in pgxs/* should be packaged. TAP tests get installed if they are enabled. They are enabled if --enable-tap-tests is passed to configure. That is controlled by the stanza %if %enabletaptests --enable-tap-tests \ %endif which in turn is controlled by %if 0%{?rhel} || 0%{?suse_version} >= 1315 %{!?enabletaptests:%global enabletaptests 0} %else %{!?enabletaptests:%global enabletaptests 1} %endif so apparently the TAP tests aren't built/enabled for any RHEL/CentOS versions in -13. The same is true for 10 and up, at least. That's ... surprising. There's no comment to indicate why. Git logs suggest the cause is commit 511834297 "Disable tap tests on RHEL 7" . I think the package in question is perl-Test-Simple a.k.a 'perl(Test::Simple)'. It looks like the test should be updated to enable them for RHEL 8 at least. I don't really feel like wrestling builds for an obsolete OS version to get these packaged for EL-7 though. --000000000000e63c9605b3ba5a52 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Mon, Nov 9, 2020 at 6:40 PM Jehan-Guil= laume de Rorthais <= jgdr@dalibo.com> wrote:

So it looks like at least EL7 packages are broken/different from fedora 32.= Here
are some more informations from a CentOS Linux 7 (vagrant box "centos/= 7"):

=C2=A0 # repoquery -f /usr/pgsql-12/bin/postgres
=C2=A0 postgresql12-server-0:12.2-1PGDG.rhel7.x86_64
=C2=A0 postgresql12-server-0:12.1-2PGDG.rhel7.x86_64
=C2=A0 postgresql12-server-0:12.2-2PGDG.rhel7.x86_64
=C2=A0 postgresql12-server-0:12.3-1PGDG.rhel7.x86_64
=C2=A0 postgresql12-server-0:12.3-5PGDG.rhel7.x86_64
=C2=A0 postgresql12-server-0:12.4-1PGDG.rhel7.x86_64

=C2=A0 # repoquery -f /usr/pgsql-13/bin/postgres
=C2=A0 postgresql13-server-0:13.0-1PGDG.rhel7.x86_64

=C2=A0 # repoquery -f /usr/pgsql-12/lib/pgxs/src/test/perl/PostgresNode.pm<= br> =C2=A0 (nothing)

=C2=A0 # repoquery -f /usr/pgsql-13/lib/pgxs/src/test/perl/PostgresNode.pm<= br> =C2=A0 (nothing)

Yeah, that seems wrong= .

You can find concrete (non-symlink) spec files f= or current releases with:

=C2=A0=C2=A0=C2=A0=C2=A0 find -type f -regex '.*/postgresql-\(9\.[456= ]\|1[0-9]\).spec'

e.g.

=C2=A0=C2=A0=C2=A0 rpm/redhat/master/non-common/postgresql-13/master/= postgresql-13.spec

You'll note that while they're shared across dis= tro variants, there's a separate specfile for each major release.

In rpm/redhat/master/non= -common/postgresql-13/master/postgresql-13.spec you'll see
=C2=A0=C2=A0=C2=A0 %files devel -f pg_devel.lst
=C2= =A0=C2=A0=C2=A0 ....
=C2=A0=C2=A0=C2=A0 %{pgbaseinstdir}/lib/= pgxs/*
=C2=A0=C2=A0=C2=A0 ....

so anyth= ing installed in pgxs/* should be packaged.

TAP tests get installed if they = are enabled. They are enabled if --enable-tap-tests is passed to configure.= That is controlled by the stanza

=C2=A0=C2=A0=C2=A0 %if %enabletaptests
=C2= =A0=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 --enable-tap-tests \
=C2=A0= =C2=A0=C2=A0 %endif

which in turn is controlled by

=C2=A0=C2=A0=C2=A0 %if 0%{?rhel}= || 0%{?suse_version} >=3D 1315
=C2=A0=C2=A0=C2=A0 %{!?enabletaptests= :%global enabletaptests 0}
=C2=A0=C2=A0=C2=A0 %else
=C2=A0=C2=A0=C2= =A0 %{!?enabletaptests:%global enabletaptests 1}
=C2=A0=C2=A0=C2=A0 %end= if

so = apparently the TAP tests aren't built/enabled for any RHEL/CentOS versi= ons in -13. The same is true for 10 and up, at least.

That's ... surpri= sing. There's no comment to indicate why.

Git logs suggest the cause is commi= t 511834297 "Disable tap tests =C2=A0on RHEL 7" . I think the pac= kage in question is perl-Test-Simple a.k.a 'perl(Test::Simple)'.

It l= ooks like the test should be updated to enable them for RHEL 8 at least.

I don= 9;t really feel like wrestling builds for an obsolete OS version to get the= se packaged for EL-7 though.
--000000000000e63c9605b3ba5a52--