← Back to team overview

maria-discuss team mailing list archive

Re: Fwd: [MariaDB Announce] MariaDB 10.2.9, MariaDB 10.1.28 and MariaDB Connector/J releases

 

Hi, Reindl!

On Sep 28, Reindl Harald wrote:
> it would be really cool if MariaDB minor updates (10.2.8 to 10.2.9 in 
> that case) would work like for any other software - just replace the 
> tarball, raise the version in the spec-file and hit "rpmbuild -bb 
> mariadb.spec"
> 
> CMakeError.log as tar.bz2 attached....
> ________________________________________________________________________________________
> 
> CMake Error at sql/CMakeLists.txt:387 (TARGET_LINK_LIBRARIES):
>    Target "mysqld" of type EXECUTABLE may not be linked into another target.
>    One may link only to STATIC or SHARED libraries, or to executables with the
>    ENABLE_EXPORTS property set.
> 
> CMake Deprecation Warning at cmake/for_clients.cmake:15 (CMAKE_POLICY):
>    The OLD behavior for policy CMP0007 will be removed from a future version
>    of CMake.
> 
>    The cmake-policies(7) manual explains that the OLD behaviors of all
>    policies are deprecated and that a policy should be set to OLD only under
>    specific short-term circumstances.  Projects should be ported to the NEW
>    behavior and not rely on setting a policy to OLD.
> Call Stack (most recent call first):
>    CMakeLists.txt:415 (INCLUDE)

Could it be caused by, say, you upgrading cmake to some newest
bleeding-edge version? Or some other changes you did meanwhile?

cmake/for_clients.cmake hasn't changed between 10.2.8 and 10.2.9.
sql/CMakeLists.txt did, but nowhere near the line 387:

    376 IF(WIN32 OR HAVE_DLOPEN AND NOT DISABLE_SHARED)
    377   ADD_LIBRARY(udf_example MODULE udf_example.c)
    378   SET_TARGET_PROPERTIES(udf_example PROPERTIES PREFIX "")
    379   # udf_example depends on strings 
    380   IF(WIN32)
    381     IF(MSVC)
    382      SET_TARGET_PROPERTIES(udf_example PROPERTIES LINK_FLAGS "/DEF:${CMA
    383     ENDIF()
    384     TARGET_LINK_LIBRARIES(udf_example strings)
    385   ELSE()
    386     # udf_example is using safemutex exported by mysqld
    387     TARGET_LINK_LIBRARIES(udf_example mysqld)
    388   ENDIF()
    389 ENDIF()

all that code is from 2009.

Regards,
Sergei
Chief Architect MariaDB
and security@xxxxxxxxxxx


Follow ups

References