From nobody Tue Dec 17 01:05:36 2024 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 4YBzBm4tHXz5gq7P; Tue, 17 Dec 2024 01:05:36 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YBzBm4PDFz4RgD; Tue, 17 Dec 2024 01:05:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734397536; 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=SLUGIMgTO1axBZzWlqaVOoMc+N164cOklDC7KulpC94=; b=PxDelf2wLlTRiez80nj+9NRu8x2jHWZ4iRmmHE5vB3mD/yg20Gi55LV44cbfueHgPM5W28 xZy1IlLcB1SfX+2vNj1ujitNZLZZjMtpM7YUeW/wG4JQF2jKMf1JGoD6wlyeqFndWmG6rb 2Jk5/cnrLYhLfB1UxOuM+uoPVC3BGmXPWO9co5NqnmfP/0nzVvFNUnOOcLKydgp4KzIojD IGkWaRXkf/Fv+lxRZeI1eY6mG/CIgLT9LsDHrb/5CfNRWXOIl9ZjUEw3CEBURHK47cyANw fXJy8CFJRLRQYo4SRu7/IpZJuukARz8DhUG5qhL96orOf0oMIrpn6NFYjgqebg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734397536; 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=SLUGIMgTO1axBZzWlqaVOoMc+N164cOklDC7KulpC94=; b=xN96ahpl9sSggB5lI0cIGZNf0gn4tPSmGg6T1wulQue86I63WnUwWr3X8brWfHMuO7vzcZ wBozbm1CtGXJ2bcDnsCJGab7/E31RVD/AWJ7cAvjCMXFuTsbZnOi8p6cp+ldyHkg6NeqIt r5xomfX94aHWHZe4JIRZ6RvDxsGR8IOXbA9Oz7XL4HTPt0QwSZsRbWdjvykbMe8mXHCJTq pqBNQIrkjhDQDcx0vtQWF3HCuSwYHLyMKgLPJxnS6D+oGXfvmNVt5bz5C/RaAf9Masyual cVGoBA7rTzgU7ZGnviNjMClAtYyZ2pMCgOomcYYgfjT9okMbarP33OpzTVQ/WA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734397536; a=rsa-sha256; cv=none; b=phu4v9PI6cxBNCIJjqzXyGm1TTp4apTcDzbB/WYPZluuArKdHZW9NNq6oBYVmlvb4xWa2G Vk1MVLdR3TstmWTsXAAsoal58nGHArBIaQ4yl0RaucC8hCrkaXfLn1XDA5lHPaqD9Jq45H EPE7sDxCzw1db9lqyDzB4+EQ+O+bQeoUrpb3A9YCKJXH4PWDPR572WwMQEU5zD05e4+96E sfvR1g2WhZDWXEFuIfk2S/ot2hITbRC/FHPqbq2ETRHUcvsDgaR42gpX9Z/BnkwbjIfuTq yKIEzxdawnjylOOYxvacUwtOXKui3s60Qj5HdvPWMcUvWDjjEYnnorKRhpvCoA== 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 4YBzBm3zyhz1Gqf; Tue, 17 Dec 2024 01:05:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BH15aLR014547; Tue, 17 Dec 2024 01:05:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BH15aX4014544; Tue, 17 Dec 2024 01:05:36 GMT (envelope-from git) Date: Tue, 17 Dec 2024 01:05:36 GMT Message-Id: <202412170105.4BH15aX4014544@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Wen Heping Subject: git: b11148dbd16c - main - devel/apache-orc: New port 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b11148dbd16ca03bd5404146ec50673d389e7422 Auto-Submitted: auto-generated The branch main has been updated by wen: URL: https://cgit.FreeBSD.org/ports/commit/?id=b11148dbd16ca03bd5404146ec50673d389e7422 commit b11148dbd16ca03bd5404146ec50673d389e7422 Author: Wen Heping AuthorDate: 2024-12-17 01:03:29 +0000 Commit: Wen Heping CommitDate: 2024-12-17 01:05:14 +0000 devel/apache-orc: New port Apache ORC is a self-describing type-aware columnar file format designed for Hadoop workloads. It is optimized for large streaming reads, but with integrated support for finding required rows quickly. --- devel/Makefile | 1 + devel/apache-orc/Makefile | 40 ++++++++++++++++++++++ devel/apache-orc/distinfo | 5 +++ .../patch-cmake__modules_ThirdpartyToolchain.cmake | 11 ++++++ .../apache-orc/files/patch-tools_test_ToolTest.cc | 10 ++++++ devel/apache-orc/pkg-descr | 3 ++ devel/apache-orc/pkg-plist | 24 +++++++++++++ 7 files changed, 94 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 6e4d9e317300..4f3a1c12c838 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -189,6 +189,7 @@ SUBDIR += apache-commons-io SUBDIR += apache-commons-jxpath SUBDIR += apache-log4j2 + SUBDIR += apache-orc SUBDIR += apache-rat SUBDIR += aphpbreakdown SUBDIR += aphpunit diff --git a/devel/apache-orc/Makefile b/devel/apache-orc/Makefile new file mode 100644 index 000000000000..377cb88afd14 --- /dev/null +++ b/devel/apache-orc/Makefile @@ -0,0 +1,40 @@ +PORTNAME= orc +DISTVERSION= 2.0.3 +CATEGORIES= devel +MASTER_SITES= https://dlcdn.apache.org/orc/orc-2.0.3/:orc \ + https://archive.apache.org/dist/orc/orc-format-1.0.0/:orc_format +PKGNAMEPREFIX= apache- +DISTFILES= ${PORTNAME}-${DISTVERSION}.tar.gz:orc \ + orc-format-1.0.0.tar.gz:orc_format + +MAINTAINER= wen@FreeBSD.org +COMMENT= Smallest, fastest columnar storage for Hadoop workloads +WWW= https://orc.apache.org/ + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${LOCALBASE}/lib/libgtest.so:devel/googletest \ + ${LOCALBASE}/lib/libzstd.so:archivers/zstd +LIB_DEPENDS= libsnappy.so:archivers/snappy \ + liblz4.so:archivers/liblz4 \ + libprotobuf.so:devel/protobuf \ + libabsl_demangle_internal.so:devel/abseil + +USES= cmake + +CMAKE_ARGS+= -DBUILD_JAVA=OFF \ + -DZLIB_HOME="/usr" \ + -DSNAPPY_HOME=${LOCALBASE} \ + -DLZ4_HOME=${LOCALBASE} \ + -DGTEST_HOME=${LOCALBASE} \ + -DPROTOBUF_HOME=${LOCALBASE} \ + -DZSTD_HOME=${LOCALBASE} +CFLAGS+= -fPIC +CPPFLAGS+= -fPIC + +post-patch: + @${REINPLACE_CMD} "s#%%MYSITE%%#${DISTDIR}#g" \ + ${WRKSRC}/cmake_modules/ThirdpartyToolchain.cmake + +.include diff --git a/devel/apache-orc/distinfo b/devel/apache-orc/distinfo new file mode 100644 index 000000000000..c6c765130990 --- /dev/null +++ b/devel/apache-orc/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1734337150 +SHA256 (orc-2.0.3.tar.gz) = 082cba862b5a8a0d14c225404d0b51cd8d1b64ca81b8f1e500322ce8922cb86d +SIZE (orc-2.0.3.tar.gz) = 13353259 +SHA256 (orc-format-1.0.0.tar.gz) = 739fae5ff94b1f812b413077280361045bf92e510ef04b34a610e23a945d8cd5 +SIZE (orc-format-1.0.0.tar.gz) = 52569 diff --git a/devel/apache-orc/files/patch-cmake__modules_ThirdpartyToolchain.cmake b/devel/apache-orc/files/patch-cmake__modules_ThirdpartyToolchain.cmake new file mode 100644 index 000000000000..124de3806523 --- /dev/null +++ b/devel/apache-orc/files/patch-cmake__modules_ThirdpartyToolchain.cmake @@ -0,0 +1,11 @@ +--- cmake_modules/ThirdpartyToolchain.cmake.orig 2024-12-16 03:22:53 UTC ++++ cmake_modules/ThirdpartyToolchain.cmake +@@ -72,7 +72,7 @@ ExternalProject_Add (orc-format_ep + # ---------------------------------------------------------------------- + # ORC Format + ExternalProject_Add (orc-format_ep +- URL "https://archive.apache.org/dist/orc/orc-format-${ORC_FORMAT_VERSION}/orc-format-${ORC_FORMAT_VERSION}.tar.gz" ++ URL "%%MYSITE%%/orc-format-${ORC_FORMAT_VERSION}.tar.gz" + URL_HASH SHA256=739fae5ff94b1f812b413077280361045bf92e510ef04b34a610e23a945d8cd5 + CONFIGURE_COMMAND "" + BUILD_COMMAND "" diff --git a/devel/apache-orc/files/patch-tools_test_ToolTest.cc b/devel/apache-orc/files/patch-tools_test_ToolTest.cc new file mode 100644 index 000000000000..666daf03e86b --- /dev/null +++ b/devel/apache-orc/files/patch-tools_test_ToolTest.cc @@ -0,0 +1,10 @@ +--- tools/test/ToolTest.cc.orig 2024-12-16 03:01:39 UTC ++++ tools/test/ToolTest.cc +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + + namespace { + const char* exampleDirectory = 0; diff --git a/devel/apache-orc/pkg-descr b/devel/apache-orc/pkg-descr new file mode 100644 index 000000000000..43a9d442f4ea --- /dev/null +++ b/devel/apache-orc/pkg-descr @@ -0,0 +1,3 @@ +Apache ORC is a self-describing type-aware columnar file format designed for +Hadoop workloads. It is optimized for large streaming reads, but with integrated +support for finding required rows quickly. diff --git a/devel/apache-orc/pkg-plist b/devel/apache-orc/pkg-plist new file mode 100644 index 000000000000..54fa03c2e868 --- /dev/null +++ b/devel/apache-orc/pkg-plist @@ -0,0 +1,24 @@ +bin/csv-import +bin/orc-contents +bin/orc-memory +bin/orc-metadata +bin/orc-scan +bin/orc-statistics +bin/timezone-dump +include/orc/BloomFilter.hh +include/orc/ColumnPrinter.hh +include/orc/Common.hh +include/orc/Exceptions.hh +include/orc/Int128.hh +include/orc/MemoryPool.hh +include/orc/OrcFile.hh +include/orc/Reader.hh +include/orc/Statistics.hh +include/orc/Type.hh +include/orc/Vector.hh +include/orc/Writer.hh +include/orc/orc-config.hh +include/orc/sargs/Literal.hh +include/orc/sargs/SearchArgument.hh +include/orc/sargs/TruthValue.hh +lib/liborc.a