]> git.pld-linux.org Git - packages/libmemcached.git/commitdiff
add pointer_comparison.patch auto/th/libmemcached-1.0.18-4
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Fri, 12 Oct 2018 08:35:57 +0000 (10:35 +0200)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Fri, 12 Oct 2018 08:35:57 +0000 (10:35 +0200)
fixes:
> clients/memflush.cc:42:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]

libmemcached.spec
pointer_comparison.patch [new file with mode: 0644]

index 3c4cbcfb30eb17b2311776f9309f245a9fe3511e..b08f65c9ec3e0d93af73a20696e3c25f214093da 100644 (file)
@@ -9,11 +9,12 @@ Summary:      memcached client library
 Summary(pl.UTF-8):     Blblioteka kliencka memcached
 Name:          libmemcached
 Version:       1.0.18
-Release:       3
+Release:       4
 License:       BSD
 Group:         Libraries
 Source0:       https://launchpad.net/libmemcached/1.0/%{version}/+download/%{name}-%{version}.tar.gz
 # Source0-md5: b3958716b4e53ddc5992e6c49d97e819
+Patch1:                pointer_comparison.patch
 URL:           http://libmemcached.org/
 BuildRequires: cyrus-sasl-devel
 BuildRequires: libevent-devel
@@ -62,6 +63,8 @@ Statyczna biblioteka memcached.
 %prep
 %setup -q
 
+%patch1 -p1
+
 %build
 %configure \
        PTHREAD_CFLAGS="-pthread" \
diff --git a/pointer_comparison.patch b/pointer_comparison.patch
new file mode 100644 (file)
index 0000000..1d67e39
--- /dev/null
@@ -0,0 +1,21 @@
+diff -dur -x '*~' libmemcached-1.0.18.orig/clients/memflush.cc libmemcached-1.0.18/clients/memflush.cc
+--- libmemcached-1.0.18.orig/clients/memflush.cc       2014-02-09 12:52:42.000000000 +0100
++++ libmemcached-1.0.18/clients/memflush.cc    2018-10-12 10:29:45.000000000 +0200
+@@ -39,7 +39,7 @@
+ {
+   options_parse(argc, argv);
+-  if (opt_servers == false)
++  if (!opt_servers)
+   {
+     char *temp;
+@@ -48,7 +48,7 @@
+       opt_servers= strdup(temp);
+     }
+-    if (opt_servers == false)
++    if (!opt_servers)
+     {
+       std::cerr << "No Servers provided" << std::endl;
+       exit(EXIT_FAILURE);
This page took 0.132166 seconds and 4 git commands to generate.