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 1nwPEl-0000FB-VI for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jun 2022 14:22:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nwPEj-000162-TY for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jun 2022 14:22:13 +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 1nwPEj-00015t-K9 for pgsql-hackers@lists.postgresql.org; Wed, 01 Jun 2022 14:22:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nwPEd-0002W3-3w for pgsql-hackers@lists.postgresql.org; Wed, 01 Jun 2022 14:22:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 251EM6Mb564580 for ; Wed, 1 Jun 2022 10:22:06 -0400 From: Tom Lane To: pgsql-hackers@lists.postgresql.org Subject: plperl tests fail with latest Perl 5.36 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <564578.1654093326.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 01 Jun 2022 10:22:06 -0400 Message-ID: <564579.1654093326@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Apparently 5.36 rejiggers warning classifications in a way that breaks one of our test cases. Perhaps we should switch it to some other warning-triggering condition. regards, tom lane ------- Forwarded Message Date: Wed, 01 Jun 2022 14:08:46 +0000 From: bugzilla@redhat.com To: tgl@sss.pgh.pa.us Subject: [Bug 2092426] New: postgresql-14.3-1.fc37: FTBFS with Perl 5.36 https://bugzilla.redhat.com/show_bug.cgi?id=3D2092426 Bug ID: 2092426 Summary: postgresql-14.3-1.fc37: FTBFS with Perl 5.36 Product: Fedora Version: rawhide URL: https://koji.fedoraproject.org/koji/buildinfo?buildID=3D 1974481 Status: NEW Component: postgresql Assignee: fjanus@redhat.com Reporter: jplesnik@redhat.com QA Contact: extras-qa@fedoraproject.org CC: anon.amish@gmail.com, devrim@gunduz.org, fjanus@redhat.com, hhorak@redhat.com, jmlich83@gmail.com, mkulik@redhat.com, panovotn@redhat.com, pkubat@redhat.com, praiskup@redhat.com, tgl@sss.pgh.pa.us Target Milestone: --- Classification: Fedora I am working on adding Perl 5.36 to Fedora Rawhide/37 (not done yet). The rebuild of postgresql failed with this version in side tag f37-perl: =3D=3D=3D make failure: src/pl/plperl/regression.diffs =3D=3D=3D diff -U3 /builddir/build/BUILD/postgresql-14.3/src/pl/plperl/expected/plperl.out /builddir/build/BUILD/postgresql-14.3/src/pl/plperl/results/plperl.out --- /builddir/build/BUILD/postgresql-14.3/src/pl/plperl/expected/plperl.ou= t = 2022-05-09 21:14:45.000000000 +0000 +++ /builddir/build/BUILD/postgresql-14.3/src/pl/plperl/results/plperl.out= = 2022-06-01 11:23:50.925042793 +0000 @@ -726,8 +726,6 @@ -- check that we can "use warnings" (in this case to turn a warn into an error) -- yields "ERROR: Useless use of sort in scalar context." DO $do$ use warnings FATAL =3D> qw(void) ; my @y; my $x =3D sort @y; 1; $= do$ LANGUAGE plperl; -ERROR: Useless use of sort in scalar context at line 1. -CONTEXT: PL/Perl anonymous code block -- make sure functions marked as VOID without an explicit return work CREATE OR REPLACE FUNCTION myfuncs() RETURNS void AS $$ $_SHARED{myquote} =3D sub { The reason of the failure is a change to existing diagnostics[1]: "Useless use of sort in scalar context is now in the new scalar category. When sort is used in scalar context, it provokes a warning that doing this= is not useful. This warning used to be in the void category. A new category f= or warnings about scalar context has now been added, called scalar." Solution is replacing use warnings FATAL =3D> qw(void) by use warnings FATAL =3D> qw(scalar) for this case. [1] https://metacpan.org/dist/perl/view/pod/perldelta.pod#Changes-to-Existing-= Diagnostics -- = You are receiving this mail because: You are on the CC list for the bug. https://bugzilla.redhat.com/show_bug.cgi?id=3D2092426 ------- End of Forwarded Message