]> git.pld-linux.org Git - packages/apache-mod_perl.git/commitdiff
- fix building with perl 5.18 auto/th/apache-mod_perl-2.0.7-0.svn1448242.6
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 10 Jun 2013 12:24:32 +0000 (14:24 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 10 Jun 2013 12:24:32 +0000 (14:24 +0200)
- rel 6

apache-mod_perl.spec
perl-5.18.patch [new file with mode: 0644]

index f2f1540aabef2d50f0bab253b67bb1d8fee85f0e..65d91bb951b4e841c897f2b675a4328d8f26c015 100644 (file)
@@ -11,7 +11,7 @@
 
 %define                ver     2.0.7
 %define                snap    svn1448242
-%define                rel     5
+%define                rel     6
 Summary:       A Perl interpreter for the Apache Web server
 Summary(cs.UTF-8):     Vestavěný interpret Perlu pro WWW server Apache
 Summary(da.UTF-8):     En indbygget Perl-fortolker for webtjeneren Apache
@@ -44,6 +44,7 @@ Source0:      mod_perl-%{version}-%{snap}.tar.gz
 # Source0-md5: 8b62bbfe8b499bc87b6d3d28eb765a24
 Source1:       %{name}.conf
 Patch0:                %{name}-Makefile_PL.patch
+Patch1:                perl-5.18.patch
 URL:           http://perl.apache.org/
 BuildRequires: apache-devel >= 2.0.55-1
 BuildRequires: apr-util-devel >= 1:1.0.0
@@ -253,6 +254,7 @@ pomocnicze do testowania serwera Apache.
 %prep
 %setup -q -n mod_%{mod_name}-%{ver}-%{snap}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/perl-5.18.patch b/perl-5.18.patch
new file mode 100644 (file)
index 0000000..0cce226
--- /dev/null
@@ -0,0 +1,23 @@
++++ mod_perl-2.0.7-svn1448242/src/modules/perl/modperl_perl.c  2013-02-20 08:54:50.000000000 +0100
+--- mod_perl-2.0.8/src/modules/perl/modperl_perl.c     2013-03-26 06:04:00.000000000 +0100
+@@ -265,12 +265,17 @@
+ {
+ #ifdef MP_NEED_HASH_SEED_FIXUP
+     if (MP_init_hash_seed_set) {
+-#if MP_PERL_VERSION(5, 8, 1)
+-        PL_hash_seed       = MP_init_hash_seed;
++#if MP_PERL_VERSION_AT_LEAST(5, 17, 6)
++        memcpy(&PL_hash_seed, &MP_init_hash_seed,
++                sizeof(PL_hash_seed) > sizeof(MP_init_hash_seed) ?
++                    sizeof(MP_init_hash_seed) : sizeof(PL_hash_seed));
+         PL_hash_seed_set   = MP_init_hash_seed_set;
+-#else
++#elif MP_PERL_VERSION_AT_LEAST(5, 8, 2)
+         PL_rehash_seed     = MP_init_hash_seed;
+         PL_rehash_seed_set = MP_init_hash_seed_set;
++#else
++        PL_hash_seed       = MP_init_hash_seed;
++        PL_hash_seed_set   = MP_init_hash_seed_set;
+ #endif
+     }
+ #endif
This page took 0.11435 seconds and 4 git commands to generate.