diff --git a/perl-5.36.3-add-Perl_my_strlcat-and-Perl_my_strlcpy-symbol.patch b/perl-5.36.3-add-Perl_my_strlcat-and-Perl_my_strlcpy-symbol.patch new file mode 100644 index 0000000000000000000000000000000000000000..6aac24b873604e1f51cd37fc39b51fc77f21e264 --- /dev/null +++ b/perl-5.36.3-add-Perl_my_strlcat-and-Perl_my_strlcpy-symbol.patch @@ -0,0 +1,40 @@ +From 418eed90da7aef3a6192f9a89cc4879c9a1f1327 Mon Sep 17 00:00:00 2001 +From: wangkaiqiang +Date: Wed, 2 Apr 2025 17:44:15 +0800 +Subject: [PATCH] add Perl_my_strlcat and Perl_my_strlcpy symbol + +--- + Configure | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +diff --git a/Configure b/Configure +index 8a4850f..4cfb912 100755 +--- a/Configure ++++ b/Configure +@@ -19374,8 +19374,9 @@ set d_strlcat_proto strlcat literal "$xx1" literal "$xx2" literal "$xx3" literal + eval $hasproto + case "$d_strlcat_proto" in + define) # see if strlcat exists +- set strlcat d_strlcat +- eval $inlibc ++ val=$undef ++ set d_strlcat ++ eval $setvar + ;; + *) val=$undef + set d_strlcat +@@ -19395,8 +19396,9 @@ set d_strlcpy_proto strlcpy literal "$xx1" literal "$xx2" literal "$xx3" literal + eval $hasproto + case "$d_strlcpy_proto" in + define) # see if strlcpy exists +- set strlcpy d_strlcpy +- eval $inlibc ++ val=$undef ++ set d_strlcpy ++ eval $setvar + ;; + *) val=$undef + set d_strlcpy +-- +2.39.3 + diff --git a/perl.spec b/perl.spec index 7be2777c26139f97b7ce8d4749be9a9ffb1b58f3..8bab9343fd0f6755cb68ed69d1152db13b3f4cc9 100644 --- a/perl.spec +++ b/perl.spec @@ -1,5 +1,5 @@ # anolis_release number must be even higher, because dual-lived modules will be broken otherwise -%define anolis_release 15 +%define anolis_release 16 %global perl_version 5.36.3 %global perl_epoch 4 @@ -65,6 +65,7 @@ Patch13: perl-5.28.0-Pass-CFLAGS-to-dtrace.patch Patch200: perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-CBuilder-on-Li.patch Patch201: perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-MM-on-Linux.patch Patch202: perl-5.36.0-Add-definition-of-OPTIMIZE-to-.ph-files.patch +Patch203: perl-5.36.3-add-Perl_my_strlcat-and-Perl_my_strlcpy-symbol.patch BuildRequires: bash bzip2-devel coreutils findutils gcc glibc-common make BuildRequires: sed tar zlib-devel @@ -2579,6 +2580,9 @@ LC_ALL=C TEST_JOBS=$JOBS make test_harness %{_mandir}/man3/vmsish.* %changelog +* Wed Apr 2 2025 Kaiqiang Wang - 5.36.3-16 +- add Perl_my_strlcat and Perl_my_strlcpy symbol + * Thu Nov 30 2023 Funda Wang - 5.36.3-15 - New version 5.36.3