pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/snappy snappy: update to 1.1.9.
details: https://anonhg.NetBSD.org/pkgsrc/rev/44156fb1a183
branches: trunk
changeset: 455141:44156fb1a183
user: wiz <wiz%pkgsrc.org@localhost>
date: Mon Jun 28 18:46:09 2021 +0000
description:
snappy: update to 1.1.9.
Performance improvements.
Google Test and Google Benchmark are now bundled in third_party/.
diffstat:
devel/snappy/Makefile | 23 ++++++-----------------
devel/snappy/distinfo | 12 ++++++------
devel/snappy/patches/patch-CMakeLists.txt | 16 ----------------
devel/snappy/patches/patch-snappy.cc | 16 ++++++++++++++++
4 files changed, 28 insertions(+), 39 deletions(-)
diffs (99 lines):
diff -r 5082d20c423d -r 44156fb1a183 devel/snappy/Makefile
--- a/devel/snappy/Makefile Mon Jun 28 18:31:06 2021 +0000
+++ b/devel/snappy/Makefile Mon Jun 28 18:46:09 2021 +0000
@@ -1,32 +1,21 @@
-# $NetBSD: Makefile,v 1.15 2021/06/27 11:45:54 tnn Exp $
+# $NetBSD: Makefile,v 1.16 2021/06/28 18:46:09 wiz Exp $
-GITHUB_TAG= ${PKGVERSION_NOREV}
-DISTNAME= snappy-1.1.8
-PKGREVISION= 1
+DISTNAME= snappy-1.1.9
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=google/}
+GITHUB_TAG= ${PKGVERSION_NOREV}
MAINTAINER= agc%NetBSD.org@localhost
HOMEPAGE= https://google.github.io/snappy/
COMMENT= General purpose data compression library
LICENSE= apache-2.0
-
USE_CMAKE= yes
USE_LANGUAGES= c c++
-TEST_TARGET= test
-TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}
-CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
-CMAKE_ARGS+= -DSNAPPY_BUILD_TESTS=ON
-.include "../../devel/googletest/buildlink3.mk"
-.else
-CMAKE_ARGS+= -DSNAPPY_BUILD_TESTS=OFF
-.endif
+CMAKE_ARGS+= -DSNAPPY_BUILD_TESTS:BOOL=OFF
+CMAKE_ARGS+= -DSNAPPY_BUILD_BENCHMARKS:BOOL=OFF
+CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
.include "../../archivers/lzo/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
diff -r 5082d20c423d -r 44156fb1a183 devel/snappy/distinfo
--- a/devel/snappy/distinfo Mon Jun 28 18:31:06 2021 +0000
+++ b/devel/snappy/distinfo Mon Jun 28 18:46:09 2021 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.11 2020/01/16 10:44:25 adam Exp $
+$NetBSD: distinfo,v 1.12 2021/06/28 18:46:09 wiz Exp $
-SHA1 (snappy-1.1.8.tar.gz) = 1eeb144e7b564dd726136c97f869b453d2fb7924
-RMD160 (snappy-1.1.8.tar.gz) = a4a8766720094b1eba919a617dfeb91e0bf9b8c2
-SHA512 (snappy-1.1.8.tar.gz) = efe18ff1b3edda1b4b6cefcbc6da8119c05d63afdbf7a784f3490353c74dced76baed7b5f1aa34b99899729192b9d657c33c76de4b507a51553fa8001ae75c1c
-Size (snappy-1.1.8.tar.gz) = 1096137 bytes
-SHA1 (patch-CMakeLists.txt) = 3cd605de3252208a61ee5c39a628ac89f26d93a2
+SHA1 (snappy-1.1.9.tar.gz) = 83f767c2bc1b0d9114273b883771491ae2bf6f4f
+RMD160 (snappy-1.1.9.tar.gz) = d95b57af803607c75de084968a3029e9609fca29
+SHA512 (snappy-1.1.9.tar.gz) = f1f8a90f5f7f23310423574b1d8c9acb84c66ea620f3999d1060395205e5760883476837aba02f0aa913af60819e34c625d8308c18a5d7a9c4e190f35968b024
+Size (snappy-1.1.9.tar.gz) = 1102382 bytes
+SHA1 (patch-snappy.cc) = fd4860a363193dce2af697ee7a87740a74c21e05
diff -r 5082d20c423d -r 44156fb1a183 devel/snappy/patches/patch-CMakeLists.txt
--- a/devel/snappy/patches/patch-CMakeLists.txt Mon Jun 28 18:31:06 2021 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-CMakeLists.txt,v 1.4 2020/01/16 10:44:25 adam Exp $
-
-Correcly link against googletest libraries.
-gtest-all.cc: needs -lpthread
-
---- CMakeLists.txt.orig 2020-01-14 18:58:53.000000000 +0000
-+++ CMakeLists.txt
-@@ -212,7 +212,7 @@ if(SNAPPY_BUILD_TESTS)
- "snappy-test.cc"
- )
- target_compile_definitions(snappy_unittest PRIVATE -DHAVE_CONFIG_H)
-- target_link_libraries(snappy_unittest snappy ${GFLAGS_LIBRARIES})
-+ target_link_libraries(snappy_unittest snappy ${GTEST_BOTH_LIBRARIES} -lpthread)
-
- if(HAVE_LIBZ)
- target_link_libraries(snappy_unittest z)
diff -r 5082d20c423d -r 44156fb1a183 devel/snappy/patches/patch-snappy.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/snappy/patches/patch-snappy.cc Mon Jun 28 18:46:09 2021 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-snappy.cc,v 1.3 2021/06/28 18:46:09 wiz Exp $
+
+Build fix for 1.1.9 from
+https://github.com/google/snappy/pull/128/commits/0c716d435abe65250100c2caea0e5126ac4e14bd
+
+--- snappy.cc.orig 2021-05-04 22:53:34.000000000 +0000
++++ snappy.cc
+@@ -1014,7 +1014,7 @@ void MemMove(ptrdiff_t dst, const void*
+ }
+
+ SNAPPY_ATTRIBUTE_ALWAYS_INLINE
+-size_t AdvanceToNextTag(const uint8_t** ip_p, size_t* tag) {
++inline size_t AdvanceToNextTag(const uint8_t** ip_p, size_t* tag) {
+ const uint8_t*& ip = *ip_p;
+ // This section is crucial for the throughput of the decompression loop.
+ // The latency of an iteration is fundamentally constrained by the
Home |
Main Index |
Thread Index |
Old Index