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 1kdRmx-0003yP-VQ for pgsql-pkg-yum@arkaria.postgresql.org; Fri, 13 Nov 2020 05:38:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kdRmw-0004z0-7I for pgsql-pkg-yum@arkaria.postgresql.org; Fri, 13 Nov 2020 05:38:22 +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 1kdRmv-0004ys-U9 for pgsql-pkg-yum@lists.postgresql.org; Fri, 13 Nov 2020 05:38:22 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kdRms-0005hv-Dk for pgsql-pkg-yum@postgresql.org; Fri, 13 Nov 2020 05:38:20 +0000 Received: by mail-wr1-x434.google.com with SMTP id d12so8321860wrr.13 for ; Thu, 12 Nov 2020 21:38:18 -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=/0vTGv9xb3NfHiuUB1zrcG/lCtWD5ZR1J9eoDaHon7Y=; b=SMFEIZesPsSR29jFiAAXhtogzczXu0h7xYw0xdoTR+3w88jTT9bH0mp5xaYt/xj3AF oZwqUG5Fvm/vjTJw4uec1EEoxq264Rlc+f/nM1q+KvFfc8QG67izUADc5uPjXzG2AgfV 3CGfSyWzOppTxSfNHJpb3TlraPk825cMWrT+jJu6BHbn08mu2pFCqxmue3SVca/x4vqj iS0tYdXBz1C7V8MfmbDplEK0+UuTawycloneINCjApqDZqvEK2EJGBUPD721rPOoBTz1 tmEuTvZQbOwroGFK4SGkx6tP6TQ5FBUTnhM+Eu0DIwjvCJ+k3j8J7nJaZ/8rMoOtVdsw PSNw== 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=/0vTGv9xb3NfHiuUB1zrcG/lCtWD5ZR1J9eoDaHon7Y=; b=Dcd3qPR1PEIPaOHz6HAlLI8ndGrVnI/7mZ95KQ0jZNZYm4PmJ1PUOwiBXMp5iaq2t7 kZiDK/cMkt9rqPzxfmm5YAcyYy1uoLDrxrXEwxbSXkhvWp+40q594J6DO7i53IxDEO20 tZE8otefQ9vVDpiU0tO23olZxk8W4WCNUNo1S0SaXISwUBrDIb5vkPmZPz29EdZcWkp0 xIKLjl5sQRkXdHTsR/VAuOUMJtOUgdan/b4YssbcgwLzRvB2CktUkCzgF2rM7OTQcc6G ni0rtWzGPGGDNIL9DLwVwlvb1iMCqswePyOfkCGKWu8XP9Q1QvNU6DD7il9YHqZFOABF BGSw== X-Gm-Message-State: AOAM5338yJS8V5NRK19O5kC99aaR7w4+nwNgfMr+wQcLSChzCQAN2OS0 ZKx3F0vaCx7ywzXCzIiwnyLVzSmt9PY220p3+s5XZyzUBdU8VLKCUmt6adfZIkjH1SvWA4YvTrG zAuZnLsPqi68w9gxuXC8k8IAsEjFjaarRLVfUV9gtf8o5otngXeHjev7Wk1/PgxOc9JGWOikcNZ nFbXLEvXHeBXeP6vtt/D5+dqo4SwYC16PSNdYBga6WBu6ctymuXBhwzFPAjzZ8yHI= X-Google-Smtp-Source: ABdhPJyuBNPciJrYukEyivk1+v920gnv+RkBszbKLOtOR+eAOCzV7l0l/JQrZHkJPw5obXO+lUYcHPQrGzjppYKEwSI= X-Received: by 2002:adf:de85:: with SMTP id w5mr1108366wrl.90.1605245896733; Thu, 12 Nov 2020 21:38:16 -0800 (PST) MIME-Version: 1.0 References: <20201105190206.4358b61d@firost> <20201109114034.2cc8aab5@firost> <20201110145627.07954db0@firost> <20201112113632.627b8749@firost> In-Reply-To: <20201112113632.627b8749@firost> From: Craig Ringer Date: Fri, 13 Nov 2020 13:38:05 +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="00000000000073c4ec05b3f66f6a" 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 --00000000000073c4ec05b3f66f6a Content-Type: text/plain; charset="UTF-8" On Thu, Nov 12, 2020 at 6:36 PM Jehan-Guillaume de Rorthais wrote: > I fired the vagrant generic/rhel7 box and registered it using my dev > account: > > Thanks. Note that the package came from rhel-7-server-rpms: > > $ sudo yum history packages-info perl-Test-Simple|grep ^From > From repo : rhel-7-server-rpms > > RHEL official documentation confirm the package is available in base > repository: > > > https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/package_manifest/package_lists_base_repository > > Based on this, I think it's appropriate to modify the EL-7 spec file for all Pg versions (example patch is for -10) something like the following. Note that I removed a duplicate guard for "&& 0%{?suse_version} >= 1315" where the test for "enabletaptests" already excluded that. And I made sure that both fedora and rhel require both IPC::Run and Test::More ; I don't see why that was ever not be the case. --- a/rpm/redhat/master/non-common/postgresql-10/master/postgresql-10.spec +++ b/rpm/redhat/master/non-common/postgresql-10/master/postgresql-10.spec @@ -12,7 +12,7 @@ %{!?kerbdir:%global kerbdir "/usr"} %{!?disablepgfts:%global disablepgfts 0} -%if 0%{?rhel} || 0%{?suse_version} >= 1315 +%if (0%{?rhel} && 0%{?rhel} <= 6) || 0%{?suse_version} >= 1315 %{!?enabletaptests:%global enabletaptests 0} %else %{!?enabletaptests:%global enabletaptests 1} @@ -367,17 +367,13 @@ Requires: libicu-devel %endif %if %enabletaptests -%if 0%{?suse_version} && 0%{?suse_version} >= 1315 +%if 0%{?suse_version} Requires: perl-IPC-Run BuildRequires: perl-IPC-Run %endif -%if 0%{?rhel} && 0%{?rhel} <= 7 -Requires: perl-Test-Simple -BuildRequires: perl-Test-Simple -%endif -%if 0%{?fedora} -Requires: perl-IPC-Run -BuildRequires: perl-IPC-Run +%if 0%{?rhel} || 0%{?fedora} +Requires: perl(Test::More) perl(IPC::Run) +BuildRequires: perl(Test::More) perl(IPC::Run) %endif %endif --00000000000073c4ec05b3f66f6a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Nov 12, 2020 at 6:36 PM Jehan-Gui= llaume de Rorthais <jgdr@dalibo.com> wrote:
I fired the vagrant generic/rhel7 box and registered it using my dev accoun= t:


Thanks.

Note that the package came from rhel-7-server-rpms:

=C2=A0 $ sudo yum history packages-info perl-Test-Simple|grep ^From
=C2=A0 From repo=C2=A0 =C2=A0 =C2=A0 : rhel-7-server-rpms

RHEL official documentation confirm the package is available in base reposi= tory:

=C2=A0
https://access.redhat.com/documentation/en-u= s/red_hat_enterprise_linux/7/html/package_manifest/package_lists_base_repos= itory


Based on this, I think it's approp= riate to modify the EL-7 spec file for all Pg versions (example patch is fo= r -10) something like the following.

Note that I r= emoved a duplicate guard for "&& 0%{?suse_version} >=3D 131= 5" where the test for "enabletaptests" already excluded that= . And I made sure that both fedora and rhel require both IPC::Run and Test:= :More ; I don't see why that was ever not be the case.

--- a/rpm/redhat/master/non-common/postgresql-1= 0/master/postgresql-10.spec
+++ b/rpm/redhat/master/non-common/postgresq= l-10/master/postgresql-10.spec
@@ -12,7 +12,7 @@
=C2=A0%{!?kerbdir:%g= lobal kerbdir "/usr"}
=C2=A0%{!?disablepgfts:%global disablepg= fts 0}
=C2=A0
-%if 0%{?rhel} || 0%{?suse_version} >=3D 1315
+%i= f (0%{?rhel} && 0%{?rhel} <=3D 6) || 0%{?suse_version} >=3D 1= 315
=C2=A0%{!?enabletaptests:%global enabletaptests 0}
=C2=A0%else=C2=A0%{!?enabletaptests:%global enabletaptests 1}
@@ -367,17 +367,13 @= @ Requires: libicu-devel
=C2=A0%endif
=C2=A0
=C2=A0%if %enabletapt= ests
-%if 0%{?suse_version} && 0%{?suse_version} >=3D 1315+%if 0%{?suse_version}
=C2=A0Requires: =C2=A0perl-IPC-Run
=C2=A0Buil= dRequires: perl-IPC-Run
=C2=A0%endif
-%if 0%{?rhel} && 0%{?rh= el} <=3D 7
-Requires: =C2=A0perl-Test-Simple
-BuildRequires: perl-= Test-Simple
-%endif
-%if 0%{?fedora}
-Requires: =C2=A0perl-IPC-Run=
-BuildRequires: perl-IPC-Run
+%if 0%{?rhel} || 0%{?fedora}
+Requi= res: =C2=A0perl(Test::More) perl(IPC::Run)
+BuildRequires: perl(Test::Mo= re) perl(IPC::Run)
=C2=A0%endif
=C2=A0%endif

--00000000000073c4ec05b3f66f6a--