eigenmath: 3.33-unstable-2024-11-22 -> 3.35-unstable-2024-12-11 (#364381)
[NixPkgs.git] / pkgs / tools / backup / percona-xtrabackup / abi-check.patch
blob53442ef5bc00d2026a97cf75fed6bfec36f029bc
1 MySQL ABI check assumes that with -nostdinc any standard #include terminates
2 preprocessing, but we do not provide that:
3 https://github.com/NixOS/nixpkgs/issues/44530
5 "#error" does not terminate preprocessing, so we #include a non-existent file instead.
7 --- a/cmake/do_abi_check.cmake
8 +++ b/cmake/do_abi_check.cmake
9 @@ -68,1 +68,1 @@ FOREACH(file ${ABI_HEADERS})
10 - -E -nostdinc -dI -DMYSQL_ABI_CHECK -I${ABI_SOURCE_DIR}/include
11 + -E -nostdinc -dI -DMYSQL_ABI_CHECK -I${ABI_SOURCE_DIR}/include/nostdinc -I${ABI_SOURCE_DIR}/include
12 @@ -74,1 +74,1 @@ FOREACH(file ${ABI_HEADERS})
13 - COMMAND ${WSL_EXECUTABLE} sed -e "/^# /d"
14 + COMMAND ${WSL_EXECUTABLE} sed -e "/^# /d" -e "/^#include <-nostdinc>$/d"
15 --- /dev/null
16 +++ b/include/nostdinc/stdint.h
17 @@ -0,0 +1,1 @@
18 +#include <-nostdinc>