[packages/libmd] - added types patch (fixes build with size_t != unsigned int)

qboosh qboosh at pld-linux.org
Thu Jul 16 21:54:34 CEST 2015


commit d8cef6f4aa4040565fcf0ac6a13622c907f8b1f8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jul 16 21:55:43 2015 +0200

    - added types patch (fixes build with size_t != unsigned int)

 libmd-types.patch | 11 +++++++++++
 libmd.spec        |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/libmd.spec b/libmd.spec
index 7b0bfa7..153e1a2 100644
--- a/libmd.spec
+++ b/libmd.spec
@@ -8,6 +8,7 @@ Group:		Libraries
 Source0:	ftp://ftp.penguin.cz/pub/users/mhi/libmd/%{name}-%{version}.tar.bz2
 # Source0-md5:	1db1795b7e87bbda542e4c33b6ce5566
 Patch0:		%{name}-install.patch
+Patch1:		%{name}-types.patch
 URL:		http://martin.hinner.info/libmd/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -59,6 +60,7 @@ Statyczna biblioteka libmd.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 cp -f /usr/share/automake/config.* .
diff --git a/libmd-types.patch b/libmd-types.patch
new file mode 100644
index 0000000..286f3b2
--- /dev/null
+++ b/libmd-types.patch
@@ -0,0 +1,11 @@
+--- libmd-0.3/rmd160.c.orig	1999-07-31 15:49:32.000000000 +0200
++++ libmd-0.3/rmd160.c	2015-07-16 21:52:58.361033103 +0200
+@@ -378,7 +378,7 @@
+    Update the RIPEMD-160 hash state for a block of data.
+  */
+ void
+-RMD160Update (RMD160_CTX * ctx, u_int8_t const *buf, size_t len)
++RMD160Update (RMD160_CTX * ctx, u_int8_t const *buf, unsigned len)
+ {
+   unsigned i;
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libmd.git/commitdiff/d8cef6f4aa4040565fcf0ac6a13622c907f8b1f8



More information about the pld-cvs-commit mailing list