[arch-commits] Commit in libtorrent-rasterbar/trunk (PKGBUILD disable-valloc.dpatch)

Ionut Biru ibiru at archlinux.org
Tue Apr 13 09:57:06 UTC 2010


    Date: Tuesday, April 13, 2010 @ 05:57:06
  Author: ibiru
Revision: 77435

upgpkg: libtorrent-rasterbar 0.15.0-4
change the memory allocation to posix_memalign()  instead of valloc(), fixes FS#19072

Added:
  libtorrent-rasterbar/trunk/disable-valloc.dpatch
Modified:
  libtorrent-rasterbar/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |   15 ++++++++-------
 disable-valloc.dpatch |   15 +++++++++++++++
 2 files changed, 23 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-04-13 02:00:28 UTC (rev 77434)
+++ PKGBUILD	2010-04-13 09:57:06 UTC (rev 77435)
@@ -5,22 +5,23 @@
 
 pkgname=libtorrent-rasterbar
 pkgver=0.15.0
-pkgrel=3
+pkgrel=4
 pkgdesc="A C++ library that aims to be a good alternative to all the other bittorrent implementations around"
 url="http://www.rasterbar.com/products/libtorrent/"
 arch=('i686' 'x86_64')
 license=('custom')
-depends=('libsigc++2.0' 'boost>=1.41.0' 'python>=2.6')
-source=(http://libtorrent.googlecode.com/files/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('e1a79045ad041dd82850d2255037108bb17dcbe9a9a8819169a2624b72667db0')
+depends=('boost>=1.41.0' 'python>=2.6')
+source=(http://libtorrent.googlecode.com/files/${pkgname}-${pkgver}.tar.gz
+	disable-valloc.dpatch)
+sha256sums=('e1a79045ad041dd82850d2255037108bb17dcbe9a9a8819169a2624b72667db0'
+	    'ab05b0f9f6fe4d865cf1d440a67b43be8d8ecae2117ca5f79291c17574d3f8d2')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -i "${srcdir}/disable-valloc.dpatch" || return 1
   ./configure --prefix=/usr --enable-python-binding \
               --with-boost-filesystem=mt \
-              --with-boost-thread=mt \
-              --with-boost-regex=mt \
-              --with-boost-program_options=mt || return 1
+              --with-boost-thread=mt || return 1
   make || return 1
   make DESTDIR="${pkgdir}" install || return 1
   install -D COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"

Added: disable-valloc.dpatch
===================================================================
--- disable-valloc.dpatch	                        (rev 0)
+++ disable-valloc.dpatch	2010-04-13 09:57:06 UTC (rev 77435)
@@ -0,0 +1,15 @@
+Index: libtorrent-rasterbar-0.15.0/configure
+===================================================================
+--- libtorrent-rasterbar-0.15.0.orig/configure	2010-03-31 14:32:43.088649904 -0700
++++ libtorrent-rasterbar-0.15.0/configure	2010-03-31 14:35:23.284694490 -0700
+@@ -15297,8 +15297,8 @@
+ fi
+ 
+ 
+-
+-
++# Use posix_memalign() instead of valloc() to avoid issues with eglibc
++$as_echo "#define TORRENT_USE_POSIX_MEMALIGN 1" >>confdefs.h
+ 
+ # Check whether --with-boost-system was given.
+ if test "${with_boost_system+set}" = set; then :




More information about the arch-commits mailing list