-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294086 from TomaSajt/mysql-workbench
mysql-workbench: fix build
- Loading branch information
Showing
2 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
pkgs/applications/misc/mysql-workbench/dont-search-for-antlr-jar.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index b7320bb..d7169da 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -143,25 +143,6 @@ check_function_exists (strtoull HAVE_STRTOULL) | ||
check_function_exists (strtoimax HAVE_STRTOIMAX) | ||
check_function_exists (strtoumax HAVE_STRTOUMAX) | ||
|
||
-set(ANTLR_JAR_FILENAME "antlr-4.11.1-complete.jar") | ||
-get_filename_component(SOURCE_PARENT_DIR ${CMAKE_SOURCE_DIR} DIRECTORY) | ||
-set(LINUX_RES_BIN_DIR ${SOURCE_PARENT_DIR}/linux-res/bin) | ||
-message("WITH_ANTLR_JAR: ${WITH_ANTLR_JAR}") | ||
-if(WITH_ANTLR_JAR) | ||
- get_filename_component(ANTLR_JAR_USER_DIR ${WITH_ANTLR_JAR} DIRECTORY) | ||
- find_path(ANTLR_JAR_PATH ${ANTLR_JAR_FILENAME} ${LINUX_RES_BIN_DIR} ${ANTLR_JAR_USER_DIR}) | ||
-else(WITH_ANTLR_JAR) | ||
- find_path(ANTLR_JAR_PATH ${ANTLR_JAR_FILENAME} ${LINUX_RES_BIN_DIR}) | ||
-endif(WITH_ANTLR_JAR) | ||
- | ||
-if(ANTLR_JAR_PATH AND Java_JAVA_EXECUTABLE) | ||
- set(ANTLR_JAR_PATH ${ANTLR_JAR_PATH}/${ANTLR_JAR_FILENAME}) | ||
- message(STATUS "ANTLR jar: " ${ANTLR_JAR_PATH}) | ||
-else() | ||
- message(WARNING ${ANTLR_JAR_FILENAME} " or java runtime wasn't found which is required if you'd like to rebuild Lexer and Parser files") | ||
-endif() | ||
- | ||
- | ||
if (UNIX) | ||
if (NOT LIB_INSTALL_DIR) | ||
set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib") |