[packages/ocaml-gmp] - fix int type names - rel 7
baggins
baggins at pld-linux.org
Mon Jun 5 22:19:07 CEST 2017
commit c8e7dad27051b370f7cd8db62dcf4323a64417ad
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Jun 5 22:18:51 2017 +0200
- fix int type names
- rel 7
inttypes.patch | 17 +++++++++++++++++
ocaml-gmp.spec | 4 +++-
2 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/ocaml-gmp.spec b/ocaml-gmp.spec
index df984f8..f39791d 100644
--- a/ocaml-gmp.spec
+++ b/ocaml-gmp.spec
@@ -10,12 +10,13 @@ Summary: GMP binding for OCaml
Summary(pl.UTF-8): Wiązania GMP dla OCamla
Name: ocaml-gmp
Version: 20120224
-Release: 6
+Release: 7
License: LGPL v2+
Group: Libraries
Source0: http://www-verimag.imag.fr/~monniaux/download/mlgmp_%{version}.tar.gz
# Source0-md5: 7001db70f5fed91f230b459425129f96
Patch0: %{name}-make.patch
+Patch1: inttypes.patch
URL: http://www-verimag.imag.fr/~monniaux/programmes.html.en
BuildRequires: gmp-devel >= 5.0.1
BuildRequires: mpfr-devel >= 3.0.1
@@ -51,6 +52,7 @@ biblioteki MLGMP.
%prep
%setup -q -n mlgmp
%patch0 -p1
+%patch1 -p1
%build
# clean up precompiled files
diff --git a/inttypes.patch b/inttypes.patch
new file mode 100644
index 0000000..9ae057f
--- /dev/null
+++ b/inttypes.patch
@@ -0,0 +1,17 @@
+--- mlgmp/config.h.orig 2002-07-30 03:31:12.000000000 +0200
++++ mlgmp/config.h 2017-06-05 22:16:23.433100540 +0200
+@@ -58,11 +58,11 @@
+ #define MPFR_SIZE_ARCH32 16
+ #define MPFR_SIZE_ARCH64 24
+
+-extern void serialize_int_4(int32 i);
++extern void serialize_int_4(int32_t i);
+ extern void serialize_block_1(void * data, long len);
+
+-extern uint32 deserialize_uint_4(void);
+-extern int32 deserialize_sint_4(void);
++extern uint32_t deserialize_uint_4(void);
++extern int32_t deserialize_sint_4(void);
+ extern void deserialize_block_1(void * data, long len);
+
+ #endif /* SERIALIZE */
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-gmp.git/commitdiff/c8e7dad27051b370f7cd8db62dcf4323a64417ad
More information about the pld-cvs-commit
mailing list