]> git.pld-linux.org Git - packages/mysql.git/commitdiff
Rel 2; builds now on current th MYSQL_5_6
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 4 Apr 2024 08:49:41 +0000 (10:49 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 4 Apr 2024 08:49:41 +0000 (10:49 +0200)
mysql-build.patch
mysql.spec

index ae10f266878d9391f06502f9568f55ce5c36f1b8..f87118ce870a06cf91705b8b35f6fbf49a519089 100644 (file)
  set(USE_VALGRIND OFF CACHE BOOL "whether to use valgrind headers")
  if (USE_VALGRIND)
 
+--- percona-server-5.6.51-91.0/include/my_global.h~    2021-02-02 15:20:34.000000000 +0100
++++ percona-server-5.6.51-91.0/include/my_global.h     2024-04-04 10:20:48.289940995 +0200
+@@ -380,10 +380,7 @@ C_MODE_END
+   @param  member  Name of the member within the structure.
+ */
+ #define my_container_of(ptr, type, member)              \
+-  ({                                                    \
+-    const typeof(((type *)0)->member) *__mptr= (ptr);   \
+-    (type *)((char *)__mptr - offsetof(type, member));  \
+-  })
++      ((type *)((char *)ptr - offsetof(type, member)))
+ /*
+   A lot of our programs uses asserts, so better to always include it
index b84bf5324526a6d7feee0d5d73ea017408492371..9e64bd47df9b6ba8e09c84cc91e26909ce7b1e5f 100644 (file)
@@ -30,7 +30,7 @@
 %undefine      with_tokudb
 %endif
 
-%define                rel     1
+%define                rel     2
 %define                percona_rel     91.0
 Summary:       MySQL: a very fast and reliable SQL database engine
 Summary(de.UTF-8):     MySQL: ist eine SQL-Datenbank
@@ -569,9 +569,9 @@ cd build
 CPPFLAGS="%{rpmcppflags}" \
 %cmake .. \
        -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
-       -DCMAKE_C_FLAGS_DEBUG="-fno-omit-frame-pointer -fno-strict-aliasing -Wimplicit-fallthrough=0" \
+       -DCMAKE_C_FLAGS_DEBUG="-fno-omit-frame-pointer -fno-strict-aliasing -Wimplicit-fallthrough=0 -std=c++14" \
        -DCMAKE_CXX_FLAGS_DEBUG="-fno-omit-frame-pointer -fno-strict-aliasing -Wimplicit-fallthrough=0 -std=c++14" \
-       -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing -Wimplicit-fallthrough=0" \
+       -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing -Wimplicit-fallthrough=0 -std=c++14" \
        -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing -Wimplicit-fallthrough=0 -std=c++14" \
        -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
        -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
This page took 0.129708 seconds and 4 git commands to generate.