[packages/cdflib] - added no-common patch (fixes build with -fno-common, gcc 10 default)

qboosh qboosh at pld-linux.org
Thu Nov 12 20:06:10 CET 2020


commit 97c95897fc987051816f01e6cd7f473a26991f43
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Nov 12 20:06:17 2020 +0100

    - added no-common patch (fixes build with -fno-common, gcc 10 default)

 cdflib-no-common.patch | 40 ++++++++++++++++++++++++++++++++++++++++
 cdflib.spec            |  2 ++
 2 files changed, 42 insertions(+)
---
diff --git a/cdflib.spec b/cdflib.spec
index e73314f..1d7083f 100644
--- a/cdflib.spec
+++ b/cdflib.spec
@@ -10,6 +10,7 @@ Source0:	https://cdaweb.gsfc.nasa.gov/pub/software/cdf/dist/cdf37_1/linux/cdf37_
 # Source0-md5:	0f434ffbb7f6ffe39b2bb20c5a940aee
 Patch0:		%{name}-opt.patch
 Patch1:		%{name}-soname.patch
+Patch2:		%{name}-no-common.patch
 URL:		https://cdf.gsfc.nasa.gov/cdf_home.html
 BuildRequires:	gcc-fortran >= 6:4.4.2
 BuildRequires:	ncurses-devel
@@ -62,6 +63,7 @@ API Javy do biblioteki CDF.
 %setup -q -n cdf37_1-dist
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 # note: included zlib (src/lib/zlib) is modified (at last public symbol names)
 
diff --git a/cdflib-no-common.patch b/cdflib-no-common.patch
new file mode 100644
index 0000000..e638f05
--- /dev/null
+++ b/cdflib-no-common.patch
@@ -0,0 +1,40 @@
+--- cdf37_1-dist/src/include/cdfedit.h.orig	2019-01-24 20:17:20.000000000 +0100
++++ cdf37_1-dist/src/include/cdfedit.h	2020-11-12 19:56:15.464712277 +0100
+@@ -260,6 +260,7 @@
+ Logical browseOnly;             /* TRUE if the CDF is being browsed. */
+ Logical compressed;             /* TRUE if the currently open CDF is
+ 				   compressed. */
++Logical ziso8601;
+ #else
+ extern Logical report[3];
+ extern Logical dumpStatistics;
+@@ -269,8 +270,8 @@
+ extern char olhFile[];
+ extern Logical browseOnly;
+ extern Logical compressed;
++extern Logical ziso8601;
+ #endif
+-Logical ziso8601;
+ 
+ /******************************************************************************
+ * Function prototypes.
+--- cdf37_1-dist/src/include/cdfstats.h.orig	2019-01-24 18:58:21.000000000 +0100
++++ cdf37_1-dist/src/include/cdfstats.h	2020-11-12 20:00:34.328044604 +0100
+@@ -102,6 +102,7 @@
+ long fillvalAttrN;
+ long formatAttrN;
+ long majority;
++Logical ziso8601;
+ #else
+ extern Logical updateValids;
+ extern Logical updateScales;
+@@ -116,8 +117,8 @@
+ extern long fillvalAttrN;
+ extern long formatAttrN;
+ extern long majority;
++extern Logical ziso8601;
+ #endif
+-Logical ziso8601;
+ /******************************************************************************
+ * VarStruct.
+ ******************************************************************************/
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cdflib.git/commitdiff/97c95897fc987051816f01e6cd7f473a26991f43



More information about the pld-cvs-commit mailing list