From 1dc8bb9d5484287b586048e7805367efe59d230e Mon Sep 17 00:00:00 2001 From: Svante Signell Date: Sat, 20 Apr 2024 16:51:00 -0700 Subject: [PATCH 1/3] Bug#1069094: mariadb: FTBFS on hurd-i386 Add Hurd to define __USE_FILE_OFFSET64 et al. Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1069094 Forwarded: no --- storage/connect/ioapi.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/storage/connect/ioapi.h b/storage/connect/ioapi.h index 94b292ed78f4b..7971717ad369e 100644 --- a/storage/connect/ioapi.h +++ b/storage/connect/ioapi.h @@ -21,9 +21,10 @@ #ifndef _ZLIBIOAPI64_H #define _ZLIBIOAPI64_H -#if defined(__linux__) +#if defined(__linux__) || defined (__GNU__) - // Linux needs this to support file operation on files larger then 4+GB + // Linux and Hurd needs this to support file operation on files larger + // than 4+GB. // But might need better if/def to select just the platforms that needs them. #ifndef __USE_FILE_OFFSET64 From 1afa7530c2d9405a54a1a280f3768aadaf9b0e47 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 14 Jan 2025 13:52:23 +1100 Subject: [PATCH 2/3] Debian/Hurd doesn't support auth_socket Hurd doesn't have the mechanism to identify the user connecting to a socket via a system call as MDEV-8535 highlighted. As such it can't be supported so we disable it in Debian's mysql_release profile. Hurd string from uname -m, "SYSTEM processor: i686-AT386" in mariadb output. And wiki reference https://en.wikipedia.org/wiki/Uname Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1006531 --- cmake/build_configurations/mysql_release.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/build_configurations/mysql_release.cmake b/cmake/build_configurations/mysql_release.cmake index 8f306548dc9ec..bc83b471ed300 100644 --- a/cmake/build_configurations/mysql_release.cmake +++ b/cmake/build_configurations/mysql_release.cmake @@ -125,7 +125,10 @@ ELSEIF(DEB) SET(WITH_ZLIB system CACHE STRING "") SET(WITH_LIBWRAP ON) SET(HAVE_EMBEDDED_PRIVILEGE_CONTROL ON) - SET(PLUGIN_AUTH_SOCKET YES CACHE STRING "") + # No hurd implementation + IF(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "i686-AT386") + SET(PLUGIN_AUTH_SOCKET YES CACHE STRING "") + ENDIF() SET(WITH_EMBEDDED_SERVER ON CACHE BOOL "") SET(WITH_PCRE system CACHE STRING "") SET(WITH_INNODB_BZIP2 OFF CACHE STRING "") From e395f5c49915345b2e7c23f0a8fffc3ea3a94a37 Mon Sep 17 00:00:00 2001 From: Svante Signell Date: Sat, 20 Apr 2024 16:51:00 -0700 Subject: [PATCH 3/3] MDEV-12305 FTBFS on hurd-i386 due to PATH_MAX Hurd doesn't create PATH_MAX due its dogmatic standard approach. ref: https://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1069094 --- plugin/disks/information_schema_disks.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/disks/information_schema_disks.cc b/plugin/disks/information_schema_disks.cc index 01df32590eb82..d42d30395a8db 100644 --- a/plugin/disks/information_schema_disks.cc +++ b/plugin/disks/information_schema_disks.cc @@ -32,6 +32,9 @@ #include #endif #endif +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif #include #include #include /* check_global_access() */