[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/10: gnu: libmemcached: Fix build.
From: |
guix-commits |
Subject: |
09/10: gnu: libmemcached: Fix build. |
Date: |
Wed, 22 Jan 2020 18:33:34 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit 737a3c12cd25f76e9fb4872e0a7a1ecb61aff131
Author: Tobias Geerinckx-Rice <address@hidden>
AuthorDate: Wed Jan 22 23:17:48 2020 +0100
gnu: libmemcached: Fix build.
* gnu/packages/databases.scm (libmemcached)[source]: Add patch.
* gnu/packages/patches/libmemcached-build-with-gcc7.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
---
gnu/local.mk | 1 +
gnu/packages/databases.scm | 4 +++-
.../patches/libmemcached-build-with-gcc7.patch | 28 ++++++++++++++++++++++
3 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 51272b2..46d040c 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1165,6 +1165,7 @@ dist_patch_DATA =
\
%D%/packages/patches/mcrypt-CVE-2012-4409.patch \
%D%/packages/patches/mcrypt-CVE-2012-4426.patch \
%D%/packages/patches/mcrypt-CVE-2012-4527.patch \
+ %D%/packages/patches/libmemcached-build-with-gcc7.patch \
%D%/packages/patches/mes-remove-store-name.patch \
%D%/packages/patches/mesa-skip-disk-cache-test.patch \
%D%/packages/patches/mescc-tools-boot.patch \
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index ea74852..ed1d1fe 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -370,7 +370,9 @@ applications.")
(file-name (string-append name "-" version "-checkout"))
(sha256
(base32
- "1842s4dxdh21gdr46q4dgxigidcs6dkqnbnqjwb9l8r0bqx5nb10"))))
+ "1842s4dxdh21gdr46q4dgxigidcs6dkqnbnqjwb9l8r0bqx5nb10"))
+ (patches
+ (search-patches "libmemcached-build-with-gcc7.patch"))))
(build-system gnu-build-system)
(native-inputs
`(("memcached" ,memcached)
diff --git a/gnu/packages/patches/libmemcached-build-with-gcc7.patch
b/gnu/packages/patches/libmemcached-build-with-gcc7.patch
new file mode 100644
index 0000000..51e319d
--- /dev/null
+++ b/gnu/packages/patches/libmemcached-build-with-gcc7.patch
@@ -0,0 +1,28 @@
+Author: Tobias Geerinckx-Rice <address@hidden>
+Date: Wed 22 Jan 22:58:13 CET 2020
+Subject: gnu: memcached: Fix build with GCC 7.
+
+Taken verbating from this bug report:
+<https://bugs.launchpad.net/libmemcached/+bug/1663985>.
+
+diff -up ./clients/memflush.cc.old ./clients/memflush.cc
+--- ./clients/memflush.cc.old 2017-02-12 10:12:59.615209225 +0100
++++ ./clients/memflush.cc 2017-02-12 10:13:39.998382783 +0100
+@@ -39,7 +39,7 @@ int main(int argc, char *argv[])
+ {
+ options_parse(argc, argv);
+
+- if (opt_servers == false)
++ if (!opt_servers)
+ {
+ char *temp;
+
+@@ -48,7 +48,7 @@ int main(int argc, char *argv[])
+ opt_servers= strdup(temp);
+ }
+
+- if (opt_servers == false)
++ if (!opt_servers)
+ {
+ std::cerr << "No Servers provided" << std::endl;
+ exit(EXIT_FAILURE);
- branch master updated (c7dd155 -> ee711c7), guix-commits, 2020/01/22
- 03/10: gnu: font-adobe-source-serif-pro: Don't use unstable tarball., guix-commits, 2020/01/22
- 07/10: gnu: keyutils: Update to 1.6.1., guix-commits, 2020/01/22
- 01/10: gnu: font-adobe-source-code-pro: Don't use unstable tarball., guix-commits, 2020/01/22
- 02/10: gnu: font-adobe-source-sans-pro: Don't use unstable tarball., guix-commits, 2020/01/22
- 04/10: gnu: bochs: Update to 2.6.11., guix-commits, 2020/01/22
- 05/10: gnu: alpine: Remove pre-built binaries from source., guix-commits, 2020/01/22
- 06/10: gnu: burp: Update to 2.3.20., guix-commits, 2020/01/22
- 08/10: gnu: memcached: Update to 1.5.20., guix-commits, 2020/01/22
- 10/10: gnu: gparted: Update to 1.1.0., guix-commits, 2020/01/22
- 09/10: gnu: libmemcached: Fix build.,
guix-commits <=