summaryrefslogtreecommitdiff
path: root/dev-db/mysql/files
diff options
context:
space:
mode:
authorHank Leininger <hlein@korelogic.com>2022-11-01 11:34:22 -0600
committerSam James <sam@gentoo.org>2022-11-01 23:21:41 +0000
commitb0d5d24230e62e69f4bae50be4746551f1d95451 (patch)
treeecda87cfe29cfb7c6597d5736141d116c6aaed10 /dev-db/mysql/files
parenta64dc4af762e1cfeb246b755f41821bbd2d0c27a (diff)
downloadgentoo-b0d5d24230e62e69f4bae50be4746551f1d95451.tar.gz
gentoo-b0d5d24230e62e69f4bae50be4746551f1d95451.tar.bz2
gentoo-b0d5d24230e62e69f4bae50be4746551f1d95451.zip
dev-db/mysql: fix compilation when tmpdir not accessible by portage
Upstream has declared WONTFIX; gentoo is not supported, and neither is compiling as a user who cannot read mysql-only directories: https://bugs.mysql.com/bug.php?id=108947 Closes: https://bugs.gentoo.org/878951 Closes: https://github.com/gentoo/gentoo/pull/28085 Signed-off-by: Hank Leininger <hlein@korelogic.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/mysql/files')
-rw-r--r--dev-db/mysql/files/mysql-8.0.31-build-tmpdir-nodefault.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-db/mysql/files/mysql-8.0.31-build-tmpdir-nodefault.patch b/dev-db/mysql/files/mysql-8.0.31-build-tmpdir-nodefault.patch
new file mode 100644
index 000000000000..f0f4a392b44d
--- /dev/null
+++ b/dev-db/mysql/files/mysql-8.0.31-build-tmpdir-nodefault.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/878951
+--- a/cmake/info_macros.cmake.in 2022-09-13 12:15:16.000000000 -0400
++++ b/cmake/info_macros.cmake.in 2022-11-01 00:12:06.270464679 -0400
+@@ -175,7 +175,7 @@
+ IF(HAVE_BUILD_ID_SUPPORT AND NOT WITHOUT_SERVER)
+ FILE(APPEND ${INFO_BIN} "\n===== BUILD ID =====\n")
+ EXECUTE_PROCESS(COMMAND
+- ${MYSQLD_EXECUTABLE} --help
++ ${MYSQLD_EXECUTABLE} --no-defaults --help
+ OUTPUT_VARIABLE mysqld_help
+ RESULT_VARIABLE mysqld_help_result
+ ERROR_VARIABLE mysqld_help_error