diff --git a/mod_perl-2.0.2-multilib.patch b/mod_perl-2.0.2-multilib.patch new file mode 100644 index 0000000..9a3c4fe --- /dev/null +++ b/mod_perl-2.0.2-multilib.patch @@ -0,0 +1,32 @@ + +Generate the XS typemap files in sorted order; ensures that the +devel package contents do not differe across multilib platforms. + +--- mod_perl-2.0.2/lib/ModPerl/TypeMap.pm.multilib ++++ mod_perl-2.0.2/lib/ModPerl/TypeMap.pm +@@ -440,12 +440,12 @@ + $code .= qq{\#include "$_"\n} + } + +- for my $t (@{ $self->{struct} }) { ++ for my $t (sort {$a->[1] cmp $b->[1]} @{ $self->{struct} }) { + next if $seen{ $t->[1] }++; + $code .= "typedef $t->[0] * $t->[1];\n"; + } + +- for my $t (@{ $self->{typedef} }) { ++ for my $t (sort {$a->[1] cmp $b->[1]} @{ $self->{typedef} }) { + next if $seen{ $t->[1] }++; + $code .= "typedef $t->[0] $t->[1];\n"; + } +@@ -468,7 +468,9 @@ + my %seen; + my $code = ""; + +- while (my ($ctype, $ptype) = each %$map) { ++ for my $ctype (sort keys %$map) { ++ my $ptype = $map->{$ctype}; ++ + next if $self->special($ptype); + next if $ctype =~ /\s/; + my $class = $ptype; diff --git a/mod_perl.spec b/mod_perl.spec index c79ab85..cb4c1b2 100644 --- a/mod_perl.spec +++ b/mod_perl.spec @@ -2,7 +2,7 @@ Name: mod_perl Version: 2.0.2 -Release: 5.1 +Release: 6 Summary: An embedded Perl interpreter for the Apache Web server Group: System Environment/Daemons @@ -13,6 +13,7 @@ Source1: perl.conf Source2: filter-requires.sh Source3: reap-stale-servers.sh Source4: testlock.sh +Patch0: mod_perl-2.0.2-multilib.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl >= 1:5.6.1 @@ -47,7 +48,7 @@ modules that use mod_perl. %prep %setup -q -n %{name}-%{version} - +%patch0 -p1 -b .multilib %build CFLAGS="$RPM_OPT_FLAGS -fpic" %{__perl} Makefile.PL 2.0.2-6 +- fix multilib conflicts in -devel (#192733) + * Fri Feb 10 2006 Jesse Keating - 2.0.2-5.1 - bump again for double-long bug on ppc(64)