From nobody Wed Nov 08 05:36:42 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SQDNW1HjFz4yqqJ; Wed, 8 Nov 2023 05:36:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SQDNW0qPDz4Zfv; Wed, 8 Nov 2023 05:36:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699421803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mG4hnM5LZSDSzGNXXckvHLb7bIpH28BQD7M4e/KLx2Q=; b=Ch1lcL1R2h/eL6jTktpB2UN7YvycYkRvrcgMp0Sg2WQfdsIMTrpMujBl0dWdHq8idT8fpE 6MRSlGI2xE9eSptwe/wzQ49k/3yHJgonELdIa3JInYDWKtXNqaovVh7BpBYzr2fWC3jOM6 u43XB4RfttAvr7adz6fMof2gR+bwf6NW8vT3j2QDM6VSyCUi0nybebeXfOF1MWLI+3JqGT JhrQpshToeAG3wpJiduUAbiaxgwc5ky7IaAu87VXwZY5ldo0Ao/vnqbRxwWL1Hsilcfj+L CMzp+7+LjLXIkYDuzOSzeR4efPwUdudOaOSRcWw7q0F9/P+036nHV/PlFwqiDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699421803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mG4hnM5LZSDSzGNXXckvHLb7bIpH28BQD7M4e/KLx2Q=; b=gJho81ocsZlyQmEDf12/kIfz4QmNJTgoWiqO/vOh1ow+4NQi8TH5BGoob7GtqYdZ5ma5FT UTIdmb0wl/MtYERxv0dYomzqNdFEd1vBr+h8ajcBPRQ+z+n2CYcFqC5fDfUQpDHpy5CeFX yotgFvZ3qk59Dl7hqiIJ6NwCHyhDVP98wdYv43sHqbCFB5sS1jk2kst9wJ9fqTWIO39HDP pV+jx6/ZwefipfSW9oSaraiC9UfyYKc1J4/qUTP0VlzSQAijL2axCPtN5qO9rbG3YTtiWp haeNVP2ooHi9bp5UpcjNGuL73bwnBp9wT66PxL0Kcc6bBRgcEm6NNAG8lplW5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699421803; a=rsa-sha256; cv=none; b=FH8E7FLH5ihU3MXIL8PizQnk/PLdYb4avGgFY3GFVV7cLmjd8kBKVxnmBp49ing2uoJLH3 5tqDIbGJp5AO3za139ebpbq92ADFigECRX5V9Skr+xZRHgqyElponSVHhlez/lYSEkP5gy lrMmCAK0jfbOaQ+K2x51HS65UjPeMDWMsahp1M6ffj5evVpZyvfeiG/n4SLbXHzN0H26sB 4djSEiiJV6wOmQwMv50go9d8shWe/LcXRtHaVAjFuWFxyEgax+1aEqnhWZ2P7E0tbs31dp 16g2JpkvVgJpFfkAG3sNRc5X+nrF+mGdsFMN1wlUseQK1devbrPrwGW6RhH1kA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SQDNV6zjSz5rh; Wed, 8 Nov 2023 05:36:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A85agsU057238; Wed, 8 Nov 2023 05:36:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A85agk7057235; Wed, 8 Nov 2023 05:36:42 GMT (envelope-from git) Date: Wed, 8 Nov 2023 05:36:42 GMT Message-Id: <202311080536.3A85agk7057235@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Jason E. Hale" Subject: git: baf3577af428 - main - science/libkml: Fix linking with CMake >= 3.27 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhale X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: baf3577af42838a9a09a98fd3ca03adc60a55853 Auto-Submitted: auto-generated The branch main has been updated by jhale: URL: https://cgit.FreeBSD.org/ports/commit/?id=baf3577af42838a9a09a98fd3ca03adc60a55853 commit baf3577af42838a9a09a98fd3ca03adc60a55853 Author: Jason E. Hale AuthorDate: 2023-11-08 05:30:32 +0000 Commit: Jason E. Hale CommitDate: 2023-11-08 05:36:35 +0000 science/libkml: Fix linking with CMake >= 3.27 Due to changes [1] in the FindEXPAT module, this was failing to link with newer versions of CMake. FAILED: bin/example_balloonwalker : && /usr/bin/c++ -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++11 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++11 -DNDEBUG -lz -fstack-protector-strong examples/engine/CMakeFiles/example_balloonwalker.dir/balloonwalker.cc.o -o bin/example_balloonwalker -Wl,-rpath,/wrkdirs/usr/ports/science/libkml/work/.build/lib:/usr/local/lib lib/libkmlengine.so.1.3.1 lib/libkmldom.so.1.3.1 lib/libkmlbase.so.1.3.1 /usr/local/lib/libminizip.so /usr/local/lib/liburiparser.so && : ld: error: lib/libkmldom.so.1.3.1: undefined reference to XML_StopParser [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_ParserCreateNS [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_ParserCreate [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_SetUserData [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_SetElementHandler [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_SetCharacterDataHandler [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_SetEntityDeclHandler [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_SetNamespaceDeclHandler [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_StopParser [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_ParserFree [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_Parse [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_GetBuffer [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_ParseBuffer [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_GetParsingStatus [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_GetErrorCode [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_ErrorString [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_GetCurrentLineNumber [--no-allow-shlib-undefined] ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_GetCurrentColumnNumber [--no-allow-shlib-undefined] c++: error: linker command failed with exit code 1 (use -v to see invocation) [1] https://github.com/Kitware/CMake/commit/13079f382b480c8fe6a68d98afc2cec716a75e59 PR: 274225 --- science/libkml/files/patch-src_kml_base_CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/science/libkml/files/patch-src_kml_base_CMakeLists.txt b/science/libkml/files/patch-src_kml_base_CMakeLists.txt new file mode 100644 index 000000000000..0b4e8ffc3c41 --- /dev/null +++ b/science/libkml/files/patch-src_kml_base_CMakeLists.txt @@ -0,0 +1,12 @@ +Fix linking with CMake >= 3.27 due to changes [1] in the FindEXPAT module. + +[1] https://github.com/Kitware/CMake/commit/13079f382b480c8fe6a68d98afc2cec716a75e59 + +--- src/kml/base/CMakeLists.txt.orig 2017-01-15 08:52:06 UTC ++++ src/kml/base/CMakeLists.txt +@@ -49,4 +49,4 @@ build_target( + SRCS ${SRCS} + INCS ${INCS} + DEPENDS ${KMLBASE_DEPENDS} +- LINKS ${ZLIB_LIBRARY} ${MINIZIP_LIBRARIES} ${URIPARSER_LIBRARY} ${EXPAT_LIBRARY} ) ++ LINKS ${ZLIB_LIBRARY} ${MINIZIP_LIBRARIES} ${URIPARSER_LIBRARY} EXPAT::EXPAT )