[arch-commits] Commit in libmemcached/repos (4 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:48:10 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:48:09
  Author: felixonmars
Revision: 658598

archrelease: copy trunk to community-staging-x86_64

Added:
  libmemcached/repos/community-staging-x86_64/
  libmemcached/repos/community-staging-x86_64/PKGBUILD
    (from rev 658597, libmemcached/trunk/PKGBUILD)
  libmemcached/repos/community-staging-x86_64/libmemcached-build.patch
    (from rev 658597, libmemcached/trunk/libmemcached-build.patch)
  libmemcached/repos/community-staging-x86_64/libmemcached-fix-linking-with-libpthread.patch
    (from rev 658597, libmemcached/trunk/libmemcached-fix-linking-with-libpthread.patch)

------------------------------------------------+
 PKGBUILD                                       |   47 +++++++++++++++++++++++
 libmemcached-build.patch                       |   21 ++++++++++
 libmemcached-fix-linking-with-libpthread.patch |   19 +++++++++
 3 files changed, 87 insertions(+)

Copied: libmemcached/repos/community-staging-x86_64/PKGBUILD (from rev 658597, libmemcached/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 13:48:09 UTC (rev 658598)
@@ -0,0 +1,47 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=libmemcached
+pkgver=1.0.18
+pkgrel=4
+pkgdesc="C and C++ client library to the memcached server"
+arch=('x86_64')
+url="https://libmemcached.org/"
+license=('GPL')
+depends=('glibc' 'libsasl' 'libevent')
+makedepends=('perl' 'memcached' 'python-sphinx')
+source=(https://launchpad.net/$pkgname/1.0/$pkgver/+download/$pkgname-$pkgver.tar.gz
+        libmemcached-fix-linking-with-libpthread.patch
+        libmemcached-build.patch)
+sha256sums=('e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82'
+            '02cd903ed217ef6d023bccefecb8d599ffab9b800a4f1a4e0124f4d71888d0dc'
+            'bd62d0080d4ce39981a2e150af54fe80ebe720ba4cfaf5a856c3b9d8a73ecf7d')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  # Fix linking against libpthread (patch from Fedora)
+  # https://bugzilla.redhat.com/show_bug.cgi?id=1037707
+  # https://bugs.launchpad.net/libmemcached/+bug/1281907
+  patch -Np1 -i ../libmemcached-fix-linking-with-libpthread.patch
+
+  # https://bugs.launchpad.net/libmemcached/+bug/1663985
+  patch -Np1 -i ../libmemcached-build.patch
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver"
+  #make -k check
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et:

Copied: libmemcached/repos/community-staging-x86_64/libmemcached-build.patch (from rev 658597, libmemcached/trunk/libmemcached-build.patch)
===================================================================
--- community-staging-x86_64/libmemcached-build.patch	                        (rev 0)
+++ community-staging-x86_64/libmemcached-build.patch	2020-07-07 13:48:09 UTC (rev 658598)
@@ -0,0 +1,21 @@
+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);

Copied: libmemcached/repos/community-staging-x86_64/libmemcached-fix-linking-with-libpthread.patch (from rev 658597, libmemcached/trunk/libmemcached-fix-linking-with-libpthread.patch)
===================================================================
--- community-staging-x86_64/libmemcached-fix-linking-with-libpthread.patch	                        (rev 0)
+++ community-staging-x86_64/libmemcached-fix-linking-with-libpthread.patch	2020-07-07 13:48:09 UTC (rev 658598)
@@ -0,0 +1,19 @@
+diff -up libmemcached-1.0.16/build-aux/ltmain.sh.orig libmemcached-1.0.16/build-aux/ltmain.sh
+--- libmemcached-1.0.16/build-aux/ltmain.sh.orig	2013-12-03 16:36:53.222107642 +0100
++++ libmemcached-1.0.16/build-aux/ltmain.sh	2013-12-03 16:37:35.770132249 +0100
+@@ -5664,6 +5664,15 @@ func_mode_link ()
+ 	    *" $arg "*) ;;
+ 	    * ) func_append new_inherited_linker_flags " $arg" ;;
+ 	esac
++	# As we are forced to pass -nostdlib to g++ during linking, the option
++	# -pthread{,s} is not in effect;  add the -lpthread to $deplist
++	# explicitly to link correctly.
++	if test "$tagname" = CXX -a x"$with_gcc" = xyes; then
++	  case "$arg" in
++	    -pthread*) func_append deplibs " -lpthread" ;;
++	  esac
++	fi
++
+ 	continue
+ 	;;
+ 



More information about the arch-commits mailing list