FreeBSD Bugzilla – Attachment 225825 Details for
Bug 256618
databases/mariadb10[345]-server: patch and unbreak on riscv64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
databases/mariadb104-server: patch and unbreak on riscv64 and i386
0002-mariadb104-server-patch-and-unbreak-on-riscv64-and-i.patch (text/plain), 3.01 KB, created by
Robert Clausecker
on 2021-06-15 11:51:33 UTC
(
hide
)
Description:
databases/mariadb104-server: patch and unbreak on riscv64 and i386
Filename:
MIME Type:
Creator:
Robert Clausecker
Created:
2021-06-15 11:51:33 UTC
Size:
3.01 KB
patch
obsolete
>From 6e6331a453efa53b6f8a5abdde418591524987ab Mon Sep 17 00:00:00 2001 >From: Robert Clausecker <fuz@fuz.su> >Date: Tue, 15 Jun 2021 12:11:02 +0200 >Subject: [PATCH 2/3] mariadb104-server: patch and unbreak on riscv64 and i386 > >RISC-V does not have FP exceptions and nobody has bothered to stub out >the fpsetmask() calls. Remove these calls on platforms that don't >support them to unbreak the build. > >As for i386, there does not seem to be anything wrong with the build. >Remove the BROKEN line as the build failure cannot be reproduced. >--- > databases/mariadb104-server/Makefile | 5 +---- > .../files/patch-sql_mysqld.cc | 22 +++++++++++++++++-- > 2 files changed, 21 insertions(+), 6 deletions(-) > >diff --git a/databases/mariadb104-server/Makefile b/databases/mariadb104-server/Makefile >index afac272ac180..f177a4b43bc2 100644 >--- a/databases/mariadb104-server/Makefile >+++ b/databases/mariadb104-server/Makefile >@@ -2,7 +2,7 @@ > > PORTNAME?= mariadb > PORTVERSION= 10.4.19 >-PORTREVISION?= 0 >+PORTREVISION?= 1 > CATEGORIES= databases > MASTER_SITES= http://mirrors.supportex.net/${SITESDIR}/ \ > http://mirror2.hs-esslingen.de/pub/Mirrors/${SITESDIR}/ \ >@@ -20,9 +20,6 @@ COMMENT?= Multithreaded SQL database (server) > LICENSE= GPLv2 > LICENSE_FILE= ${WRKSRC}/COPYING > >-BROKEN_i386= compile error: undeclared identifier 'my_atomic_add32' >-BROKEN_riscv64= fails to compile: needs FP_X_INV from empty sys/riscv/include/ieeefp.h >- > USES= bison:build cmake:insource,noninja compiler:c++11-lib cpe iconv:translit libedit ncurses shebangfix ssl > > SUB_FILES= pkg-message >diff --git a/databases/mariadb104-server/files/patch-sql_mysqld.cc b/databases/mariadb104-server/files/patch-sql_mysqld.cc >index ab4a1ed810a5..4109d800da4c 100644 >--- a/databases/mariadb104-server/files/patch-sql_mysqld.cc >+++ b/databases/mariadb104-server/files/patch-sql_mysqld.cc >@@ -1,6 +1,24 @@ >---- sql/mysqld.cc.orig 2017-05-14 23:13:18 UTC >+--- sql/mysqld.cc.orig 2021-05-05 15:26:23 UTC > +++ sql/mysqld.cc >-@@ -4838,8 +4840,9 @@ static void init_ssl() >+@@ -206,7 +206,7 @@ typedef fp_except fp_except_t; >+ >+ inline void setup_fpu() >+ { >+-#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT) >++#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT) && defined(FP_X_INV) >+ /* We can't handle floating point exceptions with threads, so disable >+ this on freebsd >+ Don't fall for overflow, underflow,divide-by-zero or loss of precision. >+@@ -219,7 +219,7 @@ inline void setup_fpu() >+ fpsetmask(~(FP_X_INV | FP_X_OFL | FP_X_UFL | FP_X_DZ | >+ FP_X_IMP)); >+ #endif /* FP_X_DNML */ >+-#endif /* __FreeBSD__ && HAVE_IEEEFP_H && !HAVE_FEDISABLEEXCEPT */ >++#endif /* __FreeBSD__ && HAVE_IEEEFP_H && !HAVE_FEDISABLEEXCEPT && defined(FP_X_INV) */ >+ >+ #ifdef HAVE_FEDISABLEEXCEPT >+ fedisableexcept(FE_ALL_EXCEPT); >+@@ -5033,8 +5033,9 @@ static void init_ssl() > while ((err= ERR_get_error())) > sql_print_warning("SSL error: %s", ERR_error_string(err, NULL)); > } >-- >2.31.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256618
:
225824
| 225825 |
225826
|
226110