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

Ionut Biru ibiru at archlinux.org
Mon Apr 23 05:08:48 EDT 2012


    Date: Monday, April 23, 2012 @ 05:08:48
  Author: ibiru
Revision: 156907

db-move: moved libmusicbrainz4 from [testing] to [extra] (i686)

Added:
  libmusicbrainz4/repos/extra-i686/
  libmusicbrainz4/repos/extra-i686/0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch
    (from rev 156695, libmusicbrainz4/repos/testing-i686/0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch)
  libmusicbrainz4/repos/extra-i686/PKGBUILD
    (from rev 156695, libmusicbrainz4/repos/testing-i686/PKGBUILD)
Deleted:
  libmusicbrainz4/repos/testing-i686/

----------------------------------------------------------+
 0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch |   28 ++++++++++++
 PKGBUILD                                                 |   30 +++++++++++++
 2 files changed, 58 insertions(+)

Copied: libmusicbrainz4/repos/extra-i686/0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch (from rev 156695, libmusicbrainz4/repos/testing-i686/0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch)
===================================================================
--- extra-i686/0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch	                        (rev 0)
+++ extra-i686/0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch	2012-04-23 09:08:48 UTC (rev 156907)
@@ -0,0 +1,28 @@
+From 64c68ad42a9089c92dfa4e74f55b6c1b65b8f11c Mon Sep 17 00:00:00 2001
+From: Christophe Fergeau <cfergeau at redhat.com>
+Date: Sun, 4 Mar 2012 14:32:49 +0100
+Subject: [PATCH] Make sure gcc 4.7 can find usleep declaration
+
+Without this, compilation fails with:
+
+libmusicbrainz-4.0.0/src/Query.cc: In member function 'void MusicBrainz4::CQuery::WaitRequest() const':
+libmusicbrainz-4.0.0/src/Query.cc:295:19: error: 'usleep' was not declared in this scope
+---
+ src/Query.cc |    3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/src/Query.cc b/src/Query.cc
+index 5f5934f..9332346 100644
+--- a/src/Query.cc
++++ b/src/Query.cc
+@@ -33,6 +33,7 @@
+ 
+ #include <string.h>
+ #include <sys/time.h>
++#include <unistd.h>
+ 
+ #include <ne_uri.h>
+ 
+-- 
+1.7.7.6
+

Copied: libmusicbrainz4/repos/extra-i686/PKGBUILD (from rev 156695, libmusicbrainz4/repos/testing-i686/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2012-04-23 09:08:48 UTC (rev 156907)
@@ -0,0 +1,30 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Max Fehrm max.fehrm at gmail.com
+
+pkgname=libmusicbrainz4
+pkgver=4.0.0
+pkgrel=1
+pkgdesc="Library That Provides Access to the MusicBrainz Server  "
+url="http://musicbrainz.org/"
+arch=('i686' 'x86_64')
+license=('LGPL2.1')
+depends=('neon')
+makedepends=('cmake')
+source=(ftp://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-$pkgver.tar.gz
+        0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch)
+md5sums=('21c33f5dd20b8bb945b800e2a964f27e'
+         'df1dfa423d32a7a1d08b3fc0114bf087')
+
+build() {
+  cd libmusicbrainz-$pkgver
+  patch -Np1 -i ../0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch
+  cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr
+  make
+}
+
+package() {
+  cd libmusicbrainz-$pkgver
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list