]> git.pld-linux.org Git - packages/memcached.git/commitdiff
workaround x32 -Werror auto/th/memcached-1.4.33-1
authorElan Ruusamäe <glen@delfi.ee>
Tue, 22 Nov 2016 23:04:45 +0000 (01:04 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 22 Nov 2016 23:04:45 +0000 (01:04 +0200)
memcached.spec

index 052a83c4783723aac8f2ff7fef224cbadb9b9761..802d31555a1296a1b36390c14e8c2a677d13a028 100644 (file)
@@ -2,11 +2,11 @@
 # - release notes: https://github.com/memcached/memcached/wiki/ReleaseNotes
 # TODO
 # - fix x32 build failure:
-#items.c: In function 'item_cachedump':
-#items.c:464:24: error: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'time_t' [-Werror=format=]
-#                        (unsigned long)it->exptime + process_started);
-#                        ^
-#items.c:464:24: error: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'time_t' [-Werror=format=]
+#crawler.c: In function 'crawler_metadump_eval':
+#crawler.c:229:13: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t {aka long long int}' [-Wformat=]
+#             "key=%s exp=%ld la=%llu cas=%llu fetch=%s\n",
+#             ^
+#crawler.c:229:13: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t {aka long long int}' [-Wformat=]
 
 # Conditional build:
 %bcond_with            repcached               # repcached support, http://repcached.lab.klab.org/
@@ -15,7 +15,7 @@ Summary:      A high-performance, distributed memory object caching system
 Summary(pl.UTF-8):     Rozproszony, wysokiej wydajności system cache'owania obiektów
 Name:          memcached
 Version:       1.4.33
-Release:       0.1
+Release:       1
 License:       BSD
 Group:         Networking/Daemons
 Source0:       http://www.memcached.org/files/%{name}-%{version}.tar.gz
@@ -54,6 +54,10 @@ Rozproszony, wysokiej wydajności system cache'owania obiektów.
 
 sed -nie '1,/^$/p' ChangeLog
 
+%ifarch x32
+%{__sed} -i -e 's/-Werror//' configure.ac
+%endif
+
 %build
 %{__aclocal}
 %{__autoconf}
This page took 0.029136 seconds and 4 git commands to generate.