+++ to secure your transactions use the Bitcoin Mixer Service +++

 

Skip to content

Commit

Permalink
databases/mariadb*: fix build ahead of CMake 3.20
Browse files Browse the repository at this point in the history
All of the MariaDB releases contain the same ConnectorName CMake
module, and all of those copies of the module contain the same
syntax error. CMake < 3.20 ignores this and treats end() as
endif(), but this is an error in the upcoming version.

Specifically NOT bumping PORTREVISION because this is a build-only
fix that has no effect on the package.
  • Loading branch information
Adriaan de Groot authored and Adriaan de Groot committed Apr 6, 2021
1 parent bc2e032 commit d1e9ddf
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 1 deletion.
1 change: 0 additions & 1 deletion databases/mariadb-connector-c/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

PORTNAME= mariadb-connector-c
PORTVERSION= 3.1.10
CATEGORIES= databases
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- cmake/ConnectorName.cmake.orig 2021-04-02 09:49:25 UTC
+++ cmake/ConnectorName.cmake
@@ -22,7 +22,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
SET(MACHINE_NAME "x64")
ELSE()
SET(MACHINE_NAME "32")
- END()
+ ENDIF()
ENDIF()

SET(product_name "mysql-connector-c-${CPACK_PACKAGE_VERSION}-${PLATFORM_NAME}${CONCAT_SIGN}${MACHINE_NAME}")
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- libmariadb/cmake/ConnectorName.cmake.orig 2021-04-02 09:49:25 UTC
+++ libmariadb/cmake/ConnectorName.cmake
@@ -22,7 +22,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
SET(MACHINE_NAME "x64")
ELSE()
SET(MACHINE_NAME "32")
- END()
+ ENDIF()
ENDIF()

SET(product_name "mysql-connector-c-${CPACK_PACKAGE_VERSION}-${PLATFORM_NAME}${CONCAT_SIGN}${MACHINE_NAME}")
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- libmariadb/cmake/ConnectorName.cmake.orig 2021-04-02 09:49:25 UTC
+++ libmariadb/cmake/ConnectorName.cmake
@@ -22,7 +22,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
SET(MACHINE_NAME "x64")
ELSE()
SET(MACHINE_NAME "32")
- END()
+ ENDIF()
ENDIF()

SET(product_name "mysql-connector-c-${CPACK_PACKAGE_VERSION}-${PLATFORM_NAME}${CONCAT_SIGN}${MACHINE_NAME}")
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- libmariadb/cmake/ConnectorName.cmake.orig 2021-04-02 09:49:25 UTC
+++ libmariadb/cmake/ConnectorName.cmake
@@ -22,7 +22,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
SET(MACHINE_NAME "x64")
ELSE()
SET(MACHINE_NAME "32")
- END()
+ ENDIF()
ENDIF()

SET(product_name "mysql-connector-c-${CPACK_PACKAGE_VERSION}-${PLATFORM_NAME}${CONCAT_SIGN}${MACHINE_NAME}")
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- libmariadb/cmake/ConnectorName.cmake.orig 2021-04-02 09:49:25 UTC
+++ libmariadb/cmake/ConnectorName.cmake
@@ -22,7 +22,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
SET(MACHINE_NAME "x64")
ELSE()
SET(MACHINE_NAME "32")
- END()
+ ENDIF()
ENDIF()

SET(product_name "mysql-connector-c-${CPACK_PACKAGE_VERSION}-${PLATFORM_NAME}${CONCAT_SIGN}${MACHINE_NAME}")

0 comments on commit d1e9ddf

Please sign in to comment.