[packages/apr_memcache] - rel 5, use correct apr type

baggins baggins at pld-linux.org
Sat Mar 7 21:59:06 CET 2026


commit f8e284c69cde4a8eaa4b029b54aca8812e150ed2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Mar 7 22:58:50 2026 +0100

    - rel 5, use correct apr type

 apr_memcache.spec |  4 +++-
 apr_size_t.patch  | 22 ++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/apr_memcache.spec b/apr_memcache.spec
index 1146a4c..81a048d 100644
--- a/apr_memcache.spec
+++ b/apr_memcache.spec
@@ -2,12 +2,13 @@ Summary:	A client for memcached
 Summary(pl.UTF-8):	Klient memcached
 Name:		apr_memcache
 Version:	0.7.0
-Release:	4
+Release:	5
 License:	Apache v2.0
 Group:		Libraries
 Source0:	http://www.outoforder.cc/downloads/apr_memcache/%{name}-%{version}.tar.bz2
 # Source0-md5:	1d62fea9253d17d304cfe9b26813ef4c
 Patch0:		%{name}-libtool.patch
+Patch1:		apr_size_t.patch
 URL:		http://www.outoforder.cc/projects/libs/apr_memcache/
 BuildRequires:	apr-devel >= 1:1.2.2
 BuildRequires:	apr-util-devel >= 1:1.2.2
@@ -56,6 +57,7 @@ Statyczna biblioteka apr_memcache.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__libtoolize}
diff --git a/apr_size_t.patch b/apr_size_t.patch
new file mode 100644
index 0000000..752ae36
--- /dev/null
+++ b/apr_size_t.patch
@@ -0,0 +1,22 @@
+--- apr_memcache-0.7.0/memcache/apr_memcache.c~	2005-04-14 10:27:36.000000000 +0200
++++ apr_memcache-0.7.0/memcache/apr_memcache.c	2026-03-07 22:55:37.106666741 +0100
+@@ -459,7 +459,7 @@
+ 
+ static apr_status_t get_server_line(apr_memcache_conn_t* conn)
+ {
+-    int bsize = BUFFER_SIZE;
++    apr_size_t bsize = BUFFER_SIZE;
+     apr_status_t rv = APR_SUCCESS;
+ 
+     rv = apr_brigade_split_line(conn->tb, conn->bb, APR_BLOCK_READ, BUFFER_SIZE);
+--- apr_memcache-0.7.0/memcache/apr_memcache.c~	2026-03-07 22:56:28.000000000 +0100
++++ apr_memcache-0.7.0/memcache/apr_memcache.c	2026-03-07 22:57:18.793333420 +0100
+@@ -672,7 +672,7 @@
+         char *length;
+         char *start;
+         char *last;
+-        apr_uint32_t len;
++        apr_size_t len;
+ 
+         start = conn->buffer;
+         flags = apr_strtok(conn->buffer," ",&last);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apr_memcache.git/commitdiff/f8e284c69cde4a8eaa4b029b54aca8812e150ed2



More information about the pld-cvs-commit mailing list