From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, core187, updated. c842b7e1cdc59fa8f6f95e1978d8115e392d1e59 Date: Fri, 02 Aug 2024 16:51:19 +0000 Message-ID: <4WbBgC66kGz2y1N@people01.haj.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7980456447383272601==" List-Id: --===============7980456447383272601== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, core187 has been updated via c842b7e1cdc59fa8f6f95e1978d8115e392d1e59 (commit) from f08f55e6b4bc423270621dba2bb5804b13a28304 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit c842b7e1cdc59fa8f6f95e1978d8115e392d1e59 Author: Michael Tremer Date: Fri Aug 2 16:49:15 2024 +0000 vectorscan: Fix check for CPU support =20 According to the documentation, Vectorscan checks whether the CPU is supporting the minimum requirement of SSE4.2. However the check is still checking for SSSE3 which makes the library fail on systems without SSE4.2. =20 Signed-off-by: Michael Tremer ----------------------------------------------------------------------- Summary of changes: lfs/vectorscan | 1 + src/patches/vectorscan-5.4.11-sse4.2.patch | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/patches/vectorscan-5.4.11-sse4.2.patch Difference in files: diff --git a/lfs/vectorscan b/lfs/vectorscan index 585fc2894..b56243c42 100644 --- a/lfs/vectorscan +++ b/lfs/vectorscan @@ -92,6 +92,7 @@ $(subst %,%_BLAKE2,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/vectorscan-5.4.11-sse4= .2.patch cd $(DIR_APP) && cmake . \ -DCMAKE_INSTALL_PREFIX:PATH=3D/usr \ -DBUILD_SHARED_LIBS=3DON \ diff --git a/src/patches/vectorscan-5.4.11-sse4.2.patch b/src/patches/vectors= can-5.4.11-sse4.2.patch new file mode 100644 index 000000000..feb867aeb --- /dev/null +++ b/src/patches/vectorscan-5.4.11-sse4.2.patch @@ -0,0 +1,16 @@ +diff --git a/src/hs_valid_platform.c b/src/hs_valid_platform.c +index 0af36b6c..12ae5d9a 100644 +--- a/src/hs_valid_platform.c ++++ b/src/hs_valid_platform.c +@@ -37,9 +37,9 @@ +=20 + HS_PUBLIC_API + hs_error_t HS_CDECL hs_valid_platform(void) { +- /* Hyperscan requires SSSE3, anything else is a bonus */ ++ /* Vectorscan requires SSE4.2, anything else is a bonus */ + #if defined(ARCH_IA32) || defined(ARCH_X86_64) +- if (check_ssse3()) { ++ if (check_sse42()) { + return HS_SUCCESS; + } else { + return HS_ARCH_ERROR; hooks/post-receive -- IPFire 2.x development tree --===============7980456447383272601==--