git: 5a6ab005518a - main - databases/mysql81-server: Fix SIGILL on aarch64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Aug 2024 08:13:51 UTC
The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=5a6ab005518a4351994494df094a0396bc1c0e2e commit 5a6ab005518a4351994494df094a0396bc1c0e2e Author: Mikael Urankar <mikael@FreeBSD.org> AuthorDate: 2024-08-23 17:22:00 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2024-08-26 08:13:37 +0000 databases/mysql81-server: Fix SIGILL on aarch64 We want to check HWCAP_PMULL not HWCAP_CRC32. Approved by: portmgr (trivial runtime fix) PR: 280165 --- databases/mysql81-server/Makefile | 2 +- databases/mysql81-server/files/patch-storage_innobase_ut_crc32.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/databases/mysql81-server/Makefile b/databases/mysql81-server/Makefile index b65cc8a957ae..eecad7e5103e 100644 --- a/databases/mysql81-server/Makefile +++ b/databases/mysql81-server/Makefile @@ -1,6 +1,6 @@ PORTNAME?= mysql PORTVERSION= 8.1.0 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= databases MASTER_SITES= MYSQL/MySQL-8.1 PKGNAMESUFFIX?= 81-server diff --git a/databases/mysql81-server/files/patch-storage_innobase_ut_crc32.cc b/databases/mysql81-server/files/patch-storage_innobase_ut_crc32.cc index d8662b03ba53..6b9ab88ef7d5 100644 --- a/databases/mysql81-server/files/patch-storage_innobase_ut_crc32.cc +++ b/databases/mysql81-server/files/patch-storage_innobase_ut_crc32.cc @@ -17,7 +17,7 @@ + + if (elf_aux_info(AT_HWCAP, &capabilities, sizeof(unsigned long))) + return false; -+ return capabilities & HWCAP_CRC32; ++ return capabilities & HWCAP_PMULL; +} +#else bool can_use_crc32() { return getauxval(AT_HWCAP) & HWCAP_CRC32; }