pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/pkgsrc-2021Q2]: pkgsrc/databases/mysql80-client Pullup ticket #6472 -...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4c1a2e401458
branches:  pkgsrc-2021Q2
changeset: 455057:4c1a2e401458
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sun Jun 27 10:13:20 2021 +0000

description:
Pullup ticket #6472 - requested by nia
databases/mysql80-client: NetBSD build fix

Revisions pulled up:
- databases/mysql80-client/distinfo                             1.3
- databases/mysql80-client/patches/patch-sql_join__optimizer_bit__utils.h 1.1

---
   Module Name: pkgsrc
   Committed By:        nia
   Date:                Sun Jun 27 06:41:56 UTC 2021

   Modified Files:
        pkgsrc/databases/mysql80-client: distinfo
   Added Files:
        pkgsrc/databases/mysql80-client/patches:
            patch-sql_join__optimizer_bit__utils.h

   Log Message:
   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 93674a8fe7d0 -r 4c1a2e401458 databases/mysql80-client/distinfo
--- a/databases/mysql80-client/distinfo Thu Jun 24 18:02:38 2021 +0000
+++ b/databases/mysql80-client/distinfo Sun Jun 27 10:13:20 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2021/06/22 10:12:36 nia Exp $
+$NetBSD: distinfo,v 1.2.2.1 2021/06/27 10:13:20 bsiegert 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 93674a8fe7d0 -r 4c1a2e401458 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 10:13:20 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-sql_join__optimizer_bit__utils.h,v 1.1.2.2 2021/06/27 10:13:20 bsiegert 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