[arch-commits] Commit in msgpack-c/repos (6 files)
Anatol Pomozov
anatolik at archlinux.org
Tue Mar 3 18:33:55 UTC 2015
Date: Tuesday, March 3, 2015 @ 19:33:55
Author: anatolik
Revision: 128654
archrelease: copy trunk to community-i686, community-x86_64
Added:
msgpack-c/repos/community-i686/
msgpack-c/repos/community-i686/PKGBUILD
(from rev 128653, msgpack-c/trunk/PKGBUILD)
msgpack-c/repos/community-i686/fix_test_failure.patch
(from rev 128653, msgpack-c/trunk/fix_test_failure.patch)
msgpack-c/repos/community-x86_64/
msgpack-c/repos/community-x86_64/PKGBUILD
(from rev 128653, msgpack-c/trunk/PKGBUILD)
msgpack-c/repos/community-x86_64/fix_test_failure.patch
(from rev 128653, msgpack-c/trunk/fix_test_failure.patch)
-----------------------------------------+
community-i686/PKGBUILD | 40 ++++++++++++++++++++++++++++++
community-i686/fix_test_failure.patch | 25 ++++++++++++++++++
community-x86_64/PKGBUILD | 40 ++++++++++++++++++++++++++++++
community-x86_64/fix_test_failure.patch | 25 ++++++++++++++++++
4 files changed, 130 insertions(+)
Copied: msgpack-c/repos/community-i686/PKGBUILD (from rev 128653, msgpack-c/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-03-03 18:33:55 UTC (rev 128654)
@@ -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
+}
Copied: msgpack-c/repos/community-i686/fix_test_failure.patch (from rev 128653, msgpack-c/trunk/fix_test_failure.patch)
===================================================================
--- community-i686/fix_test_failure.patch (rev 0)
+++ community-i686/fix_test_failure.patch 2015-03-03 18:33:55 UTC (rev 128654)
@@ -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;
Copied: msgpack-c/repos/community-x86_64/PKGBUILD (from rev 128653, msgpack-c/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2015-03-03 18:33:55 UTC (rev 128654)
@@ -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
+}
Copied: msgpack-c/repos/community-x86_64/fix_test_failure.patch (from rev 128653, msgpack-c/trunk/fix_test_failure.patch)
===================================================================
--- community-x86_64/fix_test_failure.patch (rev 0)
+++ community-x86_64/fix_test_failure.patch 2015-03-03 18:33:55 UTC (rev 128654)
@@ -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