aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorpkubaj <pkubaj@FreeBSD.org>2019-10-28 03:29:50 +0800
committerpkubaj <pkubaj@FreeBSD.org>2019-10-28 03:29:50 +0800
commita41e7f5f305386a3dc3fcb4914cd6bb4c9258c3b (patch)
treebdaf8f7379e219811188f444fa381aac2c7aaeed /databases
parent0b0a45c89354e3826d6cac2fcce3b6edca352ee4 (diff)
downloadfreebsd-ports-gnome-a41e7f5f305386a3dc3fcb4914cd6bb4c9258c3b.tar.gz
freebsd-ports-gnome-a41e7f5f305386a3dc3fcb4914cd6bb4c9258c3b.tar.zst
freebsd-ports-gnome-a41e7f5f305386a3dc3fcb4914cd6bb4c9258c3b.zip
databases/mariadb101-server: fix build on powerpc*
Follow what mariadb102 and newer do and don't include glibc-related headers. Fixes build on powerpc*. PR: 241146 Approved by: brnrd (maintainer timeout), linimon (mentor)
Diffstat (limited to 'databases')
-rw-r--r--databases/mariadb101-server/Makefile1
-rw-r--r--databases/mariadb101-server/files/patch-storage_xtradb_include_ut0ut.h11
2 files changed, 11 insertions, 1 deletions
diff --git a/databases/mariadb101-server/Makefile b/databases/mariadb101-server/Makefile
index c816193e907e..1cee9d2ff0c0 100644
--- a/databases/mariadb101-server/Makefile
+++ b/databases/mariadb101-server/Makefile
@@ -111,7 +111,6 @@ CMAKE_ON+= WITHOUT_SERVER
GSSAPI_NONE_CMAKE_ON= -DPLUGIN_AUTH_GSSAPI_CLIENT=NO
.else
# MySQL-Server part
-BROKEN_powerpc64= Does not build: fatal error: sys/platform/ppc.h: No such file or directory
USES+= mysql:101m
USE_GNOME= libxml2
USE_LDCONFIG+= ${PREFIX}/lib/mysql/plugin
diff --git a/databases/mariadb101-server/files/patch-storage_xtradb_include_ut0ut.h b/databases/mariadb101-server/files/patch-storage_xtradb_include_ut0ut.h
new file mode 100644
index 000000000000..6a656234a53b
--- /dev/null
+++ b/databases/mariadb101-server/files/patch-storage_xtradb_include_ut0ut.h
@@ -0,0 +1,11 @@
+--- storage/xtradb/include/ut0ut.h.orig 2019-10-08 20:51:54 UTC
++++ storage/xtradb/include/ut0ut.h
+@@ -83,7 +83,7 @@ struct ut_when_dtor { (private)
+ the YieldProcessor macro defined in WinNT.h. It is a CPU architecture-
+ independent way by using YieldProcessor. */
+ # define UT_RELAX_CPU() YieldProcessor()
+-# elif defined(__powerpc__)
++# elif defined(__powerpc__) && defined __GLIBC__
+ #include <sys/platform/ppc.h>
+ # define UT_RELAX_CPU() __ppc_get_timebase()
+ # else