[packages/hdf-eos] - added patches for missing includes and prototypes

qboosh qboosh at pld-linux.org
Sun Dec 22 11:10:53 CET 2024


commit d7bddebc4e9ba49f12c1e6af2dee6c11e8975871
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 22 10:06:26 2024 +0100

    - added patches for missing includes and prototypes

 hdf-eos.spec            |  4 ++++
 hdf-eos2-includes.patch | 18 ++++++++++++++++++
 hdf-eos2-types.patch    | 27 +++++++++++++++++++++++++++
 3 files changed, 49 insertions(+)
---
diff --git a/hdf-eos.spec b/hdf-eos.spec
index 8ac750c..a1519d4 100644
--- a/hdf-eos.spec
+++ b/hdf-eos.spec
@@ -15,6 +15,8 @@ Source0:	https://git.earthdata.nasa.gov/projects/DAS/repos/hdfeos/raw/hdf-eos2-%
 Patch0:		hdf-eos2-config.patch
 Patch1:		%{name}-link.patch
 Patch2:		stack-overuse.patch
+Patch3:		hdf-eos2-includes.patch
+Patch4:		hdf-eos2-types.patch
 URL:		http://hdfeos.org/software/library.php#HDF-EOS2
 BuildRequires:	autoconf >= 2.61
 BuildRequires:	automake
@@ -81,6 +83,8 @@ Statyczna biblioteka HDF-EOS 2.
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
+%patch -P3 -p1
+%patch -P4 -p1
 
 %build
 %{__libtoolize}
diff --git a/hdf-eos2-includes.patch b/hdf-eos2-includes.patch
new file mode 100644
index 0000000..9075e7d
--- /dev/null
+++ b/hdf-eos2-includes.patch
@@ -0,0 +1,18 @@
+--- hdf-eos2-3.0/configure.ac.orig	2021-05-18 13:55:16.000000000 +0200
++++ hdf-eos2-3.0/configure.ac	2024-12-22 09:50:37.879648307 +0100
+@@ -307,6 +307,7 @@ AS_IF(
+         AC_TRY_RUN(
+             [
+                 #include <stddef.h>
++                #include <stdlib.h>
+                 #include <szlib.h>
+ 
+                 int main(void)
+@@ -325,6 +326,7 @@ AS_IF(
+         AC_TRY_RUN(
+             [
+                 #include <stddef.h>
++                #include <stdlib.h>
+                 #include <szlib.h>
+ 
+                 int main(void)
diff --git a/hdf-eos2-types.patch b/hdf-eos2-types.patch
new file mode 100644
index 0000000..37be504
--- /dev/null
+++ b/hdf-eos2-types.patch
@@ -0,0 +1,27 @@
+--- hdf-eos2-3.0/gctp/src/br_gctp.c.orig	2021-05-18 13:55:16.000000000 +0200
++++ hdf-eos2-3.0/gctp/src/br_gctp.c	2024-12-22 09:58:42.845838630 +0100
+@@ -2,6 +2,9 @@
+ #ifdef unix
+ 
+ 
++int gctp(double *incoor,long *insys,long *inzone,double *inparm,long *inunit,long *indatum,long *ipr,char *efile,long *jpr,char *pfile,double *outcoor,
++     long *outsys,long *outzone,double *outparm,long *outunit,long *outdatum,char fn27[],char fn83[],long *iflg);
++
+ /*  Fortran bridge routine for the UNIX */
+ 
+ void gctp_(incoor,insys,inzone,inparm,inunit,indatum,ipr,efile,jpr,pfile,
+@@ -22,11 +25,13 @@ long *outsys;
+ long *outzone;
+ double *outparm;
+ long *outunit;
++char fn27[];
++char fn83[];
+ long *iflg;
+ 
+ {
+ gctp(incoor,insys,inzone,inparm,inunit,indatum,ipr,efile,jpr,pfile,outcoor,
+-     outsys,outzone,outparm,outunit,fn27,fn83,iflg);
++     outsys,outzone,outparm,outunit,(void*)0 /*FIXME: outdatum*/,fn27,fn83,iflg);
+ 
+ return;
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hdf-eos.git/commitdiff/d7bddebc4e9ba49f12c1e6af2dee6c11e8975871



More information about the pld-cvs-commit mailing list