pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/mysql80-client mysql80: use __builtin_ffsll ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/12ff340f3b2f
branches: trunk
changeset: 455033:12ff340f3b2f
user: nia <nia%pkgsrc.org@localhost>
date: Sun Jun 27 06:41:55 2021 +0000
description:
mysql80: use __builtin_ffsll where ffsll is missing
mysql80 uses some inline asm on x86_64, but falls back to the
function on non-x86_64. netbsd does not have a ffsll function.
helps build on non-x86_64.
diffstat:
databases/mysql80-client/distinfo | 3 +-
databases/mysql80-client/patches/patch-sql_join__optimizer_bit__utils.h | 15 ++++++++++
2 files changed, 17 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r 359ad264efa2 -r 12ff340f3b2f databases/mysql80-client/distinfo
--- a/databases/mysql80-client/distinfo Sun Jun 27 05:56:02 2021 +0000
+++ b/databases/mysql80-client/distinfo Sun Jun 27 06:41:55 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2021/06/22 10:12:36 nia Exp $
+$NetBSD: distinfo,v 1.3 2021/06/27 06:41:55 nia Exp $
SHA1 (mysql-boost-8.0.24.tar.gz) = e640d9851c1721a0550bdca38f03cb8681d61862
RMD160 (mysql-boost-8.0.24.tar.gz) = 2577eb94d5b8651f3520706be9c40c3e924980d4
@@ -31,5 +31,6 @@
SHA1 (patch-sql_CMakeLists.txt) = 84af2f2e58a17bde292a665a726489b8f56f4132
SHA1 (patch-sql_conn__handler_socket__connection.cc) = b414e0d499f51750e1aa6e9dd7b4e7006456a079
SHA1 (patch-sql_item_geofunc_relchecks_bgwrap.h) = d20896bfe2391d30aa9e95834c77e7de03377d76
+SHA1 (patch-sql_join__optimizer_bit__utils.h) = 3e75331da6b50935f082b2f738e6c6964afef5f7
SHA1 (patch-sql_resourcegroups_platform_thread__attrs__api__apple.cc) = e08ed53790ac8b03b38d566fee3a2688ca6065b3
SHA1 (patch-vio_viosocket.cc) = 15dcc0dee88e736a844aacc02e9dbc6beeb915e4
diff -r 359ad264efa2 -r 12ff340f3b2f databases/mysql80-client/patches/patch-sql_join__optimizer_bit__utils.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/mysql80-client/patches/patch-sql_join__optimizer_bit__utils.h Sun Jun 27 06:41:55 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-sql_join__optimizer_bit__utils.h,v 1.1 2021/06/27 06:41:55 nia Exp $
+
+NetBSD has no ffsll, but GCC does.
+
+--- sql/join_optimizer/bit_utils.h.orig 2021-03-22 08:44:50.000000000 +0000
++++ sql/join_optimizer/bit_utils.h
+@@ -82,6 +82,8 @@ static inline size_t FindLowestBitSet(ui
+ size_t idx;
+ asm("bsfq %1,%q0" : "=r"(idx) : "rm"(x));
+ return idx;
++#elif defined(__GNUC__) && !defined(HAVE_FFSLL)
++ return static_cast<unsigned>(__builtin_ffsll(x)) - 1u;
+ #else
+ // The cast to unsigned at least gets rid of the sign extension.
+ return static_cast<unsigned>(ffsll(x)) - 1u;
Home |
Main Index |
Thread Index |
Old Index