git: 94eeb38db726 - main - databases/mariadb106-server: fix build on powerpc64*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 15 Jun 2024 10:09:44 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=94eeb38db726c103b6cd9e5e8d7a8babf395425f
commit 94eeb38db726c103b6cd9e5e8d7a8babf395425f
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-06-14 12:00:56 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-06-15 10:09:32 +0000
databases/mariadb106-server: fix build on powerpc64*
/wrkdirs/usr/ports/databases/mariadb106-client/work/mariadb-10.6.18/mysys/crc32/crc32c.cc:498:7: error: use of undeclared identifier 'arch_ppc_probe'
498 | if (arch_ppc_probe())
| ^
1 error generated.
---
databases/mariadb106-server/files/patch-mysys_crc32_crc32c.cc | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/databases/mariadb106-server/files/patch-mysys_crc32_crc32c.cc b/databases/mariadb106-server/files/patch-mysys_crc32_crc32c.cc
new file mode 100644
index 000000000000..ae1d0542c009
--- /dev/null
+++ b/databases/mariadb106-server/files/patch-mysys_crc32_crc32c.cc
@@ -0,0 +1,11 @@
+--- mysys/crc32/crc32c.cc.orig 2024-06-14 11:34:14 UTC
++++ mysys/crc32/crc32c.cc
+@@ -455,7 +455,7 @@ static int arch_ppc_probe(void) {
+
+ return arch_ppc_crc32;
+ }
+-# elif defined __FreeBSD_version && __FreeBSD_version >= 1200000
++# elif defined __FreeBSD__
+ # include <machine/cpu.h>
+ # include <sys/auxv.h>
+ # include <sys/elf_common.h>