rpms/perl-PDL/devel PDL-2.4.3-perl510.patch, NONE, 1.1 perl-PDL.spec, 1.40, 1.41

Tom Callaway (spot) fedora-extras-commits at redhat.com
Sun Mar 9 03:03:20 UTC 2008


Author: spot

Update of /cvs/pkgs/rpms/perl-PDL/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5746

Modified Files:
	perl-PDL.spec 
Added Files:
	PDL-2.4.3-perl510.patch 
Log Message:
perl 5.10 fix from p5p

PDL-2.4.3-perl510.patch:

--- NEW FILE PDL-2.4.3-perl510.patch ---
diff -up PDL-2.4.3/Basic/Primitive/Makefile.PL.BAD PDL-2.4.3/Basic/Primitive/Makefile.PL
--- PDL-2.4.3/Basic/Primitive/Makefile.PL.BAD	2008-03-08 21:37:30.000000000 -0500
+++ PDL-2.4.3/Basic/Primitive/Makefile.PL	2008-03-08 21:38:16.000000000 -0500
@@ -5,6 +5,7 @@
 # any external PDL module.
 
 use ExtUtils::MakeMaker;
+use Config;
 
 PDL::Core::Dev->import();
 
@@ -43,6 +44,13 @@ EOT
 #);
 %hash = pdlpp_stdargs_int(@::pack);
 $hash{LIBS}->[0] .= ' -lm';
+
+# If we don't do this, and Perl core is using the wrapped API, then it will
+# call (say) srand48_r(), and get its random numbers from drand48_r(), but we
+# will get ours from drand48(), and srand48() never gets called.
+$hash{CCFLAGS} ||= $Config{ccflags};
+$hash{CCFLAGS} .= ' -DPERL_REENTR_API';
+
 WriteMakefile(%hash);
 
 sub MY::postamble {


Index: perl-PDL.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-PDL/devel/perl-PDL.spec,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- perl-PDL.spec	9 Mar 2008 02:59:44 -0000	1.40
+++ perl-PDL.spec	9 Mar 2008 03:02:44 -0000	1.41
@@ -1,6 +1,6 @@
 Name:           perl-PDL
 Version:        2.4.3
-Release:        9%{?dist}
+Release:        10%{?dist}
 Summary:        The Perl Data Language
 
 Group:          Development/Libraries
@@ -144,6 +144,9 @@
 
 
 %changelog
+* Sat Mar 08 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 2.4.3-10
+- actually commit patch to cvs
+
 * Sat Mar 08 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 2.4.3-9
 - patch to fix build against perl 5.10, get useful random numbers
 




More information about the fedora-extras-commits mailing list