Merge pull request #82649 from flokli/mariadb-remove-without-client

mariadb: remove withoutClient

authored by Florian Klink and committed by GitHub 115c78c9 7c3f3e9c

+1 -29
-15
pkgs/servers/sql/mariadb/cmake-without-client.patch
··· 1 - diff --git a/CMakeLists.txt b/CMakeLists.txt 2 - index 1ea7c1df..b0face0d 100644 3 - --- a/CMakeLists.txt 4 - +++ b/CMakeLists.txt 5 - @@ -176,6 +176,10 @@ ELSE() 6 - SET (SKIP_COMPONENTS "N-O-N-E") 7 - ENDIF() 8 - 9 - +IF (WITHOUT_CLIENT) 10 - + SET (SKIP_COMPONENTS "Client|ClientPlugins|ManPagesClient") 11 - +ENDIF() 12 - + 13 - OPTION(NOT_FOR_DISTRIBUTION "Allow linking with GPLv2-incompatible system libraries. Only set it you never plan to distribute the resulting binaries" OFF) 14 - 15 - INCLUDE(check_compiler_flag)
+1 -14
pkgs/servers/sql/mariadb/default.nix
··· 4 4 , fixDarwinDylibNames, cctools, CoreServices, less 5 5 , numactl # NUMA Support 6 6 , withStorageMroonga ? true, kytea, msgpack, zeromq 7 - , withoutClient ? false 8 7 }: 9 8 10 9 with stdenv.lib; ··· 149 148 ++ optional stdenv.hostPlatform.isLinux linux-pam 150 149 ++ optional (!stdenv.hostPlatform.isDarwin) mytopEnv; 151 150 152 - patches = common.patches ++ [ 153 - ./cmake-without-client.patch 154 - ] ++ optionals stdenv.hostPlatform.isDarwin [ 151 + patches = common.patches ++ optionals stdenv.hostPlatform.isDarwin [ 155 152 ./cmake-without-plugin-auth-pam.patch 156 153 ]; 157 154 ··· 170 167 "-DWITH_NUMA=ON" 171 168 ] ++ optional (!withStorageMroonga) [ 172 169 "-DWITHOUT_MROONGA=ON" 173 - ] ++ optionals withoutClient [ 174 - "-DWITHOUT_CLIENT=ON" 175 170 ] ++ optionals stdenv.hostPlatform.isDarwin [ 176 171 "-DWITHOUT_OQGRAPH=1" 177 172 "-DWITHOUT_TOKUDB=1" ··· 185 180 chmod +x "$out"/bin/wsrep_sst_common 186 181 rm "$out"/bin/{mysql_client_test,mysqltest} 187 182 rm -r "$out"/data # Don't need testing data 188 - '' + optionalString withoutClient '' 189 - ${ # We don't build with GSSAPI on Darwin 190 - optionalString (!stdenv.hostPlatform.isDarwin) '' 191 - rm "$out"/lib/mysql/plugin/auth_gssapi_client.so 192 - '' 193 - } 194 - rm "$out"/lib/mysql/plugin/client_ed25519.so 195 - rm "$out"/lib/{libmysqlclient${libExt},libmysqlclient_r${libExt}} 196 183 '' + optionalString withStorageMroonga '' 197 184 mv "$out"/share/{groonga,groonga-normalizer-mysql} "$out"/share/doc/mysql 198 185 '' + optionalString (!stdenv.hostPlatform.isDarwin) ''