main/snappy: upgrade to 1.1.7 and rebuild dependent packages

This commit is contained in:
TBK 2018-06-23 21:10:00 +02:00 committed by Jakub Jirutka
parent 154a02a72a
commit 5220530cc5
13 changed files with 28 additions and 55 deletions

View File

@ -2,7 +2,7 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=chromium
pkgver=64.0.3282.168
pkgrel=1
pkgrel=2
pkgdesc="chromium web browser"
url="http://www.chromium.org/"
arch="x86_64"

View File

@ -2,7 +2,7 @@
# Contributor: Filipp Andronov <filipp.andronov@gmail.com>
pkgname=mongodb
pkgver=4.0.0
pkgrel=0
pkgrel=1
pkgdesc='A high-performance, open source, schema-free document-oriented database'
url='http://www.mongodb.org'
arch='x86_64 ppc64le'

View File

@ -4,7 +4,7 @@
pkgname=wiredtiger
mongodb_version=3.6.3
pkgver=3.0.0.$mongodb_version
pkgrel=0
pkgrel=1
pkgdesc="High performance, scalable, production quality, NoSQL, Open Source extensible platform for data management"
url="http://www.wiredtiger.com"
arch="x86_64"

View File

@ -4,7 +4,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qemu
pkgver=2.12.0
pkgrel=3
pkgrel=4
pkgdesc="QEMU is a generic machine emulator and virtualizer"
url="http://qemu.org/"
arch="all"

View File

@ -1,37 +1,39 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=snappy
pkgver=1.1.4
pkgrel=4
pkgver=1.1.7
pkgrel=0
pkgdesc="Fast compression and decompression library"
url="http://google.github.io/snappy/"
url="https://google.github.io/snappy/"
arch="all"
license="BSD-3-Clause"
makedepends="cmake"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc"
source="https://github.com/google/snappy/releases/download/$pkgver/snappy-$pkgver.tar.gz
fix-UnalignedCopy64.patch
fix-GetHashTable.patch
"
builddir="$srcdir/$pkgname-$pkgver"
source="$pkgname-$pkgver.tar.gz::https://github.com/google/snappy/archive/$pkgver.tar.gz"
build() {
cd "$builddir"
./configure \
--prefix=/usr \
--disable-static
make
cmake . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DBUILD_SHARED_LIBS=ON
cmake --build .
}
check() {
cd "$builddir"
make check
ctest --verbose
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
local file; for file in AUTHORS CONTRIBUTING.md COPYING NEWS README.md \
format_description.txt framing_format.txt; do
install -m644 -D $file "$pkgdir"/usr/share/doc/$pkgname/$file
done
}
sha512sums="4f522f1d541e3f00d82ccaf6dda5c6ede28d4db19c53717003d8057261fe8630516ed6ff2a28615da032e0de9c6200b560ed5fce4f8714df9916d50d6a7c2178 snappy-1.1.4.tar.gz
a086dbdfe2cb21419b33c2f8a2739224a8e843f2c6a51715100c723b9fbd9aed14bcfa791c20dae785b33ac1d1cf4812ed2c5c5d4058c5b8e56a0e004e9a8c60 fix-UnalignedCopy64.patch
8db7a634c9147286f01eb4bd0a5ff2138540c06acad5fb77aa2977f7b64a19b91ff0f886f650b0a38834a33895f7a1dd4bcfb93af7f6676d59e3fdb8b6efbea0 fix-GetHashTable.patch"
sha512sums="32046f532606ba545a4e4825c0c66a19be449f2ca2ff760a6fa170a3603731479a7deadb683546e5f8b5033414c50f4a9a29f6d23b7a41f047e566e69eca7caf snappy-1.1.7.tar.gz"

View File

@ -1,16 +0,0 @@
Fix for armhf.
See: https://groups.google.com/d/msg/snappy-compression/uhELq553TrI/J34d3D8_BwAJ
https://bugs.alpinelinux.org/issues/8921
--- a/snappy.cc
+++ b/snappy.cc
@@ -323,7 +323,7 @@
*table_size = 256;
} else {
// Since table size must be a power of 2, round up to the next power of 2.
- *table_size = 1 << (std::numeric_limits<size_t>::digits -
+ *table_size = 1 << std::max(1, std::numeric_limits<size_t>::digits -
__builtin_clzll(input_size - 1));
}
if (*table_size <= ARRAYSIZE(small_table_)) {

View File

@ -1,13 +0,0 @@
diff --git a/snappy.cc b/snappy.cc
index 4bcea0b..2db94b7 100644
--- a/snappy.cc
+++ b/snappy.cc
@@ -89,7 +89,7 @@ size_t MaxCompressedLength(size_t source_len) {
namespace {
void UnalignedCopy64(const void* src, void* dst) {
- memcpy(dst, src, 8);
+ memmove(dst, src, 8);
}
void UnalignedCopy128(const void* src, void* dst) {

View File

@ -5,7 +5,7 @@
pkgname=ceph
pkgver=11.0.1
pkgrel=7
pkgrel=8
pkgdesc="User space components of the Ceph file system"
pkgusers="ceph"
pkggroups="ceph"

View File

@ -2,7 +2,7 @@
# Maintainer:
pkgname=leveldb
pkgver=1.20
pkgrel=0
pkgrel=1
pkgdesc="A fast and lightweight key/value database library by Google"
url="https://github.com/google/leveldb"
arch="all"

View File

@ -3,7 +3,7 @@
pkgname=monetdb
_pkgname=MonetDB
pkgver=11.29.7
pkgrel=0
pkgrel=1
pkgdesc="Column-oriented database management system"
url="https://www.monetdb.org/Home"
arch="all"

View File

@ -1,7 +1,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=mongo-c-driver
pkgver=1.9.3
pkgrel=0
pkgrel=1
pkgdesc="Client library written in C for MongoDB"
url="https://github.com/mongodb/mongo-c-driver"
arch="all !x86 !armhf" # testsuite fails on x86 and armhf

View File

@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qt5-qtwebengine
pkgver=5.10.1
pkgrel=3
pkgrel=4
pkgdesc="Qt5 - QtWebEngine components"
url="http://qt-project.org/"
# ppc64le: not supported

View File

@ -2,7 +2,7 @@
# Maintainer:
pkgname=rocksdb
pkgver=4.2
pkgrel=1
pkgrel=2
pkgdesc="A persistent key-value store for fast storage environments"
url="http://rocksdb.org"
arch="x86_64"