pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/hyperscan NetBSD has popcount, use it. Don't ins...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d451d53d20a9
branches:  trunk
changeset: 381276:d451d53d20a9
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Jun 02 19:13:45 2018 +0000

description:
NetBSD has popcount, use it. Don't install non-portable examples.
Bump revision.

diffstat:

 devel/hyperscan/Makefile                          |   3 ++-
 devel/hyperscan/PLIST                             |   6 +-----
 devel/hyperscan/distinfo                          |   5 +++--
 devel/hyperscan/patches/patch-CMakeLists.txt      |  12 +++++++++++-
 devel/hyperscan/patches/patch-src_util_popcount.h |  22 ++++++++++++++++++++++
 5 files changed, 39 insertions(+), 9 deletions(-)

diffs (96 lines):

diff -r 89aad6172190 -r d451d53d20a9 devel/hyperscan/Makefile
--- a/devel/hyperscan/Makefile  Sat Jun 02 19:12:28 2018 +0000
+++ b/devel/hyperscan/Makefile  Sat Jun 02 19:13:45 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2018/05/07 22:18:53 minskim Exp $
+# $NetBSD: Makefile,v 1.2 2018/06/02 19:13:45 joerg Exp $
 
 DISTNAME=      hyperscan-4.7.0
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=01org/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
diff -r 89aad6172190 -r d451d53d20a9 devel/hyperscan/PLIST
--- a/devel/hyperscan/PLIST     Sat Jun 02 19:12:28 2018 +0000
+++ b/devel/hyperscan/PLIST     Sat Jun 02 19:13:45 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2018/05/07 22:18:53 minskim Exp $
+@comment $NetBSD: PLIST,v 1.2 2018/06/02 19:13:45 joerg Exp $
 include/hs/hs.h
 include/hs/hs_common.h
 include/hs/hs_compile.h
@@ -10,7 +10,3 @@
 lib/libhs_runtime.so.4
 lib/libhs_runtime.so.${PKGVERSION}
 lib/pkgconfig/libhs.pc
-share/doc/hyperscan/examples/README.md
-share/doc/hyperscan/examples/patbench.cc
-share/doc/hyperscan/examples/pcapscan.cc
-share/doc/hyperscan/examples/simplegrep.c
diff -r 89aad6172190 -r d451d53d20a9 devel/hyperscan/distinfo
--- a/devel/hyperscan/distinfo  Sat Jun 02 19:12:28 2018 +0000
+++ b/devel/hyperscan/distinfo  Sat Jun 02 19:13:45 2018 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.1 2018/05/07 22:18:53 minskim Exp $
+$NetBSD: distinfo,v 1.2 2018/06/02 19:13:45 joerg Exp $
 
 SHA1 (hyperscan-4.7.0.tar.gz) = 459ee499e712061c2b8417080ee4029f38daccc2
 RMD160 (hyperscan-4.7.0.tar.gz) = bbfd448896d6d1953a65ab1182ee75bf8b47ed76
 SHA512 (hyperscan-4.7.0.tar.gz) = ec32cecc98165ab590cefe37c31aa9cbad813aedd6bec72760574a8ece2a8aefecc229b1d76a2e90c54a51302d1db70620278dbb96d47091ebf846e9f8c4ff08
 Size (hyperscan-4.7.0.tar.gz) = 1738159 bytes
-SHA1 (patch-CMakeLists.txt) = b5fee4471c33cd78d86ab712b0b7b994873935dc
+SHA1 (patch-CMakeLists.txt) = 2d274946ab6bb2b7c9ce56b9519404fbbe02b30e
+SHA1 (patch-src_util_popcount.h) = 3d30d412318c474c9d7a5b7fc45ea3148e6ed4b4
 SHA1 (patch-tools_hsbench_CMakeLists.txt) = 3b4cdd8a7ed17fedb1a090c3dc76fa307084b7a2
 SHA1 (patch-tools_hscollider_CMakeLists.txt) = 261e6d0164927db90155376536add51d0d327d58
diff -r 89aad6172190 -r d451d53d20a9 devel/hyperscan/patches/patch-CMakeLists.txt
--- a/devel/hyperscan/patches/patch-CMakeLists.txt      Sat Jun 02 19:12:28 2018 +0000
+++ b/devel/hyperscan/patches/patch-CMakeLists.txt      Sat Jun 02 19:13:45 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-CMakeLists.txt,v 1.1 2018/05/07 22:19:34 minskim Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.2 2018/06/02 19:13:45 joerg Exp $
 
 Avoid conflicts with pkgsrc's CMAKE_MODULE_PATH override.
+Disable examples as they require Linux specific headers.
 
 --- CMakeLists.txt.orig        2018-01-24 06:58:01.000000000 +0000
 +++ CMakeLists.txt
@@ -135,3 +136,12 @@
                  )
          endif (BUILD_AVX512)
          add_library(hs_exec_common_shared OBJECT
+@@ -1319,8 +1318,3 @@ if (NOT BUILD_STATIC_LIBS)
+     # use shared lib without having to change all the targets
+     add_library(hs ALIAS hs_shared)
+ endif ()
+-
+-
+-if(NOT WIN32)
+-    add_subdirectory(examples)
+-endif()
diff -r 89aad6172190 -r d451d53d20a9 devel/hyperscan/patches/patch-src_util_popcount.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hyperscan/patches/patch-src_util_popcount.h Sat Jun 02 19:13:45 2018 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_util_popcount.h,v 1.1 2018/06/02 19:13:45 joerg Exp $
+
+--- src/util/popcount.h.orig   2018-06-02 15:16:11.582620623 +0000
++++ src/util/popcount.h
+@@ -36,6 +36,7 @@
+ #include "ue2common.h"
+ #include "util/arch.h"
+ 
++#ifndef __NetBSD__
+ static really_inline
+ u32 popcount32(u32 x) {
+ #if defined(HAVE_POPCOUNT_INSTR)
+@@ -69,6 +70,9 @@ u32 popcount64(u64a x) {
+     return popcount32(x >> 32) + popcount32(x);
+ #endif
+ }
++#else
++#include <strings.h>
++#endif
+ 
+ #endif /* UTIL_POPCOUNT_H_ */
+ 



Home | Main Index | Thread Index | Old Index