#1 Replace HVhek_UNSHARED by HVhek_NOTSHARED to work with Perl 5.36
Closed 2 years ago by jplesnik. Opened 2 years ago by jplesnik.
Unknown source rawhide  into  rawhide

@@ -0,0 +1,12 @@

+ diff -up lib/core/src/perl/RefHash.xxs.orig polymake-4.6/lib/core/src/perl/RefHash.xxs

+ --- lib/core/src/perl/RefHash.xxs.orig	2022-06-03 15:22:43.288494151 +0200

+ +++ lib/core/src/perl/RefHash.xxs	2022-06-03 15:25:42.957829230 +0200

+ @@ -71,7 +71,7 @@ SV* tmp_keysv::set(SV* keysv)

+     Copy(obj.keyp, HEK_KEY(hekp), sizeof(SV*), char);

+     HEK_LEN(hekp) = sizeof(SV*);

+     HEK_HASH(hekp) = U32(obj.keyl >> 4);          // hash value

+ -   HEK_FLAGS(hekp) = HVhek_UNSHARED;

+ +   HEK_FLAGS(hekp) = HVhek_NOTSHARED;

+     sv.sv_any = &xpv;

+     sv.sv_refcnt = 1;

+     sv.sv_flags = SVt_PVIV | SVf_IVisUV | SVf_POK | SVp_POK | PmFlagsForHashKey;

file modified
+2
@@ -49,6 +49,8 @@

  # Due to the fact that /usr/lib[64] == /lib[64], polymake deduces that the

  # installation prefix is /lib[64] instead of /usr.

  Patch5:         %{name}-prefix.patch

+ # Replace HVhek_UNSHARED by HVhek_NOTSHARED to work with Perl 5.36

+ Patch6:         %{name}-4.6-Perl-5.36-rename-HVhek_UNSHARED-to-HVhek_NOTSHARED.patch

  

  BuildRequires:  4ti2

  %if %{with jreality}

no initial comment

Pull-Request has been closed by jplesnik

2 years ago