diff --git a/perl-5.33.0-Update-pod-for-SvTRUE-to-indicate-single-param-evalu.patch b/perl-5.33.0-Update-pod-for-SvTRUE-to-indicate-single-param-evalu.patch new file mode 100644 index 0000000..551b315 --- /dev/null +++ b/perl-5.33.0-Update-pod-for-SvTRUE-to-indicate-single-param-evalu.patch @@ -0,0 +1,33 @@ +From b26a606d84ae1a6da560c7cd71d1a33c0dc7178e Mon Sep 17 00:00:00 2001 +From: Karl Williamson +Date: Sun, 14 Jun 2020 12:26:02 -0600 +Subject: [PATCH] Update pod for SvTRUE, to indicate single param evaluation +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +5.32 changed this macro into an inline function so that 'sv' only gets +evaluated once, but didn't update the documentation to reflect that. + +Signed-off-by: Petr Písař +--- + sv.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/sv.h b/sv.h +index 3721b2fb1b..ad8accbf1a 100644 +--- a/sv.h ++++ b/sv.h +@@ -1607,7 +1607,8 @@ false. See C> for a defined/undefined test. Handles 'get' magic + unless the scalar is already C, C or C (the public, not the + private flags). + +-See C> for a version which guarantees to evaluate C only once. ++As of Perl 5.32, this is guaranteed to evaluate C only once. Prior to that ++release, use C> for single evaluation. + + =for apidoc Am|bool|SvTRUE_nomg|SV* sv + Returns a boolean indicating whether Perl would evaluate the SV as true or +-- +2.25.4 + diff --git a/perl.spec b/perl.spec index 39778f8..12ff860 100644 --- a/perl.spec +++ b/perl.spec @@ -170,6 +170,9 @@ Patch14: perl-5.33.0-MUTABLE_PTR-Rmv-non-standard-syntax.patch # Fix SvUV_nomg() macro definition, in upstream after 5.33.0 Patch15: perl-5.33.0-sv.h-Wanted-UOK-but-said-IOK.patch +# Fix SvTRUE() documentation, in upstream after 5.33.0 +Patch16: perl-5.33.0-Update-pod-for-SvTRUE-to-indicate-single-param-evalu.patch + # Link XS modules to libperl.so with EU::CBuilder on Linux, bug #960048 Patch200: perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-CBuilder-on-Li.patch @@ -4171,6 +4174,7 @@ you're not running VMS, this module does nothing. %patch13 -p1 %patch14 -p1 %patch15 -p1 +%patch16 -p1 %patch200 -p1 %patch201 -p1 @@ -4193,6 +4197,7 @@ perl -x patchlevel.h \ 'Fedora Patch13: Pass the correct CFLAGS to dtrace' \ 'Fedora Patch14: Do not use a C compiler reserved identifiers' \ 'Fedora Patch15: Fix SvUV_nomg() macro definition' \ + 'Fedora Patch16: Fix SvTRUE() documentation' \ 'Fedora Patch200: Link XS modules to libperl.so with EU::CBuilder on Linux' \ 'Fedora Patch201: Link XS modules to libperl.so with EU::MM on Linux' \ %{nil} @@ -6913,6 +6918,7 @@ popd * Wed Aug 05 2020 Petr Pisar - 4:5.32.0-459 - Do not use a C compiler reserved identifiers - Fix SvUV_nomg() macro definition +- Fix SvTRUE() documentation * Tue Jul 28 2020 Fedora Release Engineering - 4:5.32.0-458 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild