diff --git a/1000-anolis-mysql-support-loongarch64.patch b/1000-anolis-mysql-support-loongarch64.patch new file mode 100644 index 0000000000000000000000000000000000000000..73231b7c4fcc1cfd5164d8457a4d5b72c2575a85 --- /dev/null +++ b/1000-anolis-mysql-support-loongarch64.patch @@ -0,0 +1,27 @@ +diff --git a/boost/boost_1_73_0/boost/predef/other/endian.h b/boost/boost_1_73_0/boost/predef/other/endian.h +index b42da538..8cd0a508 100644 +--- a/boost/boost_1_73_0/boost/predef/other/endian.h ++++ b/boost/boost_1_73_0/boost/predef/other/endian.h +@@ -127,7 +127,8 @@ information and acquired knowledge: + defined(_MIPSEL) || \ + defined(__MIPSEL) || \ + defined(__MIPSEL__) || \ +- defined(__riscv) ++ defined(__riscv) || \ ++ defined(__loongarch__) + # undef BOOST_ENDIAN_LITTLE_BYTE + # define BOOST_ENDIAN_LITTLE_BYTE BOOST_VERSION_NUMBER_AVAILABLE + # endif +diff --git a/extra/icu/source/i18n/double-conversion-utils.h b/extra/icu/source/i18n/double-conversion-utils.h +index 09929846..045e6627 100644 +--- a/extra/icu/source/i18n/double-conversion-utils.h ++++ b/extra/icu/source/i18n/double-conversion-utils.h +@@ -112,7 +112,7 @@ int main(int argc, char** argv) { + defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \ + defined(__riscv) || defined(__e2k__) || \ + defined(__or1k__) || defined(__arc__) || \ +- defined(__EMSCRIPTEN__) ++ defined(__EMSCRIPTEN__) || defined(__loongarch__) + #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 + #elif defined(__mc68000__) || \ + defined(__pnacl__) || defined(__native_client__) diff --git a/mysql.spec b/mysql.spec index 8d0c4620355177c91006f8a3eaf90632e92bfbda..f4a8f99ee2c7d71bb368db6dfa08e2e399deefeb 100644 --- a/mysql.spec +++ b/mysql.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 # SCL stuff %{?scl:%scl_package mysql} %{!?scl:%global pkg_name %{name}} @@ -211,6 +211,8 @@ Patch125: boost-1.57.0-mpl-print.patch # Use same logfile path in logrotate and mysql configs Patch126: mysql-logrotate-log-path.patch +Patch1000: 1000-anolis-mysql-support-loongarch64.patch + BuildRequires: cmake BuildRequires: gcc-c++ # From 8.0.24 MySQL start supporting GCC version 10 @@ -528,6 +530,8 @@ the MySQL sources. %patch80 -p1 %patch126 -p1 +%patch1000 -p1 + # Patch Boost pushd boost/boost_$(echo %{boost_bundled_version}| tr . _) %patch115 -p0 @@ -1212,6 +1216,9 @@ fi %endif %changelog +* Thu Jan 27 2022 Liwei Ge - 8.0.26-1.0.2 +- Support loongarch64 platform + * Thu Dec 23 2021 zhangbinchen - 8.0.26-1.0.1 - remove check_testsuite - redefine ignore_testsuite_result