mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-geosciences/grass: fix MariaDB dependency
Closes: https://bugs.gentoo.org/975254 Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> Part-of: https://github.com/gentoo/gentoo/pull/46332 Closes: https://github.com/gentoo/gentoo/pull/46332 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
fa6c89c14c
commit
4cf68f0f6f
17
sci-geosciences/grass/files/grass-8.5.0-mariadb.patch
Normal file
17
sci-geosciences/grass/files/grass-8.5.0-mariadb.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
Bug: https://bugs.gentoo.org/975252
|
||||
diff --git a/cmake/find_scripts/FindMySQL.cmake b/cmake/find_scripts/FindMySQL.cmake
|
||||
index 59f36a0772..12f7d574d4 100644
|
||||
--- a/cmake/find_scripts/FindMySQL.cmake
|
||||
+++ b/cmake/find_scripts/FindMySQL.cmake
|
||||
@@ -1,9 +1,9 @@
|
||||
execute_process(
|
||||
- COMMAND mysql_config --cflags
|
||||
+ COMMAND mariadb_config --cflags
|
||||
OUTPUT_VARIABLE MySQL_INCLUDE_DIRS
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
execute_process(
|
||||
- COMMAND mysql_config --libs
|
||||
+ COMMAND mariadb_config --libs
|
||||
OUTPUT_VARIABLE MySQL_LIBRARY
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
@@ -77,7 +77,7 @@ RDEPEND="
|
||||
virtual/lapack[flexiblas(-)]
|
||||
)
|
||||
)
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
mysql? ( dev-db/mariadb-connector-c:= )
|
||||
netcdf? ( sci-libs/netcdf:= )
|
||||
odbc? ( dev-db/unixODBC )
|
||||
opencl? ( virtual/opencl )
|
||||
@@ -115,6 +115,10 @@ BDEPEND="
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-mariadb.patch"
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
Reference in New Issue
Block a user