From nobody Wed Jun 29 16:35:36 2022 X-Original-To: dev-commits-ports-main@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 0B2E7860DD4; Wed, 29 Jun 2022 16:35:38 +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 4LY6X85MDfz3GTQ; Wed, 29 Jun 2022 16:35:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656520536; 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=Gmx5/eN9+6xTbT8HuA39Ju0zy8RPFCAquE/bBh8PlDk=; b=B4Zx/Zy+R/cc8FDFPNPktD0tkzxD8adpIUSHz+fRUcMFCxAV6kfZ+RR872ziKJtlUvaXQM TEMrG20dVNXDZLpXfbjxgfRx+tjrEkb5bQD4/Kx7NBDwZ+FOhngvAc5TtYq9AmY+lgJl5I 9J0d4Mw69faq1gTQTrvnpi9YIkm99fkP4op6o8DSk6363zcy1KkfQVgPK2ufgbE4FKwwOd Qzi655bQYGD3SALvtHt3qSmBQKlMrnEwdhkqQSU88XxDoPVMJKTpfYyhdtoJN0BO00Dbnv rJa5AvyYN/UfZGxioV3lpgrwLFoOQBTvdiZClhORO+1Py6ApY0iJManO0wfERg== 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 781A315588; Wed, 29 Jun 2022 16:35:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25TGZajU086238; Wed, 29 Jun 2022 16:35:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25TGZaKH086237; Wed, 29 Jun 2022 16:35:36 GMT (envelope-from git) Date: Wed, 29 Jun 2022 16:35:36 GMT Message-Id: <202206291635.25TGZaKH086237@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 86e63837db18 - main - databases/tiledb: Update to 2.10.1 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 86e63837db1800e835766f9ed4174955f36ce12a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656520536; 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=Gmx5/eN9+6xTbT8HuA39Ju0zy8RPFCAquE/bBh8PlDk=; b=SHVeZWGcsfl5CVGB6OPeLCIY3PFsCIJC/9EezCNBosnhtw4d0TUZuYKa1FibQ6DpuYEpl+ HmY3pXGzrgO4gaWeVopKdKBqXGBs4YiY2yyx5Ee0YEeodvZ95RzDqaZkkYrHAT3I3euAC+ VDOelJQBPZiDYUFciBz/ixB3NSC4/7eEXaea0N7PkaOWQUXwX503FxLTR5epCsUBEQn8C+ a1qX5cQ1jNsm38iCp4g4U3zLJ6p83rQuSgezk8o0cWeEZ+y9gFs73tHtwd/RIACidMoQB+ 8VMwfsGCsKpEMzokyvVPg1o9z9lLfbqvCinXM3DAEE8i2WvxP7OqkY8gN69wlw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656520536; a=rsa-sha256; cv=none; b=NFsBXh/XlQiOjJKQQTvVD4yDyLQpnbjTzt3nQV8DcM6QUTaqxGwH2osE3LwKfTiq8OwlMz 69f1VxG1mvpA+THldntSeUSV1Y8NSpobAYHxcIEPo3/bSx8dtVcKrC7e9WqdlA1tmoy3dN GlWeaEVi6Ar+2qk9ZNPrkcsc8OyUlIblf/zN7kShOYCgv9tBPbuENxJ2snPh+L/V/Oa2dP c/skDtWUzqUv7W96iU0NizGzmx2BqB/h6eFUNRizoSiQWTKEW0qB5X2fMUrqRpYLlO7F8w krVMKkkTPF1OpjQ4Tu/yLIS4Z+ueVoAs6DJ4bG5xHM73L39FG8HttAbIb3f0Jw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=86e63837db1800e835766f9ed4174955f36ce12a commit 86e63837db1800e835766f9ed4174955f36ce12a Author: Po-Chuan Hsieh AuthorDate: 2022-06-29 16:27:55 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-06-29 16:32:38 +0000 databases/tiledb: Update to 2.10.1 Changes: https://github.com/TileDB-Inc/TileDB/releases --- databases/tiledb/Makefile | 7 +- databases/tiledb/distinfo | 6 +- databases/tiledb/files/patch-magic | 170 +++++++++++++++++++++ .../files/patch-tiledb-type-range-CMakeLists.txt | 10 ++ databases/tiledb/pkg-plist | 1 + 5 files changed, 188 insertions(+), 6 deletions(-) diff --git a/databases/tiledb/Makefile b/databases/tiledb/Makefile index 6d6635a81fd5..4f0334ebac1f 100644 --- a/databases/tiledb/Makefile +++ b/databases/tiledb/Makefile @@ -1,7 +1,7 @@ # Created by: Po-Chuan Hsieh PORTNAME= tiledb -PORTVERSION= 2.8.3 +PORTVERSION= 2.10.1 CATEGORIES= databases MAINTAINER= sunpoet@FreeBSD.org @@ -19,6 +19,7 @@ LIB_DEPENDS= libcapnp.so:devel/capnproto080 \ RUN_DEPENDS= capnproto080>=0.8.0:devel/capnproto080 \ catch>=2.13.8:devel/catch \ clipp>=1.2.3:devel/clipp \ + curl>=7.74.0:ftp/curl \ liblz4>=1.9.3,1:archivers/liblz4 \ spdlog>=1.9.0:devel/spdlog \ zstd>=1.4.8:archivers/zstd @@ -26,8 +27,8 @@ RUN_DEPENDS= capnproto080>=0.8.0:devel/capnproto080 \ USES= cmake compiler:c++17-lang localbase:ldflags pkgconfig ssl CFLAGS+= -DSPDLOG_FMT_EXTERNAL=1 -CMAKE_ARGS= -DCATCH_INCLUDE_DIR=${LOCALBASE}/include/catch2 -CMAKE_OFF= TILEDB_ALLOW_REGEX_CHAR_PATH TILEDB_ARROW_TESTS TILEDB_AZURE TILEDB_CMAKE_IDE TILEDB_FORCE_ALL_DEPS TILEDB_GCS TILEDB_HDFS TILEDB_S3 TILEDB_SKIP_S3AWSSDK_DIR_LENGTH_CHECK TILEDB_SUPERBUILD TILEDB_TESTS_AWS_S3_CONFIG TILEDB_TESTS_ENABLE_REST TILEDB_VERBOSE TILEDB_WERROR +CMAKE_ARGS= -DCATCH_INCLUDE_DIR=${LOCALBASE}/include/catch2 -Dlibmagic_DICTIONARY=/usr/share/misc/magic.mgc +CMAKE_OFF= TILEDB_ALLOW_REGEX_CHAR_PATH TILEDB_ARROW_TESTS TILEDB_AZURE TILEDB_CMAKE_IDE TILEDB_FORCE_ALL_DEPS TILEDB_GCS TILEDB_HDFS TILEDB_INSTALL_STATIC_DEPS TILEDB_S3 TILEDB_SKIP_S3AWSSDK_DIR_LENGTH_CHECK TILEDB_SUPERBUILD TILEDB_TESTS_AWS_S3_CONFIG TILEDB_TESTS_ENABLE_REST TILEDB_VERBOSE TILEDB_WERROR CMAKE_ON= TILEDB_CCACHE TILEDB_CPP_API TILEDB_LOG_OUTPUT_ON_FAILURE TILEDB_SERIALIZATION TILEDB_STATIC TILEDB_STATS TILEDB_TESTS TILEDB_TOOLS LDFLAGS+= -lfmt diff --git a/databases/tiledb/distinfo b/databases/tiledb/distinfo index 42199d4c6843..23585ece0d1e 100644 --- a/databases/tiledb/distinfo +++ b/databases/tiledb/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1652446240 -SHA256 (TileDB-Inc-TileDB-2.8.3_GH0.tar.gz) = 802e366bc166d34a7e8111a23c5ab782f0b406038607fcb76cd8fb536619a74a -SIZE (TileDB-Inc-TileDB-2.8.3_GH0.tar.gz) = 2328582 +TIMESTAMP = 1656092914 +SHA256 (TileDB-Inc-TileDB-2.10.1_GH0.tar.gz) = ec215a28b116cc596da749451990fa11f0e8860ab576e6cb7d3e68b81eda2ef4 +SIZE (TileDB-Inc-TileDB-2.10.1_GH0.tar.gz) = 2810234 diff --git a/databases/tiledb/files/patch-magic b/databases/tiledb/files/patch-magic new file mode 100644 index 000000000000..a30de0666dfb --- /dev/null +++ b/databases/tiledb/files/patch-magic @@ -0,0 +1,170 @@ +Obtained from: https://github.com/TileDB-Inc/TileDB/pull/3270 + +--- cmake/Modules/FindMagic_EP.cmake.orig 2022-06-24 19:24:23 UTC ++++ cmake/Modules/FindMagic_EP.cmake +@@ -3,7 +3,7 @@ + # + # The MIT License + # +-# Copyright (c) 2018-2021 TileDB, Inc. ++# Copyright (c) 2022 TileDB, Inc. + # + # Permission is hereby granted, free of charge, to any person obtaining a copy + # of this software and associated documentation files (the "Software"), to deal +@@ -34,47 +34,47 @@ + # Include some common helper functions. + include(TileDBCommon) + +-# Search the path set during the superbuild for the EP. +-set(LIBMAGIC_PATHS ${TILEDB_EP_INSTALL_PREFIX}) ++# First check for a static version in the EP prefix. ++find_library(libmagic_LIBRARIES ++ NAMES ++ magic${CMAKE_STATIC_LIBRARY_SUFFIX} ++ libmagic${CMAKE_STATIC_LIBRARY_SUFFIX} ++ PATHS ${TILEDB_EP_INSTALL_PREFIX} ++ PATH_SUFFIXES lib ++ NO_DEFAULT_PATH ++) + +-if(TILEDB_LIBMAGIC_EP_BUILT) +- find_package(libmagic PATHS ${TILEDB_EP_INSTALL_PREFIX} ${TILEDB_DEPS_NO_DEFAULT_PATH}) +-endif() +- +-if (TILEDB_LIBMAGIC_EP_BUILT) ++if (libmagic_LIBRARIES) ++ set(libmagic_STATIC_EP_FOUND TRUE) + find_path(libmagic_INCLUDE_DIR +- NAMES magic.h +- PATHS ${LIBMAGIC_PATHS} +- PATH_SUFFIXES include +- ${NO_DEFAULT_PATH} +- ) +- +- if (NOT libmagic_INCLUDE_DIR) +- find_path(libmagic_INCLUDE_DIR +- NAMES file/file.h +- PATHS ${LIBMAGIC_PATHS} +- PATH_SUFFIXES include +- ${NO_DEFAULT_PATH} +- ) +- endif() +- +- # Link statically if installed with the EP. ++ NAMES magic.h ++ PATHS ${TILEDB_EP_INSTALL_PREFIX} ++ PATH_SUFFIXES include ++ NO_DEFAULT_PATH ++ ) ++elseif(NOT TILEDB_FORCE_ALL_DEPS) ++ set(libmagic_STATIC_EP_FOUND FALSE) ++ # Static EP not found, search in system paths. + find_library(libmagic_LIBRARIES +- libmagic +- PATHS ${LIBMAGIC_PATHS} +- PATH_SUFFIXES lib a +- #${TILEDB_DEPS_NO_DEFAULT_PATH} +- ${NO_DEFAULT_PATH} +- ) +- +- include(FindPackageHandleStandardArgs) +- FIND_PACKAGE_HANDLE_STANDARD_ARGS(libmagic +- REQUIRED_VARS libmagic_LIBRARIES libmagic_INCLUDE_DIR +- ) ++ NAMES ++ magic libmagic ++ PATH_SUFFIXES lib bin ++ ${TILEDB_DEPS_NO_DEFAULT_PATH} ++ ) ++ find_path(libmagic_INCLUDE_DIR ++ NAMES magic.h ++ PATH_SUFFIXES include ++ ${TILEDB_DEPS_NO_DEFAULT_PATH} ++ ) + endif() + ++include(FindPackageHandleStandardArgs) ++FIND_PACKAGE_HANDLE_STANDARD_ARGS(libmagic ++ REQUIRED_VARS libmagic_LIBRARIES libmagic_INCLUDE_DIR ++) ++ + # if not yet built add it as an external project +-if(NOT TILEDB_LIBMAGIC_EP_BUILT) ++if(NOT libmagic_FOUND) + if (TILEDB_SUPERBUILD) + message(STATUS "Adding Magic as an external project") + +@@ -115,11 +115,22 @@ if(NOT TILEDB_LIBMAGIC_EP_BUILT) + endif() + endif() + +-find_file(libmagic_DICTIONARY magic.mgc +- PATHS ${LIBMAGIC_PATHS} +- PATH_SUFFIXES bin share +- ${NO_DEFAULT_PATH} +-) ++if(TILEDB_LIBMAGIC_EP_BUILT) ++ find_file(libmagic_DICTIONARY magic.mgc ++ PATHS ${LIBMAGIC_PATHS} ++ PATH_SUFFIXES bin share misc ++ ${TILEDB_DEPS_NO_DEFAULT_PATH} ++ ) ++else() ++ find_file(libmagic_DICTIONARY magic.mgc ++ PATH_SUFFIXES bin share misc share/misc ++ ${TILEDB_DEPS_NO_DEFAULT_PATH} ++ ) ++endif() ++ ++if(NOT TILEDB_SUPERBUILD AND NOT libmagic_DICTIONARY) ++ message(FATAL_ERROR "Unable to find libmagic dictionary") ++endif() + + if (libmagic_FOUND AND NOT TARGET libmagic) + message(STATUS "Found Magic, adding imported target: ${libmagic_LIBRARIES}") +--- tiledb/CMakeLists.txt.orig 2022-06-24 19:24:23 UTC ++++ tiledb/CMakeLists.txt +@@ -336,18 +336,22 @@ add_library(TILEDB_CORE_OBJECTS OBJECT + ############################################################ + # provide actions/target for preparation of magic.mgc data for embedding/build + +-#set(MGC_GZIPPED_BIN_PATH3 "${CMAKE_CURRENT_SOURCE_DIR}/sm/misc/magic_mgc_gzipped.bin") +-set(MGC_GZIPPED_BIN_OUTPUT_DIRECTORY "${TILEDB_EP_BASE}/install/include") ++set(MGC_GZIPPED_BIN_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/sm/misc") + set(MGC_GZIPPED_BIN_OUTPUT_FILE "${MGC_GZIPPED_BIN_OUTPUT_DIRECTORY}/magic_mgc_gzipped.bin") + set(MGC_GZIPPED_BIN_INPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/sm/misc") + set(MGC_GZIPPED_BIN_INPUT_FILE "${MGC_GZIPPED_BIN_INPUT_DIRECTORY}/magic_mgc_gzipped.bin.tar.bz2") + ++# Create the output directory if it does not exist ++add_custom_target(create_magic_bin_output_directory ALL ++ COMMAND ${CMAKE_COMMAND} -E make_directory ${MGC_GZIPPED_BIN_OUTPUT_DIRECTORY}) ++ + add_custom_command( + OUTPUT "${MGC_GZIPPED_BIN_OUTPUT_FILE}" +- DEPENDS "${MGC_GZIPPED_BIN_INPUT_FILE}" ++ DEPENDS "${MGC_GZIPPED_BIN_INPUT_FILE}" create_magic_bin_output_directory + COMMAND ${CMAKE_COMMAND} -E tar x "${MGC_GZIPPED_BIN_INPUT_FILE}" + WORKING_DIRECTORY "${MGC_GZIPPED_BIN_OUTPUT_DIRECTORY}" + ) ++ + add_custom_target(gen_mgc_unarch ALL + DEPENDS ${MGC_GZIPPED_BIN_OUTPUT_FILE} + ) +@@ -360,7 +364,7 @@ add_custom_target( + WORKING_DIRECTORY "${MGC_GZIPPED_BIN_OUTPUT_DIRECTORY}" + COMMAND ${CMAKE_COMMAND} -E tar cvj "magic_mgc_gzipped.bin.tar.bz2" "magic_mgc_gzipped.bin" + COMMAND ${CMAKE_COMMAND} -E copy "magic_mgc_gzipped.bin.tar.bz2" "${MGC_GZIPPED_BIN_INPUT_FILE}" +- DEPENDS "${libmagic_DICTIONARY}" ++ DEPENDS "${libmagic_DICTIONARY}" create_magic_bin_output_directory + COMMENT "Re-generate ${MGC_GZIPPED_BIN_INPUT_FILE} for embedded magic.mgc support" + ) + +@@ -374,6 +378,8 @@ target_include_directories(TILEDB_CORE_OBJECTS + "${TILEDB_EXTERNALS_INCLUDE_DIRS}" + # to pickup /tiledb for capnp gen'd files + "${CMAKE_CURRENT_BINARY_DIR}/.." ++ # For libmagic binary data include ++ "${CMAKE_CURRENT_BINARY_DIR}/sm/misc" + ) + + # Build a separate copy of the object library for use with static TileDB diff --git a/databases/tiledb/files/patch-tiledb-type-range-CMakeLists.txt b/databases/tiledb/files/patch-tiledb-type-range-CMakeLists.txt new file mode 100644 index 000000000000..0f7f192e9990 --- /dev/null +++ b/databases/tiledb/files/patch-tiledb-type-range-CMakeLists.txt @@ -0,0 +1,10 @@ +--- tiledb/type/range/CMakeLists.txt.orig 2022-06-24 19:24:23 UTC ++++ tiledb/type/range/CMakeLists.txt +@@ -29,6 +29,7 @@ include(common NO_POLICY_SCOPE) + + # Range library + add_library(range OBJECT range.h) ++set_target_properties(range PROPERTIES LINKER_LANGUAGE CXX) + target_link_libraries(range PUBLIC baseline $) + + # Test-compile of object library ensures link-completeness diff --git a/databases/tiledb/pkg-plist b/databases/tiledb/pkg-plist index 0946ef20d9b8..e02c58edb80b 100644 --- a/databases/tiledb/pkg-plist +++ b/databases/tiledb/pkg-plist @@ -37,6 +37,7 @@ include/tiledb/utils.h include/tiledb/version.h include/tiledb/vfs.h lib/cmake/TileDB/TileDBConfig.cmake +lib/cmake/TileDB/TileDBConfigVersion.cmake lib/cmake/TileDB/TileDBTargets-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/TileDB/TileDBTargets.cmake lib/libtiledb.a