[arch-commits] Commit in (5 files)

Anatol Pomozov anatolik at archlinux.org
Tue Mar 3 18:33:18 UTC 2015


    Date: Tuesday, March 3, 2015 @ 19:33:17
  Author: anatolik
Revision: 128653

msgpack-c: move package from AUR

Added:
  msgpack-c/
  msgpack-c/repos/
  msgpack-c/trunk/
  msgpack-c/trunk/PKGBUILD
  msgpack-c/trunk/fix_test_failure.patch

------------------------+
 PKGBUILD               |   40 ++++++++++++++++++++++++++++++++++++++++
 fix_test_failure.patch |   25 +++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

Added: msgpack-c/trunk/PKGBUILD
===================================================================
--- msgpack-c/trunk/PKGBUILD	                        (rev 0)
+++ msgpack-c/trunk/PKGBUILD	2015-03-03 18:33:17 UTC (rev 128653)
@@ -0,0 +1,40 @@
+# Contributor: Leen Jewel <leenjewel at gmail.com>
+# Maintainer: Auguste Pop <auguste [at] gmail [dot] com>
+
+pkgname=msgpack-c
+pkgver=0.5.9
+_tag=cpp-$pkgver
+pkgrel=1
+pkgdesc='An efficient object serialization library'
+arch=(i686 x86_64)
+url='http://msgpack.org/'
+license=(Apache)
+depends=(gcc-libs)
+checkdepends=(gtest)
+source=(https://github.com/msgpack/msgpack-c/archive/$_tag.zip
+        fix_test_failure.patch)
+sha1sums=('04829b0555f3e4fa7970a15518e39e6ef87363e0'
+          'c6abea80cb55279c024d20fc632422c54a603461')
+
+prepare() {
+  cd msgpack-c-$_tag
+  # upstream fix https://github.com/msgpack/msgpack-c/pull/95
+  patch -p1 < ../fix_test_failure.patch
+}
+
+build() {
+  cd msgpack-c-$_tag 
+  ./bootstrap
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd msgpack-c-$_tag
+  make check  
+}
+
+package() {
+  cd msgpack-c-$_tag
+  make DESTDIR="$pkgdir" install
+}


Property changes on: msgpack-c/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: msgpack-c/trunk/fix_test_failure.patch
===================================================================
--- msgpack-c/trunk/fix_test_failure.patch	                        (rev 0)
+++ msgpack-c/trunk/fix_test_failure.patch	2015-03-03 18:33:17 UTC (rev 128653)
@@ -0,0 +1,25 @@
+commit c203928fae924e017f39afb2723414d458fc01a1
+Author: Daiki Ueno <ueno at gnu.org>
+Date:   Thu Jul 17 18:38:04 2014 +0900
+
+    Fix test failure regarding int->float conversion
+    
+    Supply only small integers (< 1^23) to int->float conversion tests,
+    so they can roundtrip without error.
+
+diff --git a/test/msgpack_test.cpp b/test/msgpack_test.cpp
+index fb35c68..6917caf 100644
+--- a/test/msgpack_test.cpp
++++ b/test/msgpack_test.cpp
+@@ -201,10 +201,8 @@ TYPED_TEST_P(IntegerToFloatingPointTest, simple_buffer)
+   v.push_back(1);
+   if (numeric_limits<integer_type>::is_signed) v.push_back(-1);
+   else v.push_back(2);
+-  v.push_back(numeric_limits<integer_type>::min());
+-  v.push_back(numeric_limits<integer_type>::max());
+   for (unsigned int i = 0; i < kLoop; i++) {
+-    v.push_back(rand());
++    v.push_back(rand() % 0x7FFFFF);
+   }
+   for (unsigned int i = 0; i < v.size() ; i++) {
+     msgpack::sbuffer sbuf;



More information about the arch-commits mailing list