git: 16519bd204a0 - main - databases/mysql80-server: Fix SIGILL on aarch64

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Mon, 26 Aug 2024 08:13:49 UTC
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=16519bd204a0f2a9c46282591eaf29fd01b87721

commit 16519bd204a0f2a9c46282591eaf29fd01b87721
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2024-08-23 17:21:45 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2024-08-26 08:13:37 +0000

    databases/mysql80-server: Fix SIGILL on aarch64
    
    We want to check HWCAP_PMULL not HWCAP_CRC32.
    
    Approved by:    portmgr (trivial runtime fix)
    PR:             280165
---
 databases/mysql80-server/Makefile                                 | 2 +-
 databases/mysql80-server/files/patch-storage_innobase_ut_crc32.cc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/databases/mysql80-server/Makefile b/databases/mysql80-server/Makefile
index a2f1c5073108..a70463c7dcc8 100644
--- a/databases/mysql80-server/Makefile
+++ b/databases/mysql80-server/Makefile
@@ -1,6 +1,6 @@
 PORTNAME?=		mysql
 PORTVERSION=		8.0.39
-PORTREVISION?=		0
+PORTREVISION?=		1
 CATEGORIES=		databases
 MASTER_SITES=		MYSQL/MySQL-8.0
 PKGNAMESUFFIX?=		80-server
diff --git a/databases/mysql80-server/files/patch-storage_innobase_ut_crc32.cc b/databases/mysql80-server/files/patch-storage_innobase_ut_crc32.cc
index 1a033524dbce..19a2bb2cc1ad 100644
--- a/databases/mysql80-server/files/patch-storage_innobase_ut_crc32.cc
+++ b/databases/mysql80-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; }