File PDL-2.4.7.diff of Package perl-PDL

Index: Basic/Core/Core.pm.PL
===================================================================
--- Basic/Core/Core.pm.PL.orig
+++ Basic/Core/Core.pm.PL
@@ -1458,7 +1458,7 @@ my %info = (
 		 },
 	    A => {
 		  Name => 'Address',
-		  Sub => sub { sprintf "%d", $_[0]->address }
+		  Sub => sub { sprintf "%lu", $_[0]->address }
 		 },
 	   );
 
Index: Basic/Core/Core.xs.PL
===================================================================
--- Basic/Core/Core.xs.PL.orig
+++ Basic/Core/Core.xs.PL
@@ -569,11 +569,11 @@ set_inplace(self,val)
   CODE:
     setflag(self->state,PDL_INPLACE,val);
 
-int
+long
 address(self)
   pdl *self;
   CODE:
-    RETVAL = (int) self;
+    RETVAL = (long) self;
   OUTPUT:
     RETVAL
 
Index: Basic/Core/pdlthread.h
===================================================================
--- Basic/Core/pdlthread.h.orig
+++ Basic/Core/pdlthread.h
@@ -32,7 +32,7 @@ typedef struct pdl_errorinfo {
 typedef struct pdl_thread {
 	pdl_errorinfo *einfo;
 #ifdef PDL_THREAD_DEBUG
-        int magicno;
+        unsigned int magicno;
 #endif
 	int gflags;	/* Flags about this struct */
 	int ndims;	/* Number of dimensions threaded over */
Index: Lib/Slatec/Makefile.PL
===================================================================
--- Lib/Slatec/Makefile.PL.orig
+++ Lib/Slatec/Makefile.PL
@@ -135,6 +135,7 @@ WriteMakefile(
 sub MY::postamble {
         $mycompiler     = $f77->compiler();
         $mycflags       = $f77->cflags();
+        $mycflags       .= " -fPIC";
 	my $orig = pdlpp_postamble_int(@::pack);
 	$hack_64bit = ($Config{archname}=~m/x86_64/ ?" -fPIC " : "");
 	$orig =~ s/:\s*slatec\.pd/: slatec.pd/;
Index: perldl.conf
===================================================================
--- perldl.conf.orig
+++ perldl.conf
@@ -123,9 +123,9 @@
 #       OPENGL_DEFINE => '',                                             #
 #                                                                        #
 # Let perl try to figure it out                                          #
-#       OPENGL_LIBS => undef,                                            #
-#       OPENGL_INC => undef,                                             #
-#       OPENGL_DEFINE => undef,                                          #
+       OPENGL_LIBS => '-L/usr/lib64 -lGL -lGLU -lXext -lX11',
+       OPENGL_INC => undef,
+       OPENGL_DEFINE => undef,
 #                                                                        #
 # DEPRECATED  DEPRECATED  DEPRECATED  DEPRECATED  DEPRECATED  DEPRECATED #
 
@@ -229,7 +229,7 @@
 # Do we build PDL::IO::Browser?
 # default -> do not build (module needs to be updated)
 #
-        WITH_IO_BROWSER => 0,
+        WITH_IO_BROWSER => 1,
 
 # Quiet Astro::FITS::Header warnings for PDL build process by default
 # Eventually would be better to set undef by default, and have the
openSUSE Build Service is sponsored by