From owner-svn-ports-head@freebsd.org Mon Mar 27 15:06:25 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 453C2D201FD; Mon, 27 Mar 2017 15:06:25 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EC4613D4; Mon, 27 Mar 2017 15:06:24 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2RF6OXW034318; Mon, 27 Mar 2017 15:06:24 GMT (envelope-from rakuco@FreeBSD.org) Received: (from rakuco@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2RF6O3D034317; Mon, 27 Mar 2017 15:06:24 GMT (envelope-from rakuco@FreeBSD.org) Message-Id: <201703271506.v2RF6O3D034317@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rakuco set sender to rakuco@FreeBSD.org using -f From: Raphael Kubo da Costa Date: Mon, 27 Mar 2017 15:06:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r437049 - head/net/libkvkontakte/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Mar 2017 15:06:25 -0000 Author: rakuco Date: Mon Mar 27 15:06:23 2017 New Revision: 437049 URL: https://svnweb.freebsd.org/changeset/ports/437049 Log: Unbreak after r436971. kdelibs stopped setting several CMake policies to old values, as well as setting an old minium required CMake version. This causes the configuration stage to fail here, as libkvkontakte sets a higher minimum required CMake version that sets the CMP0022 policy to NEW and causes things to fail: CMake Error in libkvkontakte/CMakeLists.txt: Target "kvkontakte" has policy CMP0022 enabled, but also has old-style LINK_INTERFACE_LIBRARIES properties populated, but it was exported without the EXPORT_LINK_INTERFACE_LIBRARIES to export the old-style properties Added: head/net/libkvkontakte/files/ head/net/libkvkontakte/files/patch-CMakeLists.txt (contents, props changed) Added: head/net/libkvkontakte/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libkvkontakte/files/patch-CMakeLists.txt Mon Mar 27 15:06:23 2017 (r437049) @@ -0,0 +1,21 @@ +Avoids the following error when configuring: + +CMake Error in libkvkontakte/CMakeLists.txt: + Target "kvkontakte" has policy CMP0022 enabled, but also has old-style + LINK_INTERFACE_LIBRARIES properties populated, but it was exported without + the EXPORT_LINK_INTERFACE_LIBRARIES to export the old-style properties + +which is caused by the project requiring a minimum CMake version that sets +CMP0022 to NEW while the code in KDE4Macros.cmake (in kdelibs) still sets the +deprecated LINK_INTERFACE_LIBRARIES property. +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -56,7 +56,7 @@ add_subdirectory(libkvkontakte) + # This file contains add_library(bar IMPORTED) statements for each target in the export set, so + # when loaded later on cmake will create "imported" library targets from these, which can be used + # in many ways in the same way as a normal library target created via a normal add_library(). +-install(EXPORT LibKVkontakteExport DESTINATION ${CMAKECONFIG_INSTALL_DIR} FILE LibKVkontakteTargets.cmake ) ++install(EXPORT LibKVkontakteExport DESTINATION ${CMAKECONFIG_INSTALL_DIR} FILE LibKVkontakteTargets.cmake EXPORT_LINK_INTERFACE_LIBRARIES ) + + # figure out the relative path from the installed Config.cmake file to the install prefix (which may be at + # runtime different from the chosen CMAKE_INSTALL_PREFIX if under Windows the package was installed anywhere)