From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/hyperscan/
Date: Sat, 29 Apr 2023 06:44:50 +0000 (UTC) [thread overview]
Message-ID: <1682750659.9944b27e6d1242ddb468510b7eb6a9b89ced1b6f.sam@gentoo> (raw)
commit: 9944b27e6d1242ddb468510b7eb6a9b89ced1b6f
Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz>
AuthorDate: Thu Apr 20 22:01:31 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 29 06:44:19 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9944b27e
dev-libs/hyperscan: add 5.4.2
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
Closes: https://github.com/gentoo/gentoo/pull/30674
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/hyperscan/Manifest | 1 +
dev-libs/hyperscan/hyperscan-5.4.2.ebuild | 65 +++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+)
diff --git a/dev-libs/hyperscan/Manifest b/dev-libs/hyperscan/Manifest
index b573ca9efb54..1959778468f2 100644
--- a/dev-libs/hyperscan/Manifest
+++ b/dev-libs/hyperscan/Manifest
@@ -1,2 +1,3 @@
DIST hyperscan-5.4.0.tar.gz 1844963 BLAKE2B 1a5af88655854b4c1ec58e6663b6c9c4b6fca0aa9d3e4daad3992daf911b8f359f48a95b65e4f05c71aa644e0271471d016fafaca05d547b838a9c52ea016e27 SHA512 cfec3f43b9e8b3fbb2e761927f3a173c1230f2688da710ec7708f2941ce6f550a1d3cb48b0b0e2ccf709807390117a7e40047cb99190bcc341f37eb3da13ae62
DIST hyperscan-5.4.1.tar.gz 1848831 BLAKE2B 8be2a05de04a8f32c723e35be16923470ef7dbda830cf0a08c87bfcaff49564f9104f1b48b26a93a7fb157ac74e531841ea43db75bbfe3f836b98e748ccdfd45 SHA512 e9404946287e32604798dc8f9415efe8a47e464cf6e29e5c534ca6074f3674d2d38d4600787d3035ba2898a40e5048fbcd03e23f387ce43f81de4b6c63f70035
+DIST hyperscan-5.4.2.tar.gz 1848851 BLAKE2B a4539df7c6a4b5f097effa67bc777c37ff02aae356953acd4ffe871f621c556f6357c37ad813db144ed50af21881838946b7cb5ef9ea345412de908b84497dac SHA512 328f21133161d16b36ebdc7f8b80a7afe7ca9e7e7433348e9bfa9acb5f3641522e8314beea1b219891f4e95f1392ff8036ebb87780fe808b8b4bd15a535e9509
diff --git a/dev-libs/hyperscan/hyperscan-5.4.2.ebuild b/dev-libs/hyperscan/hyperscan-5.4.2.ebuild
new file mode 100644
index 000000000000..19e846a09a83
--- /dev/null
+++ b/dev-libs/hyperscan/hyperscan-5.4.2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit cmake flag-o-matic python-any-r1
+
+DESCRIPTION="High-performance regular expression matching library"
+SRC_URI="https://github.com/intel/hyperscan/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+HOMEPAGE="
+ https://www.hyperscan.io/
+ https://github.com/intel/hyperscan
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="cpu_flags_x86_avx2 cpu_flags_x86_ssse3"
+
+RDEPEND="dev-libs/boost:="
+DEPEND="${RDEPEND}"
+BDEPEND="
+ ${PYTHON_DEPS}
+ dev-util/ragel
+"
+
+# We can't default this to on as it's against the expectation of
+# how CPU_FLAGS_* work for users.
+REQUIRED_USE="cpu_flags_x86_ssse3"
+
+src_prepare() {
+ # Respect user -O flags
+ sed -i '/set(OPT_CX*_FLAG/d' CMakeLists.txt || die
+
+ # upstream workaround
+ append-cxxflags -Wno-redundant-move
+ cmake_src_prepare
+}
+
+src_configure() {
+ use cpu_flags_x86_ssse3 && append-flags -mssse3
+ use cpu_flags_x86_avx2 && append-flags -mavx2
+
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ -DBUILD_STATIC_AND_SHARED=OFF
+ -DBUILD_EXAMPLES=OFF
+ -DFAT_RUNTIME=false
+ )
+ cmake_src_configure
+}
+
+src_test() {
+ "${BUILD_DIR}"/bin/unit-hyperscan || die
+}
+
+pkg_postinst() {
+ if has_version '<mail-filter/rspamd-3.5'; then
+ elog "There is known issue with <mail-filter/rspamd-3.5 when hyperscan version changes."
+ elog "Known workaround is to remove hyperscan databases ${EROOT}/var/lib/rspamd/*.hs*"
+ elog "See https://github.com/rspamd/rspamd/issues/4409 for more information."
+ fi
+}
next reply other threads:[~2023-04-29 6:44 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-29 6:44 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-11-29 21:16 [gentoo-commits] repo/gentoo:master commit in: dev-libs/hyperscan/ Petr Vaněk
2023-05-29 10:59 Andreas Sturmlechner
2023-05-27 6:42 Joonas Niilola
2023-05-27 6:42 Joonas Niilola
2023-03-19 21:21 Sam James
2023-02-28 14:35 Joonas Niilola
2023-02-22 16:16 Sam James
2022-08-27 11:38 Sam James
2022-07-09 7:49 Sam James
2022-02-10 20:12 Jonas Stein
2022-02-05 19:03 Arthur Zamarin
2021-09-03 12:15 Marek Szuba
2021-03-30 13:03 Joonas Niilola
2021-03-25 14:39 Sam James
2021-02-26 20:58 Agostino Sarubbo
2021-02-25 9:11 Sam James
2021-01-14 1:20 Sam James
2021-01-14 1:20 Sam James
2021-01-04 15:32 Sam James
2020-09-05 15:16 Sam James
2020-06-10 14:25 Joonas Niilola
2020-06-10 14:25 Joonas Niilola
2020-04-04 7:39 Joonas Niilola
2020-04-04 7:39 Joonas Niilola
2020-04-04 7:39 Joonas Niilola
2020-02-07 6:16 Joonas Niilola
2020-02-07 6:16 Joonas Niilola
2019-10-08 14:35 Alexey Shvetsov
2019-10-08 14:35 Alexey Shvetsov
2019-10-07 7:32 Alexey Shvetsov
2019-10-06 13:45 Alexey Shvetsov
2019-08-12 19:52 Michał Górny
2019-08-12 19:47 Michał Górny
2019-02-22 20:51 Andreas Sturmlechner
2018-03-21 9:24 Dirkjan Ochtman
2018-03-21 9:24 Dirkjan Ochtman
2017-10-29 19:33 Dirkjan Ochtman
2017-07-26 13:18 Dirkjan Ochtman
2017-05-30 15:34 Lars Wendler
2017-04-26 18:43 Dirkjan Ochtman
2017-04-26 8:14 Michał Górny
2017-04-26 5:08 Mike Gilbert
2017-04-25 19:29 Dirkjan Ochtman
2017-04-22 9:55 Dirkjan Ochtman
2017-04-22 9:55 Dirkjan Ochtman
2017-04-22 9:55 Dirkjan Ochtman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1682750659.9944b27e6d1242ddb468510b7eb6a9b89ced1b6f.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox