[arch-commits] Commit in libmemcached/repos (6 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Dec 5 17:02:02 UTC 2015
Date: Saturday, December 5, 2015 @ 18:02:02
Author: foutrelis
Revision: 148553
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
libmemcached/repos/community-staging-i686/
libmemcached/repos/community-staging-i686/PKGBUILD
(from rev 148552, libmemcached/trunk/PKGBUILD)
libmemcached/repos/community-staging-i686/libmemcached-fix-linking-with-libpthread.patch
(from rev 148552, libmemcached/trunk/libmemcached-fix-linking-with-libpthread.patch)
libmemcached/repos/community-staging-x86_64/
libmemcached/repos/community-staging-x86_64/PKGBUILD
(from rev 148552, libmemcached/trunk/PKGBUILD)
libmemcached/repos/community-staging-x86_64/libmemcached-fix-linking-with-libpthread.patch
(from rev 148552, libmemcached/trunk/libmemcached-fix-linking-with-libpthread.patch)
-------------------------------------------------------------------------+
community-staging-i686/PKGBUILD | 46 ++++++++++
community-staging-i686/libmemcached-fix-linking-with-libpthread.patch | 19 ++++
community-staging-x86_64/PKGBUILD | 46 ++++++++++
community-staging-x86_64/libmemcached-fix-linking-with-libpthread.patch | 19 ++++
4 files changed, 130 insertions(+)
Copied: libmemcached/repos/community-staging-i686/PKGBUILD (from rev 148552, libmemcached/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-12-05 17:02:02 UTC (rev 148553)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=libmemcached
+pkgver=1.0.18
+pkgrel=2
+pkgdesc="C and C++ client library to the memcached server"
+arch=('i686' 'x86_64')
+url="http://libmemcached.org/"
+license=('GPL')
+depends=('glibc' 'libsasl' 'libevent')
+makedepends=('perl' 'memcached' 'python-sphinx')
+source=(http://launchpad.net/$pkgname/1.0/$pkgver/+download/$pkgname-$pkgver.tar.gz
+ libmemcached-fix-linking-with-libpthread.patch)
+sha256sums=('e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82'
+ '02cd903ed217ef6d023bccefecb8d599ffab9b800a4f1a4e0124f4d71888d0dc')
+
+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
+}
+
+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-i686/libmemcached-fix-linking-with-libpthread.patch (from rev 148552, libmemcached/trunk/libmemcached-fix-linking-with-libpthread.patch)
===================================================================
--- community-staging-i686/libmemcached-fix-linking-with-libpthread.patch (rev 0)
+++ community-staging-i686/libmemcached-fix-linking-with-libpthread.patch 2015-12-05 17:02:02 UTC (rev 148553)
@@ -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
+ ;;
+
Copied: libmemcached/repos/community-staging-x86_64/PKGBUILD (from rev 148552, libmemcached/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-12-05 17:02:02 UTC (rev 148553)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=libmemcached
+pkgver=1.0.18
+pkgrel=2
+pkgdesc="C and C++ client library to the memcached server"
+arch=('i686' 'x86_64')
+url="http://libmemcached.org/"
+license=('GPL')
+depends=('glibc' 'libsasl' 'libevent')
+makedepends=('perl' 'memcached' 'python-sphinx')
+source=(http://launchpad.net/$pkgname/1.0/$pkgver/+download/$pkgname-$pkgver.tar.gz
+ libmemcached-fix-linking-with-libpthread.patch)
+sha256sums=('e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82'
+ '02cd903ed217ef6d023bccefecb8d599ffab9b800a4f1a4e0124f4d71888d0dc')
+
+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
+}
+
+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-fix-linking-with-libpthread.patch (from rev 148552, 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 2015-12-05 17:02:02 UTC (rev 148553)
@@ -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