Date: Sun, 20 Jan 2019 17:21:11 +0000 (UTC) From: Mahdi Mokhtari <mmokhi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r490803 - in branches/2019Q1/databases/mysql80-client: . files Message-ID: <201901201721.x0KHLBnA019705@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mmokhi Date: Sun Jan 20 17:21:11 2019 New Revision: 490803 URL: https://svnweb.freebsd.org/changeset/ports/490803 Log: MFH: r490801 databases/mysql80-client: Fix output of mysql_config for ldflags Make `mysql_config` not show non-existing libraries as output of `--lib`. (`imported_crypto` and `imported_openssl` which seem to be for internal use) This issue made build-failures on downstream codes that rely on correct output to use for their LDFLAGS (like mail/dovecot). Reported by: ler Sponsored by: The FreeBSD Foundation Approved by: portmgr (bugfix blanket) Modified: branches/2019Q1/databases/mysql80-client/Makefile branches/2019Q1/databases/mysql80-client/files/patch-scripts_CMakeLists.txt Directory Properties: branches/2019Q1/ (props changed) Modified: branches/2019Q1/databases/mysql80-client/Makefile ============================================================================== --- branches/2019Q1/databases/mysql80-client/Makefile Sun Jan 20 17:20:11 2019 (r490802) +++ branches/2019Q1/databases/mysql80-client/Makefile Sun Jan 20 17:21:11 2019 (r490803) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= mysql -PORTREVISION= 0 +PORTREVISION= 1 PKGNAMESUFFIX= 80-client COMMENT= Multithreaded SQL database (client) Modified: branches/2019Q1/databases/mysql80-client/files/patch-scripts_CMakeLists.txt ============================================================================== --- branches/2019Q1/databases/mysql80-client/files/patch-scripts_CMakeLists.txt Sun Jan 20 17:20:11 2019 (r490802) +++ branches/2019Q1/databases/mysql80-client/files/patch-scripts_CMakeLists.txt Sun Jan 20 17:21:11 2019 (r490803) @@ -1,4 +1,4 @@ ---- scripts/CMakeLists.txt.orig 2018-11-04 20:58:12 UTC +--- scripts/CMakeLists.txt.orig 2018-10-07 08:44:22 UTC +++ scripts/CMakeLists.txt @@ -80,6 +80,7 @@ ELSE() MESSAGE(FATAL_ERROR "Cannot concatenate files") @@ -32,6 +32,15 @@ # TCMalloc hacks IF(MALLOC_LIB) +@@ -364,7 +368,7 @@ MACRO(EXTRACT_LINK_LIBRARIES target var) + LIST(REMOVE_DUPLICATES ${target}_LIB_DEPENDS) + FOREACH(lib ${${target}_LIB_DEPENDS}) + # Filter out "general", it is not a library, just CMake hint +- IF(NOT lib STREQUAL "general" AND NOT ${var} MATCHES "-l${lib} ") ++ IF(NOT lib STREQUAL "general" AND NOT ${var} MATCHES "-l${lib} " AND NOT lib STREQUAL "imported_openssl" AND NOT lib STREQUAL "imported_crypto") + IF (lib MATCHES "^\\-l") + SET(${var} "${${var}} ${lib} ") + ELSEIF(lib MATCHES "^/") @@ -372,6 +376,8 @@ MACRO(EXTRACT_LINK_LIBRARIES target var) GET_FILENAME_COMPONENT(lib "${lib}" NAME_WE) STRING(REGEX REPLACE "^lib" "" lib "${lib}")
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901201721.x0KHLBnA019705>